diff options
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 |