void LLFloaterEnvSettings::show() { LLFloaterEnvSettings* envSettings = instance(); envSettings->syncMenu(); // comment in if you want the menu to rebuild each time //LLUICtrlFactory::getInstance()->buildFloater(envSettings, "floater_env_settings.xml"); //envSettings->initCallbacks(); envSettings->open(); }
void LLFloaterEnvSettings::show() { if (RlvActions::hasBehaviour(RLV_BHVR_SETENV)) return; if (!sEnvSettings) // Liru TODO: Remove this when UI Overhaul merges, it will no longer be an issue. { sEnvSettings = new LLFloaterEnvSettings(); return; // Will now be visible, don't change that. } LLFloaterEnvSettings* envSettings = instance(); envSettings->syncMenu(); // comment in if you want the menu to rebuild each time //LLUICtrlFactory::getInstance()->buildFloater(envSettings, "floater_env_settings.xml"); //envSettings->initCallbacks(); if (envSettings->getVisible()) envSettings->close(); else envSettings->open(); }
void LLFloaterEnvSettings::onClickHelp(void* data) { LLFloaterEnvSettings* self = (LLFloaterEnvSettings*)data; LLNotifications::instance().add(self->contextualNotification("EnvSettingsHelpButton")); }
void LLFloaterEnvSettings::onClickHelp(void* data) { LLFloaterEnvSettings* self = (LLFloaterEnvSettings*)data; self->addContextualNotification("EnvSettingsHelpButton"); }