diff options
-rw-r--r-- | ChangeLog.txt | 6 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 31 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 6 |
3 files changed, 39 insertions, 4 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 4794bb7..1d8ea17 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,11 @@ | |||
1 | 2008-09-28 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2008-09-28 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 2 | ||
3 | * linden/indra/newview/llviewermenu.cpp: | ||
4 | Added event callbacks for Attached Lights and Attached Particles. | ||
5 | * linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml: | ||
6 | Updated XUI menu entries for Attached Lights and Attached Particles | ||
7 | to use the new event callbacks. Those menu entries now work. | ||
8 | |||
3 | * Updated to SL source 1.21.2. | 9 | * Updated to SL source 1.21.2. |
4 | 10 | ||
5 | 2008-09-22 Jacek Antonelli <jacek.antonelli@gmail.com> | 11 | 2008-09-22 Jacek Antonelli <jacek.antonelli@gmail.com> |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 9687e11..8165e55 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -8295,6 +8295,33 @@ class LLAdvancedCheckDisableTextures : public view_listener_t | |||
8295 | 8295 | ||
8296 | 8296 | ||
8297 | 8297 | ||
8298 | //////////////////////////////////////// | ||
8299 | // RENDER ATTACHED LIGHTS / PARTICLES // | ||
8300 | //////////////////////////////////////// | ||
8301 | |||
8302 | |||
8303 | class LLToggleRenderAttachedLights : public view_listener_t | ||
8304 | { | ||
8305 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8306 | { | ||
8307 | menu_toggle_control((void *)"RenderAttachedLights"); | ||
8308 | LLPipeline::sRenderAttachedLights = gSavedSettings.getBOOL("RenderAttachedLights"); | ||
8309 | return true; | ||
8310 | } | ||
8311 | }; | ||
8312 | |||
8313 | class LLToggleRenderAttachedParticles : public view_listener_t | ||
8314 | { | ||
8315 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8316 | { | ||
8317 | menu_toggle_control((void *)"RenderAttachedParticles"); | ||
8318 | LLPipeline::sRenderAttachedParticles = gSavedSettings.getBOOL("RenderAttachedParticles"); | ||
8319 | return true; | ||
8320 | } | ||
8321 | }; | ||
8322 | |||
8323 | |||
8324 | |||
8298 | ////////////////////////// | 8325 | ////////////////////////// |
8299 | // DUMP SCRIPTED CAMERA // | 8326 | // DUMP SCRIPTED CAMERA // |
8300 | ////////////////////////// | 8327 | ////////////////////////// |
@@ -9956,6 +9983,10 @@ void initialize_menus() | |||
9956 | addMenu(new LLAdvancedToggleDisableTextures(), "Advanced.ToggleDisableTextures"); | 9983 | addMenu(new LLAdvancedToggleDisableTextures(), "Advanced.ToggleDisableTextures"); |
9957 | addMenu(new LLAdvancedCheckDisableTextures(), "Advanced.CheckDisableTextures"); | 9984 | addMenu(new LLAdvancedCheckDisableTextures(), "Advanced.CheckDisableTextures"); |
9958 | 9985 | ||
9986 | // Advanced > Render (top level menu) | ||
9987 | addMenu(new LLToggleRenderAttachedLights(), "ToggleRenderAttachedLights"); | ||
9988 | addMenu(new LLToggleRenderAttachedParticles(), "ToggleRenderAttachedParticles"); | ||
9989 | |||
9959 | // Advanced > World | 9990 | // Advanced > World |
9960 | addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera"); | 9991 | addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera"); |
9961 | addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache"); | 9992 | addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache"); |
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 40de54f..f82f254 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 | |||
@@ -1418,13 +1418,11 @@ | |||
1418 | <on_check control="CheesyBeacon" /> | 1418 | <on_check control="CheesyBeacon" /> |
1419 | </menu_item_check> | 1419 | </menu_item_check> |
1420 | <menu_item_check name="Attached Lights" label="Attached Lights"> | 1420 | <menu_item_check name="Attached Lights" label="Attached Lights"> |
1421 | <on_click function="ToggleControl" | 1421 | <on_click function="ToggleRenderAttachedLights" /> |
1422 | userdata="RenderAttachedLights" /> | ||
1423 | <on_check control="RenderAttachedLights" /> | 1422 | <on_check control="RenderAttachedLights" /> |
1424 | </menu_item_check> | 1423 | </menu_item_check> |
1425 | <menu_item_check name="Attached Particles" label="Attached Particles"> | 1424 | <menu_item_check name="Attached Particles" label="Attached Particles"> |
1426 | <on_click function="ToggleControl" | 1425 | <on_click function="ToggleRenderAttachedParticles" /> |
1427 | userdata="RenderAttachedParticles" /> | ||
1428 | <on_check control="RenderAttachedParticles" /> | 1426 | <on_check control="RenderAttachedParticles" /> |
1429 | </menu_item_check> | 1427 | </menu_item_check> |
1430 | </menu> | 1428 | </menu> |