diff options
author | Jacek Antonelli | 2008-09-28 20:19:51 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-28 20:19:51 -0500 |
commit | fb98b06dba60400f101053a255427218739b4379 (patch) | |
tree | 0722667df8dd5c0a599ab68b484e00b71e7cbbb9 /linden/indra/newview/llviewermenu.cpp | |
parent | Updated to SL source 1.21.2. (diff) | |
download | meta-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.cpp | 31 |
1 files changed, 31 insertions, 0 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 | |||
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"); |