From 066488a6f4d086b57f4fe32e8799c207552cccb7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Oct 2012 18:50:27 +0300 Subject: Add theming to labels. New theme file: label.xml Parameters: padding --- src/gui/statuspopup.h | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'src/gui/statuspopup.h') diff --git a/src/gui/statuspopup.h b/src/gui/statuspopup.h index cbccaf98d..c10a0b8ea 100644 --- a/src/gui/statuspopup.h +++ b/src/gui/statuspopup.h @@ -32,6 +32,7 @@ #include +class Label; class TextBox; namespace gcn @@ -67,27 +68,27 @@ class StatusPopup final : public Popup private: void updateLabels(); - void setLabelText(gcn::Label *const label, const char *const text, + void setLabelText(Label *const label, const char *const text, const int key) const; - void setLabelText2(gcn::Label *const label, const std::string &text, + void setLabelText2(Label *const label, const std::string &text, const Input::KeyAction key) const; - gcn::Label *mMoveType; - gcn::Label *mCrazyMoveType; - gcn::Label *mMoveToTargetType; - gcn::Label *mFollowMode; - gcn::Label *mAttackType; - gcn::Label *mAttackWeaponType; - gcn::Label *mDropCounter; - gcn::Label *mPickUpType; - gcn::Label *mMapType; - gcn::Label *mMagicAttackType; - gcn::Label *mPvpAttackType; - gcn::Label *mDisableGameModifiers; - gcn::Label *mImitationMode; - gcn::Label *mAwayMode; - gcn::Label *mCameraMode; + 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; }; #endif // StatusPopup_H -- cgit v1.2.3-70-g09d2