diff --git a/indra/newview/ao.cpp b/indra/newview/ao.cpp index 2427f837d5..d6fbe7f07a 100644 --- a/indra/newview/ao.cpp +++ b/indra/newview/ao.cpp @@ -225,6 +225,11 @@ BOOL FloaterAO::postBuild() updateList(); + if(gSavedPerAccountSettings.getBOOL("UseFullAOInterface")) + onClickMore(); + else + onClickLess(); + return LLDockableFloater::postBuild(); } @@ -620,15 +625,23 @@ void FloaterAO::onClickNext() void FloaterAO::onClickMore() { - LLRect fullSize=gSavedPerAccountSettings.getRect("floater_rect_animation_overrider"); + LLRect fullSize=gSavedPerAccountSettings.getRect("floater_rect_animation_overrider_full"); LLRect smallSize=getRect(); + if(fullSize.getHeight()setVisible(FALSE); mMainInterfacePanel->setVisible(TRUE); setCanResize(TRUE); + gSavedPerAccountSettings.setBOOL("UseFullAOInterface",TRUE); + reshape(getRect().getWidth(),fullSize.getHeight()); } @@ -638,16 +651,20 @@ void FloaterAO::onClickLess() LLRect smallSize=mSmallInterfacePanel->getRect(); smallSize.setLeftTopAndSize(0,0,smallSize.getWidth(),smallSize.getHeight()+getHeaderHeight()); + gSavedPerAccountSettings.setRect("floater_rect_animation_overrider_full",fullSize); + mMore=FALSE; mSmallInterfacePanel->setVisible(TRUE); mMainInterfacePanel->setVisible(FALSE); setCanResize(FALSE); + gSavedPerAccountSettings.setBOOL("UseFullAOInterface",FALSE); + reshape(getRect().getWidth(),smallSize.getHeight()); // save current size and position - gSavedPerAccountSettings.setRect("floater_rect_animation_overrider",fullSize); + gSavedPerAccountSettings.setRect("floater_rect_animation_overrider_full",fullSize); } // virtual diff --git a/indra/newview/app_settings/settings_per_account.xml b/indra/newview/app_settings/settings_per_account.xml index 88891d3d05..1bfaffe6d9 100644 --- a/indra/newview/app_settings/settings_per_account.xml +++ b/indra/newview/app_settings/settings_per_account.xml @@ -262,6 +262,33 @@ Value 0 + UseFullAOInterface + + Comment + Use the full Animation Overrider interface (TRUE) or the small, reduced interface (FALSE). + Persist + 1 + Type + Boolean + Value + 0 + + floater_rect_animation_overrider_full + + Comment + Position and size for the full Animation Overrider interface. The defaults are just dummy values. + Persist + 1 + Type + Rect + Value + + 0 + 0 + 0 + 0 + + diff --git a/indra/newview/skins/default/xui/en/panel_ao.xml b/indra/newview/skins/default/xui/en/panel_ao.xml index 27e4c72433..44cf9bd51a 100644 --- a/indra/newview/skins/default/xui/en/panel_ao.xml +++ b/indra/newview/skins/default/xui/en/panel_ao.xml @@ -390,7 +390,7 @@ left="10" top="4" width="180" - height="45" + height="52" visible="false" follows="left|right|top" layout="topleft">