diff options
author | Jacek Antonelli | 2009-01-27 02:47:35 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-01-27 03:17:56 -0600 |
commit | 2722047e162730d33806e15c033803435a906d7b (patch) | |
tree | b2a0745c4a90fe9148753a5c4f99257a90c0a426 /linden/indra/newview/llviewermenu.cpp | |
parent | Set GST_PLUGIN_PATH for Linux. (diff) | |
download | meta-impy-2722047e162730d33806e15c033803435a906d7b.zip meta-impy-2722047e162730d33806e15c033803435a906d7b.tar.gz meta-impy-2722047e162730d33806e15c033803435a906d7b.tar.bz2 meta-impy-2722047e162730d33806e15c033803435a906d7b.tar.xz |
Restored View > Toolbar and Show HUD Attachments.
Partial revert of earlier commit e79a1cc5.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 4c6de79..c4cbf84 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -5073,6 +5073,10 @@ class LLShowFloater : public view_listener_t | |||
5073 | { | 5073 | { |
5074 | LLFloaterPreference::show(NULL); | 5074 | LLFloaterPreference::show(NULL); |
5075 | } | 5075 | } |
5076 | else if (floater_name == "toolbar") | ||
5077 | { | ||
5078 | LLToolBar::toggle(NULL); | ||
5079 | } | ||
5076 | else if (floater_name == "chat history") | 5080 | else if (floater_name == "chat history") |
5077 | { | 5081 | { |
5078 | LLFloaterChat::toggleInstance(LLSD()); | 5082 | LLFloaterChat::toggleInstance(LLSD()); |
@@ -5205,6 +5209,10 @@ class LLFloaterVisible : public view_listener_t | |||
5205 | { | 5209 | { |
5206 | new_value = LLFloaterMyFriends::instanceVisible(0); | 5210 | new_value = LLFloaterMyFriends::instanceVisible(0); |
5207 | } | 5211 | } |
5212 | else if (floater_name == "toolbar") | ||
5213 | { | ||
5214 | new_value = LLToolBar::visible(NULL); | ||
5215 | } | ||
5208 | else if (floater_name == "chat history") | 5216 | else if (floater_name == "chat history") |
5209 | { | 5217 | { |
5210 | new_value = LLFloaterChat::instanceVisible(); | 5218 | new_value = LLFloaterChat::instanceVisible(); |
@@ -7203,6 +7211,25 @@ class LLViewCheckRenderType : public view_listener_t | |||
7203 | } | 7211 | } |
7204 | }; | 7212 | }; |
7205 | 7213 | ||
7214 | class LLViewShowHUDAttachments : public view_listener_t | ||
7215 | { | ||
7216 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7217 | { | ||
7218 | LLPipeline::sShowHUDAttachments = !LLPipeline::sShowHUDAttachments; | ||
7219 | return true; | ||
7220 | } | ||
7221 | }; | ||
7222 | |||
7223 | class LLViewCheckHUDAttachments : public view_listener_t | ||
7224 | { | ||
7225 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7226 | { | ||
7227 | bool new_value = LLPipeline::sShowHUDAttachments; | ||
7228 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | ||
7229 | return true; | ||
7230 | } | ||
7231 | }; | ||
7232 | |||
7206 | class LLEditEnableTakeOff : public view_listener_t | 7233 | class LLEditEnableTakeOff : public view_listener_t |
7207 | { | 7234 | { |
7208 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 7235 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -9657,6 +9684,7 @@ void initialize_menus() | |||
9657 | addMenu(new LLViewToggleBeacon(), "View.ToggleBeacon"); | 9684 | addMenu(new LLViewToggleBeacon(), "View.ToggleBeacon"); |
9658 | addMenu(new LLViewBeaconWidth(), "View.BeaconWidth"); | 9685 | addMenu(new LLViewBeaconWidth(), "View.BeaconWidth"); |
9659 | addMenu(new LLViewToggleRenderType(), "View.ToggleRenderType"); | 9686 | addMenu(new LLViewToggleRenderType(), "View.ToggleRenderType"); |
9687 | addMenu(new LLViewShowHUDAttachments(), "View.ShowHUDAttachments"); | ||
9660 | addMenu(new LLViewZoomOut(), "View.ZoomOut"); | 9688 | addMenu(new LLViewZoomOut(), "View.ZoomOut"); |
9661 | addMenu(new LLViewZoomIn(), "View.ZoomIn"); | 9689 | addMenu(new LLViewZoomIn(), "View.ZoomIn"); |
9662 | addMenu(new LLViewZoomDefault(), "View.ZoomDefault"); | 9690 | addMenu(new LLViewZoomDefault(), "View.ZoomDefault"); |
@@ -9671,6 +9699,7 @@ void initialize_menus() | |||
9671 | addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent"); | 9699 | addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent"); |
9672 | addMenu(new LLViewCheckBeaconEnabled(), "View.CheckBeaconEnabled"); | 9700 | addMenu(new LLViewCheckBeaconEnabled(), "View.CheckBeaconEnabled"); |
9673 | addMenu(new LLViewCheckRenderType(), "View.CheckRenderType"); | 9701 | addMenu(new LLViewCheckRenderType(), "View.CheckRenderType"); |
9702 | addMenu(new LLViewCheckHUDAttachments(), "View.CheckHUDAttachments"); | ||
9674 | 9703 | ||
9675 | // World menu | 9704 | // World menu |
9676 | addMenu(new LLWorldChat(), "World.Chat"); | 9705 | addMenu(new LLWorldChat(), "World.Chat"); |