diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-22 14:32:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-22 14:32:49 +0300 |
commit | 2609823ca60f2f7531033ca557de6ce37d00f97e (patch) | |
tree | f565368d2ee164b4e9f985d3a8e70a7f6993ba8d /src/gui/statuspopup.h | |
parent | 0d09f7657fd66febe1866a38e19a29f5eda1cdbe (diff) | |
download | plus-2609823ca60f2f7531033ca557de6ce37d00f97e.tar.gz plus-2609823ca60f2f7531033ca557de6ce37d00f97e.tar.bz2 plus-2609823ca60f2f7531033ca557de6ce37d00f97e.tar.xz plus-2609823ca60f2f7531033ca557de6ce37d00f97e.zip |
improve statuspopup.
Diffstat (limited to 'src/gui/statuspopup.h')
-rw-r--r-- | src/gui/statuspopup.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/gui/statuspopup.h b/src/gui/statuspopup.h index 0dd0f4486..eff1b15c0 100644 --- a/src/gui/statuspopup.h +++ b/src/gui/statuspopup.h @@ -35,6 +35,8 @@ class Label; class TextBox; +const int STATUSPOPUP_NUM_LABELS = 15; + /** * A popup that displays information about an item. */ @@ -63,24 +65,10 @@ class StatusPopup final : public Popup private: void updateLabels(); - void setLabelText(Label *const label, const std::string &text, + void setLabelText(const int num, const std::string &text, const Input::KeyAction key) const; - Label *mMoveType; - Label *mCrazyMoveType; - Label *mMoveToTargetType; - Label *mFollowMode; - Label *mAttackType; - Label *mAttackWeaponType; - Label *mDropCounter; - Label *mPickUpType; - Label *mMapType; - Label *mMagicAttackType; - Label *mPvpAttackType; - Label *mDisableGameModifiers; - Label *mImitationMode; - Label *mAwayMode; - Label *mCameraMode; + Label *mLabels[STATUSPOPUP_NUM_LABELS]; }; #endif // StatusPopup_H |