diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-06-29 13:38:54 -0400 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-06-29 13:38:54 -0400 | 
| commit | 31df1e93192f2fbdfdda552c7b04d76f94b9f068 (patch) | |
| tree | a339242df3c68b8a60b2fc58c2643216cdcb9995 /indra | |
| parent | ac09873cf605e5970464682602bb70c0d16cadf2 (diff) | |
| parent | a5d7485cdca5594fce26e1cb011e7feb8895c69e (diff) | |
merge
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llfloatertools.cpp | 24 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_model_preview.xml | 3 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_tools.xml | 18 | 
3 files changed, 19 insertions, 26 deletions
diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp index 3e98cff9e6..1b6feddb6c 100644 --- a/indra/newview/llfloatertools.cpp +++ b/indra/newview/llfloatertools.cpp @@ -455,27 +455,31 @@ void LLFloaterTools::refresh()  		S32 prim_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount();  		S32 link_count = LLSelectMgr::getInstance()->getSelection()->getRootObjectCount(); -		LLStringUtil::format_map_t args; -		args["OBJ_COUNT"] = llformat("%.1d", link_count); -		args["PRIM_COUNT"] = llformat("%.1d", prim_count); +		LLStringUtil::format_map_t selection_args; +		selection_args["OBJ_COUNT"] = llformat("%.1d", link_count); +		selection_args["PRIM_COUNT"] = llformat("%.1d", prim_count);  		std::ostringstream selection_info; -		selection_info << getString("status_selectcount", args); -		bool show_prim_equiv = (link_cost != prim_count) && link_cost;  		bool show_adv_weight = gSavedSettings.getBOOL("ShowAdvancedBuilderOptions");  		bool show_mesh_cost = gMeshRepo.meshRezEnabled(); -		if (show_prim_equiv && show_mesh_cost) +		if (show_mesh_cost)  		{ -			selection_info << ": "; -			args["SEL_WEIGHT"] = llformat("%.1f", link_cost); -			selection_info << getString("status_selectprimequiv", args); +			LLStringUtil::format_map_t prim_equiv_args; +			prim_equiv_args["SEL_WEIGHT"] = llformat("%.1d", (S32)link_cost); +			selection_args["PE_STRING"] = getString("status_selectprimequiv", prim_equiv_args);  		} +		else +		{ +			selection_args["PE_STRING"] = ""; +		} + +		selection_info << getString("status_selectcount", selection_args);  		if (show_adv_weight)  		{ -			show_prim_equiv ? (selection_info << ",") : (selection_info << "."); +			selection_info << ",";  			childSetTextArg("selection_weight", "[PHYS_WEIGHT]", llformat("%.1f", link_phys_cost));  			childSetTextArg("selection_weight", "[DISP_WEIGHT]", llformat("%.1d", calcRenderCost())); diff --git a/indra/newview/skins/default/xui/en/floater_model_preview.xml b/indra/newview/skins/default/xui/en/floater_model_preview.xml index ab46a13098..e5f60ea482 100644 --- a/indra/newview/skins/default/xui/en/floater_model_preview.xml +++ b/indra/newview/skins/default/xui/en/floater_model_preview.xml @@ -1,7 +1,8 @@  <?xml version="1.0" encoding="utf-8" standalone="yes" ?>  <floater can_close="true" can_drag_on_left="false" can_minimize="false"       can_resize="true" height="550" min_height="550" min_width="620" -     name="Model Preview" title="Upload Model" width="620"> +     name="Model Preview" title="Upload Model" width="620" +      help_topic="upload_model" >    <string name="status_idle">Idle</string>    <string name="status_parse_error">Dae parsing issue - see log for details.</string> diff --git a/indra/newview/skins/default/xui/en/floater_tools.xml b/indra/newview/skins/default/xui/en/floater_tools.xml index 03ff7a15e1..2169b5ccc3 100644 --- a/indra/newview/skins/default/xui/en/floater_tools.xml +++ b/indra/newview/skins/default/xui/en/floater_tools.xml @@ -48,11 +48,11 @@      </floater.string>      <floater.string       name="status_selectcount"> -        [OBJ_COUNT] objects ( [PRIM_COUNT] prims ) selected +        [OBJ_COUNT] objects ( [PRIM_COUNT] prims[PE_STRING] ) selected      </floater.string>      <floater.string       name="status_selectprimequiv"> -        PE weight [SEL_WEIGHT] +        , [SEL_WEIGHT] prim equivs      </floater.string>      <button       follows="left|top" @@ -271,18 +271,6 @@  	  <button.commit_callback  	     function="BuildTool.UnlinkObjects"/>      </button> -    <text -	   text_color="LtGray_50" -	   follows="top|left" -	   halign="left" -	   left_pad="3" -	   name="RenderingCost" -	   tool_tip="Shows the rendering cost calculated for this object" -	   top_delta="11" -	   type="string" -	   width="100"> -	   รพ: [COUNT] -	   </text>      <check_box       control_name="ScaleUniform"       height="19" @@ -754,7 +742,7 @@  	  top_pad="0"  	  visible="false"  	  width="280"> -	  Physics weight [PHYS_WEIGHT], Display weight [DISP_WEIGHT]. +	  Physics weight [PHYS_WEIGHT], Render Cost [DISP_WEIGHT].  	</text>      <!-- <text -->      <!-- text_color="LtGray_50" -->  | 
