diff options
Diffstat (limited to 'linden')
3 files changed, 48 insertions, 10 deletions
diff --git a/linden/indra/newview/llfloaterbuildoptions.cpp b/linden/indra/newview/llfloaterbuildoptions.cpp index 8c6c5f3..b6c15b6 100644 --- a/linden/indra/newview/llfloaterbuildoptions.cpp +++ b/linden/indra/newview/llfloaterbuildoptions.cpp | |||
@@ -115,6 +115,9 @@ BOOL LLFloaterBuildOptions::postBuild() | |||
115 | getChild<LLTextureCtrl>("texture control")->setImageAssetID(LLUUID(gSavedPerAccountSettings.getString("BuildPrefs_Texture"))); | 115 | getChild<LLTextureCtrl>("texture control")->setImageAssetID(LLUUID(gSavedPerAccountSettings.getString("BuildPrefs_Texture"))); |
116 | 116 | ||
117 | childSetValue("BuildPrefsRenderHighlight_toggle", gSavedSettings.getBOOL("RenderHighlightSelections") ); | 117 | childSetValue("BuildPrefsRenderHighlight_toggle", gSavedSettings.getBOOL("RenderHighlightSelections") ); |
118 | childSetValue("BuildPrefsRenderHidden_toggle", gSavedSettings.getBOOL("RenderHiddenSelections") ); | ||
119 | childSetValue("BuildPrefsRenderLightRadius_toggle", gSavedSettings.getBOOL("RenderLightRadius") ); | ||
120 | childSetValue("BuildPrefsShowSelectionBeam_toggle", gSavedSettings.getBOOL("ShowSelectionBeam") ); | ||
118 | childSetValue("grouplandrez", gSavedSettings.getBOOL("RezWithLandGroup") ); | 121 | childSetValue("grouplandrez", gSavedSettings.getBOOL("RezWithLandGroup") ); |
119 | childSetValue("GridSubUnit", gSavedSettings.getBOOL("GridSubUnit") ); | 122 | childSetValue("GridSubUnit", gSavedSettings.getBOOL("GridSubUnit") ); |
120 | childSetValue("GridCrossSection", gSavedSettings.getBOOL("GridCrossSections") ); | 123 | childSetValue("GridCrossSection", gSavedSettings.getBOOL("GridCrossSections") ); |
@@ -293,6 +296,17 @@ void LLFloaterBuildOptions::apply() | |||
293 | LLSelectMgr::sRenderSelectionHighlights = !LLSelectMgr::sRenderSelectionHighlights; | 296 | LLSelectMgr::sRenderSelectionHighlights = !LLSelectMgr::sRenderSelectionHighlights; |
294 | gSavedSettings.setBOOL("RenderHighlightSelections", LLSelectMgr::sRenderSelectionHighlights); | 297 | gSavedSettings.setBOOL("RenderHighlightSelections", LLSelectMgr::sRenderSelectionHighlights); |
295 | } | 298 | } |
299 | if (gSavedSettings.getBOOL("RenderHiddenSelections") != (BOOL)(childGetValue("BuildPrefsRenderHidden_toggle").asBoolean())) | ||
300 | { | ||
301 | LLSelectMgr::sRenderHiddenSelections = !LLSelectMgr::sRenderHiddenSelections; | ||
302 | gSavedSettings.setBOOL("RenderHiddenSelections", LLSelectMgr::sRenderHiddenSelections); | ||
303 | } | ||
304 | if (gSavedSettings.getBOOL("RenderLightRadius") != (BOOL)(childGetValue("BuildPrefsRenderLightRadius_toggle").asBoolean())) | ||
305 | { | ||
306 | LLSelectMgr::sRenderLightRadius = !LLSelectMgr::sRenderLightRadius; | ||
307 | gSavedSettings.setBOOL("RenderLightRadius", LLSelectMgr::sRenderLightRadius); | ||
308 | } | ||
309 | gSavedSettings.setBOOL("ShowSelectionBeam", childGetValue("BuildPrefsShowSelectionBeam_toggle").asBoolean() ); | ||
296 | 310 | ||
297 | gSavedSettings.setBOOL("RezWithLandGroup", childGetValue("grouplandrez").asBoolean() ); | 311 | gSavedSettings.setBOOL("RezWithLandGroup", childGetValue("grouplandrez").asBoolean() ); |
298 | gSavedSettings.setBOOL("GridSubUnit", childGetValue("GridSubUnit").asBoolean() ); | 312 | gSavedSettings.setBOOL("GridSubUnit", childGetValue("GridSubUnit").asBoolean() ); |
@@ -340,6 +354,9 @@ void LLFloaterBuildOptions::reset() | |||
340 | mBuildTextureUUID = (LLUUID)gSavedPerAccountSettings.getControl("BuildPrefs_Texture")->getDefault().asString(); | 354 | mBuildTextureUUID = (LLUUID)gSavedPerAccountSettings.getControl("BuildPrefs_Texture")->getDefault().asString(); |
341 | 355 | ||
342 | childSetValue("BuildPrefsRenderHighlight_toggle", gSavedSettings.getControl("RenderHighlightSelections")->getDefault() ); | 356 | childSetValue("BuildPrefsRenderHighlight_toggle", gSavedSettings.getControl("RenderHighlightSelections")->getDefault() ); |
357 | childSetValue("BuildPrefsRenderHidden_toggle", gSavedSettings.getControl("RenderHiddenSelections")->getDefault() ); | ||
358 | childSetValue("BuildPrefsRenderLightRadius_toggle", gSavedSettings.getControl("RenderLightRadius")->getDefault() ); | ||
359 | childSetValue("BuildPrefsShowSelectionBeam_toggle", gSavedSettings.getControl("ShowSelectionBeam")->getDefault() ); | ||
343 | childSetValue("grouplandrez", gSavedSettings.getControl("RezWithLandGroup")->getDefault() ); | 360 | childSetValue("grouplandrez", gSavedSettings.getControl("RezWithLandGroup")->getDefault() ); |
344 | childSetValue("GridSubUnit", gSavedSettings.getControl("GridSubUnit")->getDefault() ); | 361 | childSetValue("GridSubUnit", gSavedSettings.getControl("GridSubUnit")->getDefault() ); |
345 | childSetValue("GridCrossSection", gSavedSettings.getControl("GridCrossSections")->getDefault() ); | 362 | childSetValue("GridCrossSection", gSavedSettings.getControl("GridCrossSections")->getDefault() ); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_build_options.xml b/linden/indra/newview/skins/default/xui/en-us/floater_build_options.xml index 53dd217..5f9e745 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_build_options.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_build_options.xml | |||
@@ -68,13 +68,34 @@ | |||
68 | label="Values are percent" left_delta="-5" mouse_opaque="true" | 68 | label="Values are percent" left_delta="-5" mouse_opaque="true" |
69 | tool_tip="Default settings are Percentages and every axis set at 50" | 69 | tool_tip="Default settings are Percentages and every axis set at 50" |
70 | name="PivotPercToggle" radio_style="false" width="100" /> | 70 | name="PivotPercToggle" radio_style="false" width="100" /> |
71 | 71 | ||
72 | <check_box bottom_delta="60" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | 72 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
73 | initial_value="true" label="Show selection outlines" left_delta="143" | 73 | bottom_delta="-50" drop_shadow_visible="true" enabled="true" follows="left|top" font="SansSerifSmall" |
74 | mouse_opaque="true" name="BuildPrefsRenderHighlight_toggle" | 74 | h_pad="0" halign="left" height="10" left="220" mouse_opaque="false" |
75 | name="text_box8" v_pad="0" width="150">Show during build:</text> | ||
76 | <view_border bevel_style="none" border_thickness="1" bottom_delta="-98" follows="top|left" height="90" | ||
77 | left="198" name="ShowBorder" width="135" /> | ||
78 | |||
79 | |||
80 | <check_box bottom_delta="70" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
81 | initial_value="true" label="Hidden selection" left_delta="0" | ||
82 | mouse_opaque="true" name="BuildPrefsRenderHidden_toggle" | ||
75 | radio_style="false" width="270"/> | 83 | radio_style="false" width="270"/> |
76 | <check_box bottom_delta="-20" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | 84 | <check_box bottom_delta="-20" enabled="true" follows="left|top" font="SansSerifSmall" height="16" |
77 | label="Limit Select Distance" left_delta="0" mouse_opaque="true" | 85 | initial_value="true" label="Light radius" left_delta="0" |
86 | mouse_opaque="true" name="BuildPrefsRenderLightRadius_toggle" | ||
87 | radio_style="false" width="270"/> | ||
88 | <check_box bottom_delta="-20" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
89 | initial_value="true" label="Selection beam" left_delta="0" | ||
90 | mouse_opaque="true" name="BuildPrefsShowSelectionBeam_toggle" | ||
91 | radio_style="false" width="270"/> | ||
92 | <check_box bottom_delta="-20" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
93 | initial_value="true" label="Selection outlines" left_delta="0" | ||
94 | mouse_opaque="true" name="BuildPrefsRenderHighlight_toggle" | ||
95 | radio_style="false" width="270"/> | ||
96 | |||
97 | <check_box bottom_delta="198" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | ||
98 | label="Limit Select Distance" left_delta="148" mouse_opaque="true" | ||
78 | tooltip="" | 99 | tooltip="" |
79 | name="limit_select_dist_check" radio_style="false" width="270" /> | 100 | name="limit_select_dist_check" radio_style="false" width="270" /> |
80 | <check_box bottom_delta="-20" enabled="true" follows="left|top" font="SansSerifSmall" height="16" | 101 | <check_box bottom_delta="-20" enabled="true" follows="left|top" font="SansSerifSmall" height="16" |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 284f1d3..0dcc2d0 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -681,17 +681,17 @@ | |||
681 | userdata="" /> | 681 | userdata="" /> |
682 | <on_check control="RenderLightRadius" /> | 682 | <on_check control="RenderLightRadius" /> |
683 | </menu_item_check> | 683 | </menu_item_check> |
684 | <menu_item_check label="Show Selection Outlines" | ||
685 | name="Show Selection Outlines"> | ||
686 | <on_click function="Tools.ShowSelectionHighlights" userdata="" /> | ||
687 | <on_check control="RenderHighlightSelections" /> | ||
688 | </menu_item_check> | ||
689 | <menu_item_check name="Show Selection Beam" | 684 | <menu_item_check name="Show Selection Beam" |
690 | label="Show Selection Beam"> | 685 | label="Show Selection Beam"> |
691 | <on_click function="ToggleControl" | 686 | <on_click function="ToggleControl" |
692 | userdata="ShowSelectionBeam" /> | 687 | userdata="ShowSelectionBeam" /> |
693 | <on_check control="ShowSelectionBeam" /> | 688 | <on_check control="ShowSelectionBeam" /> |
694 | </menu_item_check> | 689 | </menu_item_check> |
690 | <menu_item_check label="Show Selection Outlines" | ||
691 | name="Show Selection Outlines"> | ||
692 | <on_click function="Tools.ShowSelectionHighlights" userdata="" /> | ||
693 | <on_check control="RenderHighlightSelections" /> | ||
694 | </menu_item_check> | ||
695 | </menu> | 695 | </menu> |
696 | <menu_item_separator /> | 696 | <menu_item_separator /> |
697 | <menu_item_check name="Snap to Grid" enabled="false" | 697 | <menu_item_check name="Snap to Grid" enabled="false" |