diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
commit | 7da95c7f4da447876458a0b1a17736b9a2865844 (patch) | |
tree | 4b6ac0ab5bc32a11234a5363de95d0cfec8cb7d5 /src/gui/popups | |
parent | 515ce6c1413b5e3da131f3e4997abdc39c003a2c (diff) | |
download | manaplus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.gz manaplus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.bz2 manaplus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.xz manaplus-7da95c7f4da447876458a0b1a17736b9a2865844.zip |
Move inputaction into separate file.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/statuspopup.cpp | 32 | ||||
-rw-r--r-- | src/gui/popups/statuspopup.h | 3 |
2 files changed, 18 insertions, 17 deletions
diff --git a/src/gui/popups/statuspopup.cpp b/src/gui/popups/statuspopup.cpp index 2c149f755..a1e0b502c 100644 --- a/src/gui/popups/statuspopup.cpp +++ b/src/gui/popups/statuspopup.cpp @@ -125,7 +125,7 @@ void StatusPopup::view(const int x, const int y) void StatusPopup::setLabelText(const int num, const std::string &text, - const Input::KeyAction key) const + const InputAction::Type key) const { Label *const label = mLabels[num]; label->setCaption(strprintf("%s %s", text.c_str(), @@ -139,33 +139,33 @@ void StatusPopup::updateLabels() const return; setLabelText(0, player_node->getInvertDirectionString(), - Input::KEY_INVERT_DIRECTION); + InputAction::INVERT_DIRECTION); setLabelText(1, player_node->getCrazyMoveTypeString(), - Input::KEY_CHANGE_CRAZY_MOVES_TYPE); + InputAction::CHANGE_CRAZY_MOVES_TYPE); setLabelText(2, player_node->getMoveToTargetTypeString(), - Input::KEY_CHANGE_MOVE_TO_TARGET); + InputAction::CHANGE_MOVE_TO_TARGET); setLabelText(3, player_node->getFollowModeString(), - Input::KEY_CHANGE_FOLLOW_MODE); + InputAction::CHANGE_FOLLOW_MODE); setLabelText(4, player_node->getAttackWeaponTypeString(), - Input::KEY_CHANGE_ATTACK_WEAPON_TYPE); + InputAction::CHANGE_ATTACK_WEAPON_TYPE); setLabelText(5, player_node->getAttackTypeString(), - Input::KEY_CHANGE_ATTACK_TYPE); + InputAction::CHANGE_ATTACK_TYPE); setLabelText(6, player_node->getQuickDropCounterString(), - Input::KEY_SWITCH_QUICK_DROP); + InputAction::SWITCH_QUICK_DROP); setLabelText(7, player_node->getPickUpTypeString(), - Input::KEY_CHANGE_PICKUP_TYPE); + InputAction::CHANGE_PICKUP_TYPE); setLabelText(8, LocalPlayer::getDebugPathString(), - Input::KEY_PATHFIND); + InputAction::PATHFIND); setLabelText(9, player_node->getMagicAttackString(), - Input::KEY_SWITCH_MAGIC_ATTACK); + InputAction::SWITCH_MAGIC_ATTACK); setLabelText(10, player_node->getPvpAttackString(), - Input::KEY_SWITCH_PVP_ATTACK); + InputAction::SWITCH_PVP_ATTACK); setLabelText(11, player_node->getGameModifiersString(), - Input::KEY_DISABLE_GAME_MODIFIERS); + InputAction::DISABLE_GAME_MODIFIERS); setLabelText(12, player_node->getImitationModeString(), - Input::KEY_CHANGE_IMITATION_MODE); + InputAction::CHANGE_IMITATION_MODE); setLabelText(13, player_node->getAwayModeString(), - Input::KEY_AWAY); + InputAction::AWAY); setLabelText(14, LocalPlayer::getCameraModeString(), - Input::KEY_CAMERA); + InputAction::CAMERA); } diff --git a/src/gui/popups/statuspopup.h b/src/gui/popups/statuspopup.h index 6b9b917b7..e0fe09d14 100644 --- a/src/gui/popups/statuspopup.h +++ b/src/gui/popups/statuspopup.h @@ -24,6 +24,7 @@ #ifndef GUI_POPUPS_STATUSPOPUP_H #define GUI_POPUPS_STATUSPOPUP_H +#include "input/inputaction.h" #include "input/keydata.h" #include "gui/widgets/popup.h" @@ -63,7 +64,7 @@ class StatusPopup final : public Popup void updateLabels() const; void setLabelText(const int num, const std::string &text, - const Input::KeyAction key) const; + const InputAction::Type key) const; Label *mLabels[STATUSPOPUP_NUM_LABELS]; }; |