diff options
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 1 | ||||
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llselectmgr.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 12 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 6 |
6 files changed, 33 insertions, 1 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 4947c45..ba2a9e4 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -6210,6 +6210,17 @@ | |||
6210 | <key>Value</key> | 6210 | <key>Value</key> |
6211 | <integer>0</integer> | 6211 | <integer>0</integer> |
6212 | </map> | 6212 | </map> |
6213 | <key>RenderHighlightSelections</key> | ||
6214 | <map> | ||
6215 | <key>Comment</key> | ||
6216 | <string>Show selection outlines on objects</string> | ||
6217 | <key>Persist</key> | ||
6218 | <integer>1</integer> | ||
6219 | <key>Type</key> | ||
6220 | <string>Boolean</string> | ||
6221 | <key>Value</key> | ||
6222 | <integer>1</integer> | ||
6223 | </map> | ||
6213 | <key>RenderHiddenSelections</key> | 6224 | <key>RenderHiddenSelections</key> |
6214 | <map> | 6225 | <map> |
6215 | <key>Comment</key> | 6226 | <key>Comment</key> |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 4ab5d8d..488cfcf 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -392,6 +392,7 @@ static void settings_to_globals() | |||
392 | LLFolderView::sAutoOpenTime = llmax(0.25f, gSavedSettings.getF32("FolderAutoOpenDelay")); | 392 | LLFolderView::sAutoOpenTime = llmax(0.25f, gSavedSettings.getF32("FolderAutoOpenDelay")); |
393 | LLToolBar::sInventoryAutoOpenTime = gSavedSettings.getF32("InventoryAutoOpenDelay"); | 393 | LLToolBar::sInventoryAutoOpenTime = gSavedSettings.getF32("InventoryAutoOpenDelay"); |
394 | LLSelectMgr::sRectSelectInclusive = gSavedSettings.getBOOL("RectangleSelectInclusive"); | 394 | LLSelectMgr::sRectSelectInclusive = gSavedSettings.getBOOL("RectangleSelectInclusive"); |
395 | LLSelectMgr::sRenderSelectionHighlights = gSavedSettings.getBOOL("RenderHighlightSelections"); | ||
395 | LLSelectMgr::sRenderHiddenSelections = gSavedSettings.getBOOL("RenderHiddenSelections"); | 396 | LLSelectMgr::sRenderHiddenSelections = gSavedSettings.getBOOL("RenderHiddenSelections"); |
396 | LLSelectMgr::sRenderLightRadius = gSavedSettings.getBOOL("RenderLightRadius"); | 397 | LLSelectMgr::sRenderLightRadius = gSavedSettings.getBOOL("RenderLightRadius"); |
397 | 398 | ||
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp index 7afe073..998cc50 100644 --- a/linden/indra/newview/llselectmgr.cpp +++ b/linden/indra/newview/llselectmgr.cpp | |||
@@ -106,6 +106,7 @@ BOOL gHideSelectedObjects = FALSE; | |||
106 | BOOL gAllowSelectAvatar = FALSE; | 106 | BOOL gAllowSelectAvatar = FALSE; |
107 | 107 | ||
108 | BOOL LLSelectMgr::sRectSelectInclusive = TRUE; | 108 | BOOL LLSelectMgr::sRectSelectInclusive = TRUE; |
109 | BOOL LLSelectMgr::sRenderSelectionHighlights = TRUE; | ||
109 | BOOL LLSelectMgr::sRenderHiddenSelections = TRUE; | 110 | BOOL LLSelectMgr::sRenderHiddenSelections = TRUE; |
110 | BOOL LLSelectMgr::sRenderLightRadius = FALSE; | 111 | BOOL LLSelectMgr::sRenderLightRadius = FALSE; |
111 | F32 LLSelectMgr::sHighlightThickness = 0.f; | 112 | F32 LLSelectMgr::sHighlightThickness = 0.f; |
@@ -4823,7 +4824,7 @@ void LLSelectMgr::updateSilhouettes() | |||
4823 | 4824 | ||
4824 | void LLSelectMgr::renderSilhouettes(BOOL for_hud) | 4825 | void LLSelectMgr::renderSilhouettes(BOOL for_hud) |
4825 | { | 4826 | { |
4826 | if (!mRenderSilhouettes) | 4827 | if (!mRenderSilhouettes || !LLSelectMgr::sRenderSelectionHighlights) |
4827 | { | 4828 | { |
4828 | return; | 4829 | return; |
4829 | } | 4830 | } |
diff --git a/linden/indra/newview/llselectmgr.h b/linden/indra/newview/llselectmgr.h index a332053..3f32373 100644 --- a/linden/indra/newview/llselectmgr.h +++ b/linden/indra/newview/llselectmgr.h | |||
@@ -337,6 +337,7 @@ class LLSelectMgr : public LLEditMenuHandler, public LLSingleton<LLSelectMgr> | |||
337 | { | 337 | { |
338 | public: | 338 | public: |
339 | static BOOL sRectSelectInclusive; // do we need to surround an object to pick it? | 339 | static BOOL sRectSelectInclusive; // do we need to surround an object to pick it? |
340 | static BOOL sRenderSelectionHighlights; // do we show selection silhouettes? | ||
340 | static BOOL sRenderHiddenSelections; // do we show selection silhouettes that are occluded? | 341 | static BOOL sRenderHiddenSelections; // do we show selection silhouettes that are occluded? |
341 | static BOOL sRenderLightRadius; // do we show the radius of selected lights? | 342 | static BOOL sRenderLightRadius; // do we show the radius of selected lights? |
342 | static F32 sHighlightThickness; | 343 | static F32 sHighlightThickness; |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 838f230..2940bdd 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -6625,6 +6625,17 @@ class LLToolsSelectBySurrounding : public view_listener_t | |||
6625 | } | 6625 | } |
6626 | }; | 6626 | }; |
6627 | 6627 | ||
6628 | class LLToolsShowSelectionHighlights : public view_listener_t | ||
6629 | { | ||
6630 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
6631 | { | ||
6632 | LLSelectMgr::sRenderSelectionHighlights = !LLSelectMgr::sRenderSelectionHighlights; | ||
6633 | |||
6634 | gSavedSettings.setBOOL("RenderHighlightSelections", LLSelectMgr::sRenderSelectionHighlights); | ||
6635 | return true; | ||
6636 | } | ||
6637 | }; | ||
6638 | |||
6628 | class LLToolsShowHiddenSelection : public view_listener_t | 6639 | class LLToolsShowHiddenSelection : public view_listener_t |
6629 | { | 6640 | { |
6630 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 6641 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -9571,6 +9582,7 @@ void initialize_menus() | |||
9571 | addMenu(new LLToolsSelectOnlyMovableObjects(), "Tools.SelectOnlyMovableObjects"); | 9582 | addMenu(new LLToolsSelectOnlyMovableObjects(), "Tools.SelectOnlyMovableObjects"); |
9572 | addMenu(new LLToolsSelectOnlyCopyableObjects(), "Tools.SelectOnlyCopyableObjects"); | 9583 | addMenu(new LLToolsSelectOnlyCopyableObjects(), "Tools.SelectOnlyCopyableObjects"); |
9573 | addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding"); | 9584 | addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding"); |
9585 | addMenu(new LLToolsShowSelectionHighlights(), "Tools.ShowSelectionHighlights"); | ||
9574 | addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection"); | 9586 | addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection"); |
9575 | addMenu(new LLToolsShowSelectionLightRadius(), "Tools.ShowSelectionLightRadius"); | 9587 | addMenu(new LLToolsShowSelectionLightRadius(), "Tools.ShowSelectionLightRadius"); |
9576 | addMenu(new LLToolsEditLinkedParts(), "Tools.EditLinkedParts"); | 9588 | addMenu(new LLToolsEditLinkedParts(), "Tools.EditLinkedParts"); |
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 e085b21..f837029 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 | |||
@@ -571,6 +571,7 @@ | |||
571 | userdata="" /> | 571 | userdata="" /> |
572 | <on_check control="RectangleSelectInclusive" /> | 572 | <on_check control="RectangleSelectInclusive" /> |
573 | </menu_item_check> | 573 | </menu_item_check> |
574 | <menu_item_separator /> | ||
574 | <menu_item_check name="Show Hidden Selection" | 575 | <menu_item_check name="Show Hidden Selection" |
575 | label="Show Hidden Selection"> | 576 | label="Show Hidden Selection"> |
576 | <on_click function="Tools.ShowHiddenSelection" | 577 | <on_click function="Tools.ShowHiddenSelection" |
@@ -583,6 +584,11 @@ | |||
583 | userdata="" /> | 584 | userdata="" /> |
584 | <on_check control="RenderLightRadius" /> | 585 | <on_check control="RenderLightRadius" /> |
585 | </menu_item_check> | 586 | </menu_item_check> |
587 | <menu_item_check label="Show Selection Outlines" | ||
588 | name="Show Selection Outlines"> | ||
589 | <on_click function="Tools.ShowSelectionHighlights" userdata="" /> | ||
590 | <on_check control="RenderHighlightSelections" /> | ||
591 | </menu_item_check> | ||
586 | <menu_item_check name="Show Selection Beam" | 592 | <menu_item_check name="Show Selection Beam" |
587 | label="Show Selection Beam"> | 593 | label="Show Selection Beam"> |
588 | <on_click function="ToggleControl" | 594 | <on_click function="ToggleControl" |