STORM-2104 Statistics floaters adjustments
parent
be940de86b
commit
bedbb65b33
|
|
@ -754,6 +754,7 @@ Jonathan Yap
|
|||
STORM-2091
|
||||
STORM-2092
|
||||
STORM-2100
|
||||
STORM-2104
|
||||
Kadah Coba
|
||||
STORM-1060
|
||||
STORM-1843
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
#include "lltooltip.h"
|
||||
#include "lllocalcliprect.h"
|
||||
#include <iostream>
|
||||
#include "lltrans.h"
|
||||
|
||||
// rate at which to update display of value that is rapidly changing
|
||||
const F32 MEAN_VALUE_UPDATE_TIME = 1.f / 4.f;
|
||||
|
|
@ -619,19 +620,19 @@ void LLStatBar::drawLabelAndValue( F32 value, std::string &label, LLRect &bar_re
|
|||
|
||||
std::string value_str = !llisnan(value)
|
||||
? llformat("%10.*f %s", decimal_digits, value, label.c_str())
|
||||
: "n/a";
|
||||
: LLTrans::getString("na");
|
||||
|
||||
// Draw the current value.
|
||||
if (mOrientation == HORIZONTAL)
|
||||
{
|
||||
LLFontGL::getFontMonospace()->renderUTF8(value_str, 0, bar_rect.mRight, getRect().getHeight(),
|
||||
LLColor4(1.f, 1.f, 1.f, 0.5f),
|
||||
LLColor4(1.f, 1.f, 1.f, 1.f),
|
||||
LLFontGL::RIGHT, LLFontGL::TOP);
|
||||
}
|
||||
else
|
||||
{
|
||||
LLFontGL::getFontMonospace()->renderUTF8(value_str, 0, bar_rect.mRight, getRect().getHeight(),
|
||||
LLColor4(1.f, 1.f, 1.f, 0.5f),
|
||||
LLColor4(1.f, 1.f, 1.f, 1.f),
|
||||
LLFontGL::RIGHT, LLFontGL::TOP);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,29 +7,22 @@
|
|||
save_rect="true"
|
||||
save_visibility="true"
|
||||
title="SCENE LOAD STATISTICS"
|
||||
width="260">
|
||||
<button follows="top|left"
|
||||
top="20"
|
||||
bottom="60"
|
||||
left="10"
|
||||
width="100"
|
||||
label="Pause"
|
||||
name="playpause"/>
|
||||
width="270">
|
||||
<scroll_container follows="top|left|bottom|right"
|
||||
bottom="400"
|
||||
layout="topleft"
|
||||
left="0"
|
||||
name="statistics_scroll"
|
||||
reserve_scroll_corner="true"
|
||||
top="60"
|
||||
width="260">
|
||||
top="20"
|
||||
width="265">
|
||||
<container_view follows="top|left|bottom|right"
|
||||
height="378"
|
||||
layout="topleft"
|
||||
left="2"
|
||||
name="statistics_view"
|
||||
top="20"
|
||||
width="245" >
|
||||
width="250" >
|
||||
<!--Basic Section-->
|
||||
<stat_view name="basic"
|
||||
label="Basic"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
save_rect="true"
|
||||
save_visibility="true"
|
||||
title="STATISTICS"
|
||||
width="260">
|
||||
width="270">
|
||||
<scroll_container follows="all"
|
||||
height="380"
|
||||
layout="topleft"
|
||||
|
|
@ -16,14 +16,14 @@
|
|||
name="statistics_scroll"
|
||||
reserve_scroll_corner="true"
|
||||
top="20"
|
||||
width="260">
|
||||
width="265">
|
||||
<container_view follows="all"
|
||||
height="378"
|
||||
layout="topleft"
|
||||
left="2"
|
||||
left="0"
|
||||
name="statistics_view"
|
||||
top="20"
|
||||
width="245" >
|
||||
width="250" >
|
||||
<stat_view name="basic"
|
||||
label="Basic"
|
||||
setting="OpenDebugStatBasic">
|
||||
|
|
|
|||
|
|
@ -4184,6 +4184,9 @@ Try enclosing path to the editor with double quotes.
|
|||
Loading...
|
||||
</string>
|
||||
|
||||
<!-- Statistics -->
|
||||
<string name="na">n/a</string>
|
||||
|
||||
<!-- Presets graphic/camera -->
|
||||
<string name="preset_combo_label">-Empty list-</string>
|
||||
<string name="Default">Default</string>
|
||||
|
|
|
|||
Loading…
Reference in New Issue