コード例 #1
0
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();
}
コード例 #2
0
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();
}
コード例 #3
0
void LLFloaterEnvSettings::onClickHelp(void* data)
{
	LLFloaterEnvSettings* self = (LLFloaterEnvSettings*)data;
	LLNotifications::instance().add(self->contextualNotification("EnvSettingsHelpButton"));
}
コード例 #4
0
void LLFloaterEnvSettings::onClickHelp(void* data)
{
	LLFloaterEnvSettings* self = (LLFloaterEnvSettings*)data;
	self->addContextualNotification("EnvSettingsHelpButton");
}