From fc7cdc016a2462457592b3c00de3e55c0b7c8808 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Thu, 18 Jul 2013 18:53:52 -0400 Subject: [PATCH] Added menu listener for showing things on non-SL grids. --- indra/newview/llviewermenu.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index ef21a0a16..21d4226a6 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -9204,6 +9204,15 @@ class SinguVisibleDebugConsole : public view_listener_t } }; +class VisibleNotSecondLife : public view_listener_t +{ + bool handleEvent(LLPointer event, const LLSD& userdata) + { + gMenuHolder->findControl(userdata["control"].asString())->setValue(!gHippoGridManager->getConnectedGrid()->isSecondLife()); + return true; + } +}; + void addMenu(view_listener_t *menu, const std::string& name) { sMenus.push_back(menu); @@ -9505,6 +9514,8 @@ void initialize_menus() } // [/RLVa:KB] + addMenu(new VisibleNotSecondLife(), "VisibleNotSecondLife"); + LLToolMgr::getInstance()->initMenu(sMenus); }