Added menu listener for showing things on non-SL grids.

This commit is contained in:
Lirusaito
2013-07-18 18:53:52 -04:00
parent ceb9c99736
commit fc7cdc016a

View File

@@ -9204,6 +9204,15 @@ class SinguVisibleDebugConsole : public view_listener_t
}
};
class VisibleNotSecondLife : public view_listener_t
{
bool handleEvent(LLPointer<LLEvent> 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);
}