Merge branch 'master' of git://github.com/Lirusaito/SingularityViewer

This commit is contained in:
Siana Gearz
2013-02-03 22:27:53 +01:00
500 changed files with 1323 additions and 115 deletions

View File

@@ -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;
}
};