bool LLScriptFloater::toggle(const LLUUID& notification_id) { LLScriptFloater* floater = LLFloaterReg::findTypedInstance<LLScriptFloater>("script_floater", notification_id); // show existing floater if(floater) { if(floater->getVisible()) { floater->setVisible(false); return false; } else { floater->setVisible(TRUE); floater->setFocus(FALSE); } } // create and show new floater else { show(notification_id); } LLChicletBar::getInstance()->getChicletPanel()->setChicletToggleState(notification_id, true); return true; }
void LLScriptFloaterManager::setFloaterVisible(const LLUUID& notification_id, bool visible) { LLScriptFloater* floater = LLFloaterReg::findTypedInstance<LLScriptFloater>( "script_floater", notification_id); if(floater) { floater->setVisible(visible); } }