Added menu listener for showing things on non-SL grids.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user