void LLFloaterMove::initModeTooltips() { control_tooltip_map_t walkTipMap; walkTipMap.insert(std::make_pair(mForwardButton, getString("walk_forward_tooltip"))); walkTipMap.insert(std::make_pair(mBackwardButton, getString("walk_back_tooltip"))); walkTipMap.insert(std::make_pair(mSlideLeftButton, getString("walk_left_tooltip"))); walkTipMap.insert(std::make_pair(mSlideRightButton, getString("walk_right_tooltip"))); walkTipMap.insert(std::make_pair(mMoveUpButton, getString("jump_tooltip"))); walkTipMap.insert(std::make_pair(mMoveDownButton, getString("crouch_tooltip"))); mModeControlTooltipsMap[MM_WALK] = walkTipMap; control_tooltip_map_t runTipMap; runTipMap.insert(std::make_pair(mForwardButton, getString("run_forward_tooltip"))); runTipMap.insert(std::make_pair(mBackwardButton, getString("run_back_tooltip"))); runTipMap.insert(std::make_pair(mSlideLeftButton, getString("run_left_tooltip"))); runTipMap.insert(std::make_pair(mSlideRightButton, getString("run_right_tooltip"))); runTipMap.insert(std::make_pair(mMoveUpButton, getString("jump_tooltip"))); runTipMap.insert(std::make_pair(mMoveDownButton, getString("crouch_tooltip"))); mModeControlTooltipsMap[MM_RUN] = runTipMap; control_tooltip_map_t flyTipMap; flyTipMap.insert(std::make_pair(mForwardButton, getString("fly_forward_tooltip"))); flyTipMap.insert(std::make_pair(mBackwardButton, getString("fly_back_tooltip"))); flyTipMap.insert(std::make_pair(mSlideLeftButton, getString("fly_left_tooltip"))); flyTipMap.insert(std::make_pair(mSlideRightButton, getString("fly_right_tooltip"))); flyTipMap.insert(std::make_pair(mMoveUpButton, getString("fly_up_tooltip"))); flyTipMap.insert(std::make_pair(mMoveDownButton, getString("fly_down_tooltip"))); mModeControlTooltipsMap[MM_FLY] = flyTipMap; setModeTooltip(MM_WALK); }
void LLFloaterMove::updateButtonsWithMovementMode(const EMovementMode newMode) { showFlyControls(MM_FLY == newMode); setModeTooltip(newMode); setModeButtonToggleState(newMode); setModeTitle(newMode); }
void LLFloaterMove::initModeTooltips() { control_tooltip_map_t walkTipMap; walkTipMap.insert(std::make_pair(mForwardButton, getString("walk_forward_tooltip"))); walkTipMap.insert(std::make_pair(mBackwardButton, getString("walk_back_tooltip"))); mModeControlTooltipsMap[MM_WALK] = walkTipMap; control_tooltip_map_t runTipMap; runTipMap.insert(std::make_pair(mForwardButton, getString("run_forward_tooltip"))); runTipMap.insert(std::make_pair(mBackwardButton, getString("run_back_tooltip"))); mModeControlTooltipsMap[MM_RUN] = runTipMap; control_tooltip_map_t flyTipMap; flyTipMap.insert(std::make_pair(mForwardButton, getString("fly_forward_tooltip"))); flyTipMap.insert(std::make_pair(mBackwardButton, getString("fly_back_tooltip"))); mModeControlTooltipsMap[MM_FLY] = flyTipMap; setModeTooltip(MM_WALK); }
void LLFloaterMove::updateButtonsWithMovementMode(const EMovementMode newMode) { setModeTooltip(newMode); setModeButtonToggleState(newMode); setModeTitle(newMode); }