aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-28 20:19:51 -0500
committerJacek Antonelli2008-09-28 20:19:51 -0500
commitfb98b06dba60400f101053a255427218739b4379 (patch)
tree0722667df8dd5c0a599ab68b484e00b71e7cbbb9 /linden
parentUpdated to SL source 1.21.2. (diff)
downloadmeta-impy-fb98b06dba60400f101053a255427218739b4379.zip
meta-impy-fb98b06dba60400f101053a255427218739b4379.tar.gz
meta-impy-fb98b06dba60400f101053a255427218739b4379.tar.bz2
meta-impy-fb98b06dba60400f101053a255427218739b4379.tar.xz
Added event callbacks for Attached Lights and Attached Particles
and updated their XUI menu entries to use the new event callbacks. Those menu entries now work.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewermenu.cpp31
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml6
2 files changed, 33 insertions, 4 deletions
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
8303class 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
8313class 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>