void LLFloaterMove::onOpen(const LLSD& key) { if (gAgent.getFlying()) { setFlyingMode(TRUE); showModeButtons(FALSE); } if (isAgentAvatarValid() && gAgentAvatarp->isSitting()) { setSittingMode(TRUE); showModeButtons(FALSE); } sUpdateFlyingStatus(); }
void LLFloaterMove::onOpen(const LLSD& key) { LLButton *anchor_panel = LLBottomTray::getInstance()->getChild<LLButton>("movement_btn"); if (gAgent.getFlying()) { setFlyingMode(TRUE); showModeButtons(FALSE); } if (gAgent.getAvatarObject() && gAgent.getAvatarObject()->isSitting()) { setSittingMode(TRUE); showModeButtons(FALSE); } setDockControl(new LLDockControl( anchor_panel, this, getDockTongue(), LLDockControl::TOP)); sUpdateFlyingStatus(); }