Merge branch 'master' of git://github.com/Lirusaito/SingularityViewer
This commit is contained in:
@@ -6530,6 +6530,7 @@ class LLShowFloater : public view_listener_t
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
std::string floater_name = userdata.asString();
|
||||
if (floater_name.empty()) return false;
|
||||
if (floater_name == "gestures")
|
||||
{
|
||||
LLFloaterGesture::toggleVisibility();
|
||||
@@ -6701,6 +6702,14 @@ class LLShowFloater : public view_listener_t
|
||||
{
|
||||
LLFloaterOutbox::toggleInstance(LLSD());
|
||||
}
|
||||
else // Simple codeless floater
|
||||
{
|
||||
LLFloater* floater = LLUICtrlFactory::getInstance()->getBuiltFloater(floater_name);
|
||||
if (floater)
|
||||
gFloaterView->bringToFront(floater);
|
||||
else
|
||||
LLUICtrlFactory::getInstance()->buildFloater(new LLFloater(), floater_name);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user