aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-02-16 11:48:17 -0700
committerMcCabe Maxsted2009-02-16 11:48:17 -0700
commit00716781a30de3eb57dc36d2128b0afd56571c99 (patch)
tree49c7094f961aef93b824c95b4fb7a112c5f2316d /linden
parentRemoved useless music pause button (diff)
downloadmeta-impy-00716781a30de3eb57dc36d2128b0afd56571c99.zip
meta-impy-00716781a30de3eb57dc36d2128b0afd56571c99.tar.gz
meta-impy-00716781a30de3eb57dc36d2128b0afd56571c99.tar.bz2
meta-impy-00716781a30de3eb57dc36d2128b0afd56571c99.tar.xz
Backported Top Scripts changes from 1.22
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llfloatertopobjects.cpp6
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_top_objects.xml10
2 files changed, 11 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloatertopobjects.cpp b/linden/indra/newview/llfloatertopobjects.cpp
index ada5c68..0afa618 100644
--- a/linden/indra/newview/llfloatertopobjects.cpp
+++ b/linden/indra/newview/llfloatertopobjects.cpp
@@ -180,7 +180,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
180 msg->getF32Fast(_PREHASH_ReportData, _PREHASH_Score, score, block); 180 msg->getF32Fast(_PREHASH_ReportData, _PREHASH_Score, score, block);
181 msg->getStringFast(_PREHASH_ReportData, _PREHASH_TaskName, name_buf, block); 181 msg->getStringFast(_PREHASH_ReportData, _PREHASH_TaskName, name_buf, block);
182 msg->getStringFast(_PREHASH_ReportData, _PREHASH_OwnerName, owner_buf, block); 182 msg->getStringFast(_PREHASH_ReportData, _PREHASH_OwnerName, owner_buf, block);
183 if(msg->getNumberOfBlocks("DataExtended")) 183 if(msg->has("DataExtended"))
184 { 184 {
185 have_extended_data = true; 185 have_extended_data = true;
186 msg->getU32("DataExtended", "TimeStamp", time_stamp, block); 186 msg->getU32("DataExtended", "TimeStamp", time_stamp, block);
@@ -212,7 +212,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
212 if (mCurrentMode == STAT_REPORT_TOP_SCRIPTS 212 if (mCurrentMode == STAT_REPORT_TOP_SCRIPTS
213 && have_extended_data) 213 && have_extended_data)
214 { 214 {
215 element["columns"][5]["column"] = "Mono Time"; 215 element["columns"][5]["column"] = "mono_time";
216 element["columns"][5]["value"] = llformat("%0.3f", mono_score); 216 element["columns"][5]["value"] = llformat("%0.3f", mono_score);
217 element["columns"][5]["font"] = "SANSSERIF"; 217 element["columns"][5]["font"] = "SANSSERIF";
218 } 218 }
@@ -238,6 +238,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
238 { 238 {
239 setTitle(getString("top_scripts_title")); 239 setTitle(getString("top_scripts_title"));
240 list->setColumnLabel("score", getString("scripts_score_label")); 240 list->setColumnLabel("score", getString("scripts_score_label"));
241 list->setColumnLabel("mono_time", getString("scripts_mono_time_label"));
241 242
242 LLUIString format = getString("top_scripts_text"); 243 LLUIString format = getString("top_scripts_text");
243 format.setArg("[COUNT]", llformat("%d", total_count)); 244 format.setArg("[COUNT]", llformat("%d", total_count));
@@ -248,6 +249,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
248 { 249 {
249 setTitle(getString("top_colliders_title")); 250 setTitle(getString("top_colliders_title"));
250 list->setColumnLabel("score", getString("colliders_score_label")); 251 list->setColumnLabel("score", getString("colliders_score_label"));
252 list->setColumnLabel("mono_time", "");
251 LLUIString format = getString("top_colliders_text"); 253 LLUIString format = getString("top_colliders_text");
252 format.setArg("[COUNT]", llformat("%d", total_count)); 254 format.setArg("[COUNT]", llformat("%d", total_count));
253 childSetValue("title_text", LLSD(format)); 255 childSetValue("title_text", LLSD(format));
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_top_objects.xml b/linden/indra/newview/skins/default/xui/en-us/floater_top_objects.xml
index 96f48eb..1b60510 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_top_objects.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_top_objects.xml
@@ -14,7 +14,8 @@
14 <column label="Owner" name="owner" width="105" /> 14 <column label="Owner" name="owner" width="105" />
15 <column label="Location" name="location" width="130" /> 15 <column label="Location" name="location" width="130" />
16 <column label="Time" name="time" width="100" /> 16 <column label="Time" name="time" width="100" />
17 </scroll_list> 17 <column label="Mono Time" name="mono_time" width="55" />
18 </scroll_list>
18 <text bottom_delta="-30" follows="left|bottom" font="SansSerifSmall" height="20" 19 <text bottom_delta="-30" follows="left|bottom" font="SansSerifSmall" height="20"
19 left="10" name="id_text" width="100"> 20 left="10" name="id_text" width="100">
20 Object ID: 21 Object ID:
@@ -61,7 +62,10 @@
61 <string name="scripts_score_label"> 62 <string name="scripts_score_label">
62 Time 63 Time
63 </string> 64 </string>
64 <string name="top_colliders_title"> 65 <string name="scripts_mono_time_label">
66 Mono Time
67 </string>
68 <string name="top_colliders_title">
65 Top Colliders 69 Top Colliders
66 </string> 70 </string>
67 <string name="top_colliders_text"> 71 <string name="top_colliders_text">
@@ -70,7 +74,7 @@
70 <string name="colliders_score_label"> 74 <string name="colliders_score_label">
71 Score 75 Score
72 </string> 76 </string>
73 <string name="none_descriptor"> 77 <string name="none_descriptor">
74 None found. 78 None found.
75 </string> 79 </string>
76</floater> 80</floater>