Address Issue 1761: Grid status from Help menu

Adds Grid Status... item to Help menu

Translators:
add WebLaunchGridStatus notification translation to notifications.xml
add Grid Status... menu item translation to menu_viewer.xml and menu_login.xml

Adds menu visibility function "VisibleSecondLife" for hiding things that shouldn't be shown on OpenSim
Hides SL issue tracker and wiki menu items on non-SL grids
This commit is contained in:
Inusaito Sayori
2014-12-28 12:17:18 -05:00
parent 6e8cd5a4cc
commit 5257eec81e
4 changed files with 37 additions and 0 deletions

View File

@@ -8867,6 +8867,15 @@ class SinguVisibleDebugConsole : public view_listener_t
}
};
class VisibleSecondLife : public view_listener_t
{
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
gMenuHolder->findControl(userdata["control"].asString())->setValue(gHippoGridManager->getCurrentGrid()->isSecondLife());
return true;
}
};
class VisibleNotSecondLife : public view_listener_t
{
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -9527,6 +9536,7 @@ void initialize_menus()
}
// [/RLVa:KB]
addMenu(new VisibleSecondLife(), "VisibleSecondLife");
addMenu(new VisibleNotSecondLife(), "VisibleNotSecondLife");
// List-bound menus