ManaPlus
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

#include <statuswindow.h>

Inheritance diagram for StatusWindow:
Window ActionListener AttributeListener BasicContainer2 MouseListener WidgetListener BasicContainer Widget WidgetDeathListener Widget2

Public Member Functions

 StatusWindow ()
 
 ~StatusWindow ()
 
void setPointsNeeded (const AttributesT id, const int needed)
 
void updateMPBar (ProgressBar *bar, const bool showMax) const
 
void updateStatusBar (ProgressBar *const bar, const bool percent) const
 
void action (const ActionEvent &event)
 
void attributeChanged (const AttributesT id, const int64_t oldVal, const int64_t newVal)
 
void updateLevelLabel ()
 
- Public Member Functions inherited from Window
 Window (const std::string &caption, const Modal modal, Window *const parent, std::string skin)
 
 ~Window ()
 
void draw (Graphics *const graphics)
 
void safeDraw (Graphics *const graphics)
 
void setContentSize (int width, int height)
 
void setLocationRelativeTo (const Widget *const widget)
 
void setLocationHorisontallyRelativeTo (const Widget *const widget)
 
void setLocationRelativeTo (const ImagePosition::Type &position, int offsetX, int offsetY)
 
void setResizable (const bool resize)
 
void redraw ()
 
void widgetResized (const Event &event)
 
void widgetMoved (const Event &event)
 
void widgetHidden (const Event &event)
 
void setCloseButton (const bool flag)
 
bool getCloseButton () const
 
void setAllowClose (const bool b)
 
bool getAlowClose () const
 
bool isResizable () const
 
void setMinWidth (const int width)
 
int getMinWidth () const
 
void setMinHeight (const int height)
 
int getMinHeight () const
 
void setMaxWidth (const int width)
 
int getMaxWidth () const
 
void setMaxHeight (const int height)
 
int getMaxHeight () const
 
void setShowTitle (bool flag)
 
void setStickyButton (const bool flag)
 
void setSticky (const bool sticky)
 
bool isSticky () const
 
void setStickyButtonLock (const bool sticky)
 
bool isStickyButtonLock () const
 
virtual void setVisible (Visible visible)
 
void setVisible (const Visible visible, const bool forceSticky)
 
bool isDefaultVisible () const
 
void setDefaultVisible (const bool save)
 
bool willSaveVisible () const
 
void setSaveVisible (const bool save)
 
void postInit ()
 
WindowgetParentWindow () const
 
virtual void scheduleDelete ()
 
void mousePressed (MouseEvent &event)
 
void mouseDragged (MouseEvent &event)
 
void mouseMoved (MouseEvent &event)
 
void mouseReleased (MouseEvent &event)
 
void mouseExited (MouseEvent &event)
 
void mouseEntered (MouseEvent &event)
 
void updateResizeHandler (MouseEvent &event)
 
void setWindowName (const std::string &name)
 
const std::string & getWindowName () const
 
void loadWindowState ()
 
void saveWindowState ()
 
void setDefaultSize (const int defaultX, const int defaultY, int defaultWidth, int defaultHeight)
 
void setDefaultSize ()
 
void setDefaultSize (const int defaultWidth, const int defaultHeight, const ImagePosition::Type &position, const int offsetx, const int offsetY)
 
virtual void resetToDefaultSize ()
 
void adjustPositionAfterResize (const int oldScreenWidth, const int oldScreenHeight)
 
LayoutgetLayout ()
 
void clearLayout ()
 
void reflowLayout (int w, int h)
 
LayoutCellplace (const int x, const int y, Widget *const wg, const int w, const int h)
 
ContainerPlacer getPlacer (const int x, const int y)
 
void center ()
 
void centerHorisontally ()
 
virtual void close ()
 
void setModal (const Modal modal)
 
Rect getWindowArea () const
 
bool isResizeAllowed (const MouseEvent &event) const
 
void setCaptionFont (Font *font)
 
void enableVisibleSound (bool b)
 
bool isWindowVisible () const
 
void setPadding (int padding)
 
int getPadding () const
 
void setTitleBarHeight (unsigned int height)
 
unsigned int getTitleBarHeight () const
 
void setCaption (const std::string &caption)
 
const std::string & getCaption () const
 
void setAlignment (Graphics::Alignment alignment)
 
Graphics::Alignment getAlignment () const
 
void setMovable (Move movable)
 
bool isMovable () const
 
Rect getChildrenArea ()
 
virtual void resizeToContent ()
 
- Public Member Functions inherited from BasicContainer2
 BasicContainer2 (const Widget2 *const widget)
 
 ~BasicContainer2 ()
 
void setOpaque (Opaque opaque)
 
bool isOpaque () const
 
virtual void add (Widget *const widget)
 
void addXY (Widget *const widget, const int x, const int y)
 
- Public Member Functions inherited from BasicContainer
 BasicContainer (const Widget2 *const widget)
 
 ~BasicContainer ()
 
void showWidgetPart (Widget *const widget, const Rect &area)
 
void moveToTop (Widget *const widget)
 
void moveToBottom (Widget *const widget)
 
void focusNext ()
 
void focusPrevious ()
 
void logic ()
 
void setFocusHandler (FocusHandler *const focusHandler)
 
void setInternalFocusHandler (FocusHandler *const focusHandler)
 
WidgetgetWidgetAt (int x, int y)
 
void death (const Event &event)
 
WidgetfindFirstWidget (const std::set< Widget * > &list)
 
void add (Widget *const widget)
 
virtual void remove (Widget *const widget)
 
virtual void clear ()
 
- Public Member Functions inherited from Widget
 Widget (const Widget2 *const widget)
 
 ~Widget ()
 
virtual void drawFrame (Graphics *graphics)
 
virtual void safeDrawFrame (Graphics *graphics)
 
void setFrameSize (const unsigned int frameSize)
 
unsigned int getFrameSize () const
 
WidgetgetParent () const
 
void setWidth (const int width)
 
int getWidth () const
 
void setHeight (const int height)
 
int getHeight () const
 
void setSize (const int width, const int height)
 
void setX (const int x)
 
int getX () const
 
void setY (const int y)
 
int getY () const
 
void setPosition (const int x, const int y)
 
void setDimension (const Rect &dimension)
 
const RectgetDimension () const
 
void setFocusable (const bool focusable)
 
bool isFocusable () const
 
virtual bool isFocused () const
 
void setEnabled (const bool enabled)
 
bool isEnabled () const
 
void setVisible (Visible visible)
 
bool isVisible () const
 
void setBaseColor (const Color &color)
 
const ColorgetBaseColor () const
 
void setForegroundColor (const Color &color)
 
const ColorgetForegroundColor () const
 
void setBackgroundColor (const Color &color)
 
const ColorgetBackgroundColor () const
 
virtual void requestFocus ()
 
virtual void requestMoveToTop ()
 
virtual void requestMoveToBottom ()
 
FocusHandlergetFocusHandler ()
 
void addActionListener (ActionListener *const actionListener)
 
void removeActionListener (ActionListener *const actionListener)
 
void addDeathListener (WidgetDeathListener *const deathListener)
 
void removeDeathListener (WidgetDeathListener *const deathListener)
 
void addMouseListener (MouseListener *const mouseListener)
 
void removeMouseListener (MouseListener *const mouseListener)
 
void addKeyListener (KeyListener *const keyListener)
 
void removeKeyListener (KeyListener *const keyListener)
 
void addFocusListener (FocusListener *const focusListener)
 
void removeFocusListener (FocusListener *const focusListener)
 
void addWidgetListener (WidgetListener *const widgetListener)
 
void removeWidgetListener (WidgetListener *const widgetListener)
 
void setActionEventId (const std::string &actionEventId)
 
const std::string & getActionEventId () const
 
virtual void getAbsolutePosition (int &x, int &y) const
 
virtual void setParent (Widget *parent)
 
FontgetFont () const
 
void setFont (Font *const font)
 
virtual void fontChanged ()
 
bool isTabInEnabled () const
 
void setTabInEnabled (const bool enabled)
 
bool isTabOutEnabled () const
 
void setTabOutEnabled (const bool enabled)
 
void requestModalFocus ()
 
virtual void requestModalMouseInputFocus ()
 
virtual void releaseModalFocus ()
 
virtual void releaseModalMouseInputFocus ()
 
virtual bool isModalFocused () const
 
virtual bool isModalMouseInputFocused () const
 
const std::list< MouseListener * > & getMouseListeners () const A_CONST
 
const std::list< KeyListener * > & getKeyListeners () const A_CONST
 
const std::list< FocusListener * > & getFocusListeners () const A_CONST
 
virtual FocusHandlergetInternalFocusHandler ()
 
void setInternalFocusHandler (FocusHandler *const internalFocusHandler)
 
void setId (const std::string &id)
 
const std::string & getId () const
 
virtual void showPart (const Rect &rectangle)
 
bool isAllowLogic () const
 
void setMouseConsume (const bool b)
 
bool isMouseConsume () const
 
void setRedraw (const bool b)
 
virtual bool isSelectable () const
 
void setSelectable (const bool selectable)
 
void windowResized ()
 
- Public Member Functions inherited from Widget2
virtual ~Widget2 ()
 
const ColorgetThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE
 
const ColorgetThemeCharColor (const signed char c, bool &valid) const A_INLINE
 
virtual void setWidget2 (const Widget2 *const widget)
 
void setPalette (int palette)
 
void checkPalette ()
 
void setForegroundColor2 (const Color &color)
 
WidgetgetWindow () const
 
virtual void setWindow (Widget *const window)
 
- Public Member Functions inherited from WidgetDeathListener
virtual ~WidgetDeathListener ()
 
- Public Member Functions inherited from MouseListener
virtual ~MouseListener ()
 
virtual void mouseClicked (MouseEvent &event)
 
virtual void mouseWheelMovedUp (MouseEvent &event)
 
virtual void mouseWheelMovedDown (MouseEvent &event)
 
- Public Member Functions inherited from WidgetListener
virtual ~WidgetListener ()
 
virtual void widgetShown (const Event &event)
 
- Public Member Functions inherited from ActionListener
virtual ~ActionListener ()
 
- Public Member Functions inherited from AttributeListener
 AttributeListener ()
 
virtual ~ AttributeListener ()
 

Static Public Member Functions

static void updateHPBar (ProgressBar *const bar, const bool showMax)
 
static void updateJobBar (ProgressBar *const bar, const bool percent)
 
static void updateXPBar (ProgressBar *const bar, const bool percent)
 
static void updateWeightBar (ProgressBar *const bar)
 
static void updateInvSlotsBar (ProgressBar *const bar)
 
static void updateMoneyBar (ProgressBar *const bar)
 
static void updateArrowsBar (ProgressBar *const bar)
 
static void updateProgressBar (ProgressBar *const bar, const int64_t value, const int64_t max, const bool percent)
 
static void updateProgressBar (ProgressBar *const bar, const AttributesT id, const bool percent)
 
- Static Public Member Functions inherited from Window
static void setWindowContainer (WindowContainer *const windowContainer)
 
- Static Public Member Functions inherited from Widget
static void setGlobalFont (Font *const font)
 
static FontgetGloablFont ()
 
static void cleanGlobalFont ()
 
static bool widgetExists (const Widget *const widget)
 
static void distributeWindowResizeEvent ()
 
static WidgetcallPostInit (Widget *const widget)
 
- Static Public Member Functions inherited from AttributeListener
static void distributeEvent (const AttributesT id, const int64_t oldVal, const int64_t newVal)
 
static void addListener (AttributeListener *const listener)
 
static void removeListener (const AttributeListener *const listener)
 

Private Member Functions

void addTabs ()
 
void addTab (const std::string &name)
 
void addTabBasic (const std::string &name)
 

Static Private Member Functions

static std::string translateLetter (const char *const letters)
 
static std::string translateLetter2 (const std::string &letters)
 

Private Attributes

std::vector< StatsPage * > mPages
 
TabbedAreamTabs
 
LabelmLvlLabel
 
LabelmMoneyLabel
 
LabelmHpLabel
 
LabelmMpLabel
 
LabelmXpLabel
 
ProgressBarmHpBar
 
ProgressBarmMpBar
 
ProgressBarmXpBar
 
LabelmJobLvlLabel
 
LabelmJobLabel
 
ProgressBarmJobBar
 
StatsPageBasicmBasicStatsPage
 
ButtonmCopyButton
 

Additional Inherited Members

- Data Fields inherited from Widget
Visible mVisible
 
- Protected Types inherited from BasicContainer
typedef std::vector< Widget * > WidgetList
 
typedef WidgetList::iterator WidgetListIterator
 
typedef WidgetList::const_iterator WidgetListConstIterator
 
typedef WidgetList::reverse_iterator WidgetListReverseIterator
 
typedef WidgetList::const_reverse_iterator WidgetListCReverseIterator
 
- Protected Types inherited from Widget
typedef std::list< MouseListener * > MouseListenerList
 
typedef MouseListenerList::iterator MouseListenerIterator
 
typedef std::list< KeyListener * > KeyListenerList
 
typedef KeyListenerList::iterator KeyListenerIterator
 
typedef std::list< ActionListener * > ActionListenerList
 
typedef ActionListenerList::iterator ActionListenerIterator
 
typedef std::list< WidgetDeathListener * > WidgetDeathListenerList
 
typedef WidgetDeathListenerList::iterator WidgetDeathListenerIterator
 
typedef std::list< FocusListener * > FocusListenerList
 
typedef FocusListenerList::iterator FocusListenerIterator
 
typedef std::list< WidgetListener * > WidgetListenerList
 
typedef WidgetListenerList::iterator WidgetListenerIterator
 
- Protected Member Functions inherited from Window
bool canMove () const
 
int getOption (const std::string &name, const int def) const
 
bool getOptionBool (const std::string &name, const bool def) const
 
void setTitlePadding (const int p)
 
int getTitlePadding () const
 
- Protected Member Functions inherited from BasicContainer
virtual void drawChildren (Graphics *const graphics)
 
virtual void safeDrawChildren (Graphics *const graphics)
 
virtual void logicChildren ()
 
- Protected Member Functions inherited from Widget
void distributeActionEvent ()
 
void distributeResizedEvent ()
 
void distributeMovedEvent ()
 
void distributeHiddenEvent ()
 
void distributeShownEvent ()
 
- Protected Member Functions inherited from Widget2
 Widget2 (const Widget2 *const widget)
 
- Protected Member Functions inherited from WidgetDeathListener
 WidgetDeathListener ()
 
- Protected Member Functions inherited from MouseListener
 MouseListener ()
 
- Protected Member Functions inherited from WidgetListener
 WidgetListener ()
 
- Protected Member Functions inherited from ActionListener
 ActionListener ()
 
- Protected Attributes inherited from Window
std::string mCaption
 
Graphics::Alignment mAlignment
 
int mPadding
 
unsigned int mTitleBarHeight
 
Move mMovable
 
int mDragOffsetX
 
int mDragOffsetY
 
bool mMoved
 
SkinmSkin
 
int mDefaultX
 
int mDefaultY
 
int mDefaultWidth
 
int mDefaultHeight
 
int mCaptionOffsetX
 
int mCaptionOffsetY
 
bool mShowTitle
 
bool mLastRedraw
 
- Protected Attributes inherited from BasicContainer2
Opaque mOpaque
 
- Protected Attributes inherited from BasicContainer
WidgetList mWidgets
 
WidgetList mLogicWidgets
 
- Protected Attributes inherited from Widget
MouseListenerList mMouseListeners
 
KeyListenerList mKeyListeners
 
ActionListenerList mActionListeners
 
WidgetDeathListenerList mDeathListeners
 
FocusListenerList mFocusListeners
 
WidgetListenerList mWidgetListeners
 
Color mForegroundColor
 
Color mBackgroundColor
 
Color mBaseColor
 
Rect mDimension
 
std::string mActionEventId
 
std::string mId
 
FocusHandlermFocusHandler
 
FocusHandlermInternalFocusHandler
 
WidgetmParent
 
FontmCurrentFont
 
unsigned int mFrameSize
 
bool mFocusable
 
bool mTabIn
 
bool mTabOut
 
bool mEnabled
 
bool mAllowLogic
 
bool mMouseConsume
 
bool mRedraw
 
bool mSelectable
 
- Protected Attributes inherited from Widget2
int mPaletteOffset
 
WidgetmWindow
 
Color mForegroundColor2
 
- Static Protected Attributes inherited from Widget
static FontmGlobalFont = 0
 

Detailed Description

The player status dialog.

Definition at line 44 of file statuswindow.h.

Constructor & Destructor Documentation

◆ StatusWindow()

StatusWindow::StatusWindow ( )

Constructor.

Definition at line 67 of file statuswindow.cpp.

67  :
68  Window(localPlayer != nullptr ? localPlayer->getName() :
69  "?", Modal_false, nullptr, "status.xml"),
72  mPages(),
74  // TRANSLATORS: status window label
75  mLvlLabel(new Label(this, strprintf(_("Level: %d"), 0))),
76  // TRANSLATORS: status window label
77  mMoneyLabel(new Label(this, strprintf(_("Money: %s"), ""))),
78  // TRANSLATORS: status window label
79  mHpLabel(new Label(this, _("HP:"))),
80  mMpLabel(nullptr),
81  // TRANSLATORS: status window label
82  mXpLabel(new Label(this, _("Exp:"))),
83  mHpBar(nullptr),
84  mMpBar(nullptr),
85  mXpBar(nullptr),
86  mJobLvlLabel(nullptr),
87  mJobLabel(nullptr),
88  mJobBar(nullptr),
90  // TRANSLATORS: status window button
91  mCopyButton(new Button(this, _("Copy to chat"), "copy", BUTTON_SKIN, this))
92 {
93  setWindowName("Status");
94  if (setupWindow != nullptr)
96  setResizable(true);
97  setCloseButton(true);
98  setSaveVisible(true);
99  setStickyButtonLock(true);
100  setDefaultSize((windowContainer->getWidth() - 480) / 2,
101  (windowContainer->getHeight() - 500) / 2,
102  480,
103  500);
104 
105  mTabs->setSelectable(false);
108 
109  if ((localPlayer != nullptr) && !localPlayer->getRaceName().empty())
110  {
111  setCaption(strprintf("%s (%s)", localPlayer->getName().c_str(),
112  localPlayer->getRaceName().c_str()));
113  }
114 
116  if (max == 0)
117  max = 1;
118 
119  mHpBar = new ProgressBar(this,
121  / static_cast<float>(max),
122  80,
123  0,
125  "hpprogressbar.xml", "hpprogressbar_fill.xml");
126  mHpBar->setColor(getThemeColor(ThemeColorId::HP_BAR, 255U),
127  getThemeColor(ThemeColorId::HP_BAR_OUTLINE, 255U));
128  mHpBar->setSelectable(false);
129 
130  const int64_t maxExp = PlayerInfo::getAttribute64(
132  mXpBar = new ProgressBar(this,
133  maxExp != 0 ?
134  static_cast<float>(PlayerInfo::getAttribute64(
136  static_cast<float>(maxExp) : static_cast<float>(0),
137  80,
138  0,
140  "xpprogressbar.xml", "xpprogressbar_fill.xml");
141  mXpBar->setColor(getThemeColor(ThemeColorId::XP_BAR, 255U),
142  getThemeColor(ThemeColorId::XP_BAR_OUTLINE, 255U));
143  mXpBar->setSelectable(false);
144 
145  const bool job = serverConfig.getValueBool("showJob", true);
146 
148  // TRANSLATORS: status window label
149  mMpLabel = new Label(this, _("MP:"));
150  const bool useMagic = playerHandler->canUseMagic();
151  mMpBar = new ProgressBar(this,
152  max != 0 ? static_cast<float>(PlayerInfo::getAttribute(
153  Attributes::PLAYER_MAX_MP)) / static_cast<float>(max)
154  : static_cast<float>(0),
155  80,
156  0,
158  useMagic ? "mpprogressbar.xml" : "nompprogressbar.xml",
159  useMagic ? "mpprogressbar_fill.xml" : "nompprogressbar_fill.xml");
160  mMpBar->setSelectable(false);
161  if (useMagic)
162  {
163  mMpBar->setColor(getThemeColor(ThemeColorId::MP_BAR, 255U),
164  getThemeColor(ThemeColorId::MP_BAR_OUTLINE, 255U));
165  }
166  else
167  {
168  mMpBar->setColor(getThemeColor(ThemeColorId::NO_MP_BAR, 255U),
169  getThemeColor(ThemeColorId::NO_MP_BAR_OUTLINE, 255U));
170  }
171 
172  place(0, 0, mLvlLabel, 3, 1);
173  place(0, 1, mHpLabel, 1, 1).setPadding(3);
174  place(1, 1, mHpBar, 4, 1);
175  place(5, 1, mXpLabel, 1, 1).setPadding(3);
176  place(6, 1, mXpBar, 5, 1);
177  place(0, 2, mMpLabel, 1, 1).setPadding(3);
178  // 5, 2 and 6, 2 Job Progress Bar
179  if (job)
180  place(1, 2, mMpBar, 4, 1);
181  else
182  place(1, 2, mMpBar, 10, 1);
183 
184  if (job)
185  {
186  // TRANSLATORS: status window label
187  mJobLvlLabel = new Label(this, strprintf(_("Job: %d"), 0));
188  // TRANSLATORS: status window label
189  mJobLabel = new Label(this, _("Job:"));
190  mJobBar = new ProgressBar(this, 0.0F, 80, 0, ProgressColorId::PROG_JOB,
191  "jobprogressbar.xml", "jobprogressbar_fill.xml");
192  mJobBar->setColor(getThemeColor(ThemeColorId::JOB_BAR, 255U),
193  getThemeColor(ThemeColorId::JOB_BAR_OUTLINE, 255U));
194  mJobBar->setSelectable(false);
195 
196  place(3, 0, mJobLvlLabel, 3, 1);
197  place(5, 2, mJobLabel, 1, 1).setPadding(3);
198  place(6, 2, mJobBar, 5, 1);
199  place(6, 0, mMoneyLabel, 3, 1);
200  }
201  else
202  {
203  mJobLvlLabel = nullptr;
204  mJobLabel = nullptr;
205  mJobBar = nullptr;
206  place(3, 0, mMoneyLabel, 3, 1);
207  }
208 
209  place(0, 3, mTabs, 11, 3);
210 
212 
213  place(0, 5, mCopyButton, 1, 1);
214 
215  loadWindowState();
216  enableVisibleSound(true);
217 
218  // Update bars
219  updateHPBar(mHpBar, true);
220  updateMPBar(mMpBar, true);
221  updateXPBar(mXpBar, false);
222 
223  // TRANSLATORS: status window label
224  mMoneyLabel->setCaption(strprintf(_("Money: %s"),
226  Attributes::MONEY)).c_str()));
228 
230  addTabs();
231 }
const std::string BUTTON_SKIN
Definition: button.h:89
std::string getRaceName() const
Definition: being.h:861
const std::string & getName() const
Definition: being.h:232
Definition: button.h:102
bool getValueBool(const std::string &key, const bool deflt) const
Definition: label.h:91
void adjustSize()
Definition: label.cpp:200
void setCaption(const std::string &caption)
Definition: label.cpp:264
LayoutCell & setPadding(int p)
Definition: layoutcell.h:60
void setRowHeight(const int n, const int h)
Definition: layoutcell.cpp:128
virtual bool canUseMagic() const =0
void setColor(const Color &color1, const Color &color2)
void registerWindowForReset(Window *const window)
static void updateXPBar(ProgressBar *const bar, const bool percent)
Label * mMpLabel
Definition: statuswindow.h:105
Label * mMoneyLabel
Definition: statuswindow.h:103
void updateMPBar(ProgressBar *bar, const bool showMax) const
StatsPageBasic * mBasicStatsPage
Definition: statuswindow.h:115
Button * mCopyButton
Definition: statuswindow.h:116
ProgressBar * mXpBar
Definition: statuswindow.h:109
Label * mJobLvlLabel
Definition: statuswindow.h:111
static void updateHPBar(ProgressBar *const bar, const bool showMax)
Label * mJobLabel
Definition: statuswindow.h:112
Label * mHpLabel
Definition: statuswindow.h:104
Label * mLvlLabel
Definition: statuswindow.h:102
ProgressBar * mJobBar
Definition: statuswindow.h:113
TabbedArea * mTabs
Definition: statuswindow.h:101
Label * mXpLabel
Definition: statuswindow.h:106
void updateLevelLabel()
std::vector< StatsPage * > mPages
Definition: statuswindow.h:99
ProgressBar * mHpBar
Definition: statuswindow.h:107
ProgressBar * mMpBar
Definition: statuswindow.h:108
Widget * getTabContainer() const
Definition: tabbedarea.h:241
Widget * getWidgetContainer() const
Definition: tabbedarea.h:244
const Color & getThemeColor(const ThemeColorIdT type, const unsigned int alpha) const A_INLINE
Definition: widget2.h:45
void setSelectable(const bool selectable)
Definition: widget.h:948
int getHeight() const
Definition: widget.h:240
int getWidth() const
Definition: widget.h:221
void setSaveVisible(const bool save)
Definition: window.h:300
void setResizable(const bool resize)
Definition: window.cpp:627
Layout & getLayout()
Definition: window.cpp:1365
void setWindowName(const std::string &name)
Definition: window.h:355
Window(const std::string &caption, const Modal modal, Window *const parent, std::string skin)
Definition: window.cpp:109
void setCaption(const std::string &caption)
Definition: window.h:531
void enableVisibleSound(bool b)
Definition: window.h:481
void setCloseButton(const bool flag)
Definition: window.cpp:749
void setStickyButtonLock(const bool sticky)
Definition: window.cpp:772
LayoutCell & place(const int x, const int y, Widget *const wg, const int w, const int h)
Definition: window.cpp:1384
void setDefaultSize()
Definition: window.cpp:1198
void loadWindowState()
Definition: window.cpp:1087
Configuration serverConfig
#define CREATEWIDGETR(type,...)
Definition: createwidget.h:36
#define _(s)
Definition: gettext.h:35
LocalPlayer * localPlayer
const bool Modal_false
Definition: modal.h:30
@ PLAYER_EXP_NEEDED
Definition: attributes.h:37
@ PLAYER_MAX_MP
Definition: attributes.h:35
@ PLAYER_MAX_HP
Definition: attributes.h:33
int64_t getAttribute64(const AttributesT id)
Definition: playerinfo.cpp:94
int32_t getAttribute(const AttributesT id)
Definition: playerinfo.cpp:102
std::string formatCurrency(const int value)
Definition: unitsdb.cpp:324
Net::PlayerHandler * playerHandler
Definition: net.cpp:96
SetupWindow * setupWindow
Definition: setupwindow.cpp:64
std::string strprintf(const char *const format,...)
WindowContainer * windowContainer

References _, addTabs(), Label::adjustSize(), Net::PlayerHandler::canUseMagic(), Window::enableVisibleSound(), UnitsDb::formatCurrency(), PlayerInfo::getAttribute(), PlayerInfo::getAttribute64(), Widget::getHeight(), Window::getLayout(), Being::getName(), Being::getRaceName(), TabbedArea::getTabContainer(), Widget2::getThemeColor(), ConfigurationObject::getValueBool(), TabbedArea::getWidgetContainer(), Widget::getWidth(), Window::loadWindowState(), localPlayer, mCopyButton, mHpBar, mHpLabel, mJobBar, mJobLabel, mJobLvlLabel, mLvlLabel, mMoneyLabel, mMpBar, mMpLabel, Attributes::MONEY, mTabs, mXpBar, mXpLabel, Window::place(), Attributes::PLAYER_EXP, Attributes::PLAYER_EXP_NEEDED, Attributes::PLAYER_HP, Attributes::PLAYER_MAX_HP, Attributes::PLAYER_MAX_MP, playerHandler, ProgressColorId::PROG_EXP, ProgressColorId::PROG_HP, ProgressColorId::PROG_JOB, ProgressColorId::PROG_MP, ProgressColorId::PROG_NO_MP, SetupWindow::registerWindowForReset(), serverConfig, LayoutType::SET, Label::setCaption(), Window::setCaption(), Window::setCloseButton(), ProgressBar::setColor(), Window::setDefaultSize(), LayoutCell::setPadding(), Window::setResizable(), LayoutCell::setRowHeight(), Window::setSaveVisible(), Widget::setSelectable(), Window::setStickyButtonLock(), setupWindow, Window::setWindowName(), strprintf(), updateHPBar(), updateLevelLabel(), updateMPBar(), updateXPBar(), and windowContainer.

◆ ~StatusWindow()

StatusWindow::~StatusWindow ( )

Definition at line 233 of file statuswindow.cpp.

234 {
237 }
#define delete2(var)
Definition: delete2.h:25
void delete_all(Container &c)
Definition: dtor.h:56

References delete2, delete_all(), mBasicStatsPage, and mPages.

Member Function Documentation

◆ action()

void StatusWindow::action ( const ActionEvent actionEvent)
virtual

Called when an action is recieved from a widget. It is used to be able to recieve a notification that an action has occured.

Parameters
actionEventThe event of the action.

Implements ActionListener.

Definition at line 656 of file statuswindow.cpp.

657 {
658  if (chatWindow == nullptr)
659  return;
660 
661  if (event.getId() == "copy")
662  {
664  true);
665  }
666 }
ChatWindow * chatWindow
Definition: chatwindow.cpp:94
void addInputText(const std::string &text, const bool space)
std::string getStatsStr() const

References ChatWindow::addInputText(), chatWindow, ActionEvent::getId(), StatsPageBasic::getStatsStr(), and mBasicStatsPage.

◆ addTab()

void StatusWindow::addTab ( const std::string &  name)
private

Definition at line 251 of file statuswindow.cpp.

252 {
253  StatsPage *const page = new StatsPage(this, name);
254  mTabs->addTab(name,
255  page);
256  mPages.push_back(page);
257 }
void addTab(Tab *const tab, Widget *const widget)
Definition: tabbedarea.cpp:238

References TabbedArea::addTab(), mPages, and mTabs.

Referenced by addTabs().

◆ addTabBasic()

void StatusWindow::addTabBasic ( const std::string &  name)
private

Definition at line 259 of file statuswindow.cpp.

260 {
261  mTabs->addTab(name,
263 }

References TabbedArea::addTab(), mBasicStatsPage, and mTabs.

Referenced by addTabs().

◆ addTabs()

void StatusWindow::addTabs ( )
private

Definition at line 239 of file statuswindow.cpp.

240 {
241  // TRANSLATORS: status window tab name
242  addTabBasic(_("Basic"));
243  const STD_VECTOR<std::string> &pages = StatDb::getPages();
244  FOR_EACH(STD_VECTOR<std::string>::const_iterator, it, pages)
245  {
246  addTab(*it);
247  }
248  mTabs->adjustSize();
249 }
void addTab(const std::string &name)
void addTabBasic(const std::string &name)
void adjustSize()
Definition: tabbedarea.cpp:569
#define FOR_EACH(type, iter, array)
Definition: foreach.h:25
const std::vector< std::string > & getPages()
Definition: statdb.cpp:82
const char *const pages[SETUP_PAGES+1]

References _, addTab(), addTabBasic(), TabbedArea::adjustSize(), FOR_EACH, StatDb::getPages(), mTabs, and pages.

Referenced by StatusWindow().

◆ attributeChanged()

void StatusWindow::attributeChanged ( const AttributesT  id,
const int64_t  oldVal,
const int64_t  newVal 
)
virtual

Implements AttributeListener.

Definition at line 289 of file statuswindow.cpp.

292 {
293  static bool blocked = false;
294 
295  PRAGMA45(GCC diagnostic push)
296  PRAGMA45(GCC diagnostic ignored "-Wswitch-enum")
297  switch (id)
298  {
301  updateHPBar(mHpBar, true);
302  break;
303 
306  updateMPBar(mMpBar, true);
307  break;
308 
311  updateXPBar(mXpBar, false);
312  break;
313 
314  case Attributes::MONEY:
315  // TRANSLATORS: status window label
316  mMoneyLabel->setCaption(strprintf(_("Money: %s"),
317  UnitsDb::formatCurrency64(newVal).c_str()));
319  break;
320 
322  // TRANSLATORS: status window label
323  mLvlLabel->setCaption(strprintf(_("Level: %d"),
324  CAST_S32(newVal)));
326  break;
327 
328  // +++ probable need use only some attributes here
332  if (blocked)
333  return;
334  if (mJobLvlLabel != nullptr)
335  {
336  int lvl = PlayerInfo::getAttribute(
338  const int64_t exp = PlayerInfo::getAttribute(
340  const int64_t expNeed = PlayerInfo::getAttribute(
342 
343  if (lvl == 0)
344  {
345  // possible server broken and don't send job level,
346  // then we fixing it.
347  if (expNeed < 20000)
348  {
349  lvl = 0;
350  }
351  else
352  {
353  lvl = CAST_S32((expNeed - 20000) / 150);
354  blocked = true;
356  lvl,
357  Notify_true);
358  blocked = false;
359  }
360  }
361 
362  if (id == Attributes::PLAYER_JOB_EXP &&
363  exp < oldVal &&
364  expNeed >= 20000)
365  { // possible job level up. but server broken and don't send
366  // new job exp limit, we fixing it
367  lvl ++;
368  blocked = true;
370  20000 + lvl * 150,
371  Notify_true);
373  lvl,
374  Notify_true);
375  blocked = false;
376  }
377 
378  // TRANSLATORS: status window label
379  mJobLvlLabel->setCaption(strprintf(_("Job: %d"), lvl));
381 
382  updateJobBar(mJobBar, false);
383  }
384  break;
385 
386  default:
387  break;
388  }
389  PRAGMA45(GCC diagnostic pop)
390 }
#define CAST_S32
Definition: cast.h:30
static void updateJobBar(ProgressBar *const bar, const bool percent)
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class TestMain
@ PLAYER_BASE_LEVEL
Definition: attributes.h:31
@ PLAYER_JOB_EXP
Definition: attributes.h:66
@ PLAYER_JOB_LEVEL
Definition: attributes.h:41
@ PLAYER_JOB_EXP_NEEDED
Definition: attributes.h:67
void setAttribute(const AttributesT id, const int64_t value, const Notify notify)
Definition: playerinfo.cpp:110
std::string formatCurrency64(const int64_t value)
Definition: unitsdb.cpp:329
const bool Notify_true
Definition: notify.h:30

References _, Label::adjustSize(), CAST_S32, UnitsDb::formatCurrency64(), PlayerInfo::getAttribute(), mHpBar, mJobBar, mJobLvlLabel, mLvlLabel, mMoneyLabel, mMpBar, Attributes::MONEY, mXpBar, Notify_true, Attributes::PLAYER_BASE_LEVEL, Attributes::PLAYER_EXP, Attributes::PLAYER_EXP_NEEDED, Attributes::PLAYER_HP, Attributes::PLAYER_JOB_EXP, Attributes::PLAYER_JOB_EXP_NEEDED, Attributes::PLAYER_JOB_LEVEL, Attributes::PLAYER_MAX_HP, Attributes::PLAYER_MAX_MP, Attributes::PLAYER_MP, PRAGMA45(), PlayerInfo::setAttribute(), Label::setCaption(), strprintf(), updateHPBar(), updateJobBar(), updateMPBar(), and updateXPBar().

◆ setPointsNeeded()

void StatusWindow::setPointsNeeded ( const AttributesT  id,
const int  needed 
)

◆ translateLetter()

std::string StatusWindow::translateLetter ( const char *const  letters)
staticprivate

Definition at line 598 of file statuswindow.cpp.

599 {
600  char buf[2];
601  char *const str = gettext(letters);
602  if ((str == nullptr) || strlen(str) != 3)
603  return letters;
604 
605  buf[0] = str[1];
606  buf[1] = 0;
607  return std::string(buf);
608 }

◆ translateLetter2()

std::string StatusWindow::translateLetter2 ( const std::string &  letters)
staticprivate

Definition at line 610 of file statuswindow.cpp.

611 {
612  if (letters.size() < 5)
613  return "";
614 
615  return std::string(gettext(letters.substr(1, 1).c_str()));
616 }

Referenced by updateStatusBar().

◆ updateArrowsBar()

void StatusWindow::updateArrowsBar ( ProgressBar *const  bar)
static

Definition at line 563 of file statuswindow.cpp.

564 {
565  if ((bar == nullptr) || (equipmentWindow == nullptr))
566  return;
567 
568  const Item *const item = equipmentWindow->getEquipment(
570 
571  if ((item != nullptr) && item->getQuantity() > 0)
572  bar->setText(toString(item->getQuantity()));
573  else
574  bar->setText("0");
575 }
const Item * getEquipment(const int i) const
Definition: item.h:50
int getQuantity() const
Definition: item.h:105
virtual int getProjectileSlot() const =0
void setText(const std::string &str)
EquipmentWindow * equipmentWindow
Net::InventoryHandler * inventoryHandler
Definition: net.cpp:89
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:1774

References equipmentWindow, EquipmentWindow::getEquipment(), Net::InventoryHandler::getProjectileSlot(), Item::getQuantity(), inventoryHandler, ProgressBar::setText(), and Catch::toString().

Referenced by MiniStatusWindow::arrowsChanged(), and MiniStatusWindow::MiniStatusWindow().

◆ updateHPBar()

void StatusWindow::updateHPBar ( ProgressBar *const  bar,
const bool  showMax 
)
static

Definition at line 398 of file statuswindow.cpp.

399 {
400  if (bar == nullptr)
401  return;
402 
405  if (showMax)
406  bar->setText(toString(hp).append("/").append(toString(maxHp)));
407  else
408  bar->setText(toString(hp));
409 
410  float prog = 1.0;
411  if (maxHp > 0)
412  prog = static_cast<float>(hp) / static_cast<float>(maxHp);
413  bar->setProgress(prog);
414 }
void setProgress(const float progress)

References PlayerInfo::getAttribute(), Attributes::PLAYER_HP, Attributes::PLAYER_MAX_HP, ProgressBar::setProgress(), ProgressBar::setText(), and Catch::toString().

Referenced by MiniStatusWindow::attributeChanged(), attributeChanged(), MiniStatusWindow::MiniStatusWindow(), and StatusWindow().

◆ updateInvSlotsBar()

void StatusWindow::updateInvSlotsBar ( ProgressBar *const  bar)
static

Definition at line 577 of file statuswindow.cpp.

578 {
579  if (bar == nullptr)
580  return;
581 
582  const Inventory *const inv = PlayerInfo::getInventory();
583  if (inv == nullptr)
584  return;
585 
586  const int usedSlots = inv->getNumberOfSlotsUsed();
587  const int maxSlots = inv->getSize();
588 
589  if (maxSlots != 0)
590  {
591  bar->setProgress(static_cast<float>(usedSlots)
592  / static_cast<float>(maxSlots));
593  }
594 
595  bar->setText(strprintf("%d", usedSlots));
596 }
unsigned getSize() const
Definition: inventory.h:76
int getNumberOfSlotsUsed() const
Definition: inventory.h:164
Inventory * getInventory()
Definition: playerinfo.cpp:195

References PlayerInfo::getInventory(), Inventory::getNumberOfSlotsUsed(), Inventory::getSize(), ProgressBar::setProgress(), ProgressBar::setText(), and strprintf().

Referenced by MiniStatusWindow::slotsChanged().

◆ updateJobBar()

void StatusWindow::updateJobBar ( ProgressBar *const  bar,
const bool  percent 
)
static

Definition at line 495 of file statuswindow.cpp.

497 {
498  if (bar == nullptr)
499  return;
500 
501  updateProgressBar(bar,
504  percent);
505 }
static void updateProgressBar(ProgressBar *const bar, const int64_t value, const int64_t max, const bool percent)

References PlayerInfo::getAttribute(), Attributes::PLAYER_JOB_EXP, Attributes::PLAYER_JOB_EXP_NEEDED, and updateProgressBar().

Referenced by attributeChanged(), MiniStatusWindow::MiniStatusWindow(), and MiniStatusWindow::statChanged().

◆ updateLevelLabel()

void StatusWindow::updateLevelLabel ( )

Definition at line 265 of file statuswindow.cpp.

266 {
267  if (localPlayer == nullptr)
268  return;
269 
270  const int groupId = localPlayer->getGroupId();
271  const std::string &name = GroupDb::getName(groupId);
272  if (!name.empty())
273  {
274  // TRANSLATORS: status window label
275  mLvlLabel->setCaption(strprintf(_("Level: %d (%s %d)"),
277  name.c_str(),
278  groupId));
279  }
280  else
281  {
282  // TRANSLATORS: status window label
283  mLvlLabel->setCaption(strprintf(_("Level: %d"),
285  }
287 }
int getGroupId() const
Definition: being.h:1087
const std::string & getName(const int id)
Definition: groupdb.cpp:344

References _, Label::adjustSize(), PlayerInfo::getAttribute(), Being::getGroupId(), GroupDb::getName(), localPlayer, mLvlLabel, Attributes::PLAYER_BASE_LEVEL, Label::setCaption(), and strprintf().

Referenced by LocalPlayer::setGroupId(), and StatusWindow().

◆ updateMoneyBar()

void StatusWindow::updateMoneyBar ( ProgressBar *const  bar)
static

Definition at line 544 of file statuswindow.cpp.

545 {
546  if (bar == nullptr)
547  return;
548 
549  const int money = PlayerInfo::getAttribute(Attributes::MONEY);
550  bar->setText(UnitsDb::formatCurrency(money));
551  if (money > 0)
552  {
553  const float progress = static_cast<float>(money)
554  / static_cast<float>(1000000000);
555  bar->setProgress(progress);
556  }
557  else
558  {
559  bar->setProgress(1.0);
560  }
561 }

References UnitsDb::formatCurrency(), PlayerInfo::getAttribute(), Attributes::MONEY, ProgressBar::setProgress(), and ProgressBar::setText().

Referenced by MiniStatusWindow::attributeChanged(), and MiniStatusWindow::MiniStatusWindow().

◆ updateMPBar()

void StatusWindow::updateMPBar ( ProgressBar bar,
const bool  showMax 
) const

Definition at line 416 of file statuswindow.cpp.

418 {
419  if (bar == nullptr)
420  return;
421 
424  if (showMax)
425  bar->setText(toString(mp).append("/").append(toString(maxMp)));
426  else
427  bar->setText(toString(mp));
428 
429  float prog = 1.0F;
430  if (maxMp > 0)
431  prog = static_cast<float>(mp) / static_cast<float>(maxMp);
432 
433  if (playerHandler->canUseMagic())
434  {
435  bar->setColor(getThemeColor(ThemeColorId::MP_BAR, 255U),
436  getThemeColor(ThemeColorId::MP_BAR_OUTLINE, 255U));
438  }
439  else
440  {
441  bar->setColor(getThemeColor(ThemeColorId::NO_MP_BAR, 255U),
442  getThemeColor(ThemeColorId::NO_MP_BAR_OUTLINE, 255U));
444  }
445 
446  bar->setProgress(prog);
447 }
void setProgressPalette(const ProgressColorIdT progressPalette)

References Net::PlayerHandler::canUseMagic(), PlayerInfo::getAttribute(), Widget2::getThemeColor(), Attributes::PLAYER_MAX_MP, Attributes::PLAYER_MP, playerHandler, ProgressColorId::PROG_MP, ProgressColorId::PROG_NO_MP, ProgressBar::setColor(), ProgressBar::setProgress(), ProgressBar::setProgressPalette(), ProgressBar::setText(), and Catch::toString().

Referenced by MiniStatusWindow::attributeChanged(), attributeChanged(), MiniStatusWindow::MiniStatusWindow(), MiniStatusWindow::statChanged(), and StatusWindow().

◆ updateProgressBar() [1/2]

void StatusWindow::updateProgressBar ( ProgressBar *const  bar,
const AttributesT  id,
const bool  percent 
)
static

Definition at line 507 of file statuswindow.cpp.

510 {
511  const std::pair<int, int> exp = PlayerInfo::getStatExperience(id);
512  updateProgressBar(bar, exp.first, exp.second, percent);
513 }
const std::pair< int, int > getStatExperience(const AttributesT id)
Definition: playerinfo.cpp:175

References PlayerInfo::getStatExperience(), and updateProgressBar().

◆ updateProgressBar() [2/2]

void StatusWindow::updateProgressBar ( ProgressBar *const  bar,
const int64_t  value,
const int64_t  max,
const bool  percent 
)
static

Definition at line 449 of file statuswindow.cpp.

453 {
454  if (bar == nullptr)
455  return;
456 
457  if (max == 0)
458  {
459  // TRANSLATORS: status bar label
460  bar->setText(_("Max"));
461  bar->setProgress(1);
462  bar->setText(toString(CAST_U64(value)));
463  }
464  else
465  {
466  const float progress = static_cast<float>(value)
467  / static_cast<float>(max);
468  if (percent)
469  {
470  bar->setText(strprintf("%2.5f%%",
471  static_cast<double>(100 * progress)));
472  }
473  else
474  {
475  bar->setText(toString(
476  CAST_U64(value)).append(
477  "/").append(toString(
478  CAST_U64(max))));
479  }
480  bar->setProgress(progress);
481  }
482 }
#define CAST_U64
Definition: cast.h:33

References _, CAST_U64, ProgressBar::setProgress(), ProgressBar::setText(), strprintf(), and Catch::toString().

Referenced by updateJobBar(), updateProgressBar(), and updateXPBar().

◆ updateStatusBar()

void StatusWindow::updateStatusBar ( ProgressBar *const  bar,
const bool  percent 
) const

Definition at line 618 of file statuswindow.cpp.

620 {
621  if (bar == nullptr)
622  return;
627  .append(" ").append(translateLetter2(
632  .append(" ").append(translateLetter2(
635  .append(" ").append(translateLetter2(
637  .append(" ").append(translateLetter2(
642 
643  bar->setProgress(50);
645  {
646  bar->setBackgroundColor(getThemeColor(ThemeColorId::STATUSBAR_ON,
647  255U));
648  }
649  else
650  {
651  bar->setBackgroundColor(getThemeColor(ThemeColorId::STATUSBAR_OFF,
652  255U));
653  }
654 }
static std::string getPickUpTypeString()
static std::string getMoveToTargetTypeString()
static std::string getQuickDropCounterString()
static std::string getAttackTypeString()
static std::string getMagicAttackTypeString()
static std::string getMoveTypeString()
static std::string getCrazyMoveTypeString()
static std::string getTargetingTypeString()
static std::string getAwayModeString()
static std::string getCameraModeString()
static std::string getFollowModeString()
static std::string getAttackWeaponTypeString()
static std::string getPvpAttackTypeString()
static std::string getMapDrawTypeString()
static std::string getImitationModeString()
void setBackgroundColor(const Color &color)
bool disableGameModifiers
Definition: settings.h:157
static std::string translateLetter2(const std::string &letters)
Settings settings
Definition: settings.cpp:32

References Settings::disableGameModifiers, GameModifiers::getAttackTypeString(), GameModifiers::getAttackWeaponTypeString(), GameModifiers::getAwayModeString(), GameModifiers::getCameraModeString(), GameModifiers::getCrazyMoveTypeString(), GameModifiers::getFollowModeString(), GameModifiers::getImitationModeString(), GameModifiers::getMagicAttackTypeString(), GameModifiers::getMapDrawTypeString(), GameModifiers::getMoveToTargetTypeString(), GameModifiers::getMoveTypeString(), GameModifiers::getPickUpTypeString(), GameModifiers::getPvpAttackTypeString(), GameModifiers::getQuickDropCounterString(), GameModifiers::getTargetingTypeString(), Widget2::getThemeColor(), ProgressBar::setBackgroundColor(), ProgressBar::setProgress(), ProgressBar::setText(), settings, and translateLetter2().

Referenced by MiniStatusWindow::updateStatus().

◆ updateWeightBar()

void StatusWindow::updateWeightBar ( ProgressBar *const  bar)
static

Definition at line 515 of file statuswindow.cpp.

516 {
517  if (bar == nullptr)
518  return;
519 
521  {
522  // TRANSLATORS: status bar label
523  bar->setText(_("Max"));
524  bar->setProgress(1.0);
525  }
526  else
527  {
528  const int totalWeight = PlayerInfo::getAttribute(
530  const int maxWeight = PlayerInfo::getAttribute(Attributes::MAX_WEIGHT);
531  float progress = 1.0F;
532  if (maxWeight != 0)
533  {
534  progress = static_cast<float>(totalWeight)
535  / static_cast<float>(maxWeight);
536  }
537  bar->setText(strprintf("%s/%s",
538  UnitsDb::formatWeight(totalWeight).c_str(),
539  UnitsDb::formatWeight(maxWeight).c_str()));
540  bar->setProgress(progress);
541  }
542 }
@ TOTAL_WEIGHT
Definition: attributes.h:39
std::string formatWeight(const int value)
Definition: unitsdb.cpp:352

References _, UnitsDb::formatWeight(), PlayerInfo::getAttribute(), Attributes::MAX_WEIGHT, ProgressBar::setProgress(), ProgressBar::setText(), strprintf(), and Attributes::TOTAL_WEIGHT.

Referenced by MiniStatusWindow::attributeChanged().

◆ updateXPBar()

void StatusWindow::updateXPBar ( ProgressBar *const  bar,
const bool  percent 
)
static

Field Documentation

◆ mBasicStatsPage

StatsPageBasic* StatusWindow::mBasicStatsPage
private

Definition at line 115 of file statuswindow.h.

Referenced by action(), addTabBasic(), setPointsNeeded(), and ~StatusWindow().

◆ mCopyButton

Button* StatusWindow::mCopyButton
private

Definition at line 116 of file statuswindow.h.

Referenced by StatusWindow().

◆ mHpBar

ProgressBar* StatusWindow::mHpBar
private

Definition at line 107 of file statuswindow.h.

Referenced by attributeChanged(), and StatusWindow().

◆ mHpLabel

Label* StatusWindow::mHpLabel
private

Definition at line 104 of file statuswindow.h.

Referenced by StatusWindow().

◆ mJobBar

ProgressBar* StatusWindow::mJobBar
private

Definition at line 113 of file statuswindow.h.

Referenced by attributeChanged(), and StatusWindow().

◆ mJobLabel

Label* StatusWindow::mJobLabel
private

Definition at line 112 of file statuswindow.h.

Referenced by StatusWindow().

◆ mJobLvlLabel

Label* StatusWindow::mJobLvlLabel
private

Definition at line 111 of file statuswindow.h.

Referenced by attributeChanged(), and StatusWindow().

◆ mLvlLabel

Label* StatusWindow::mLvlLabel
private

Definition at line 102 of file statuswindow.h.

Referenced by attributeChanged(), StatusWindow(), and updateLevelLabel().

◆ mMoneyLabel

Label* StatusWindow::mMoneyLabel
private

Definition at line 103 of file statuswindow.h.

Referenced by attributeChanged(), and StatusWindow().

◆ mMpBar

ProgressBar* StatusWindow::mMpBar
private

Definition at line 108 of file statuswindow.h.

Referenced by attributeChanged(), and StatusWindow().

◆ mMpLabel

Label* StatusWindow::mMpLabel
private

Definition at line 105 of file statuswindow.h.

Referenced by StatusWindow().

◆ mPages

std::vector<StatsPage*> StatusWindow::mPages
private

Definition at line 99 of file statuswindow.h.

Referenced by addTab(), and ~StatusWindow().

◆ mTabs

TabbedArea* StatusWindow::mTabs
private

Definition at line 101 of file statuswindow.h.

Referenced by addTab(), addTabBasic(), addTabs(), and StatusWindow().

◆ mXpBar

ProgressBar* StatusWindow::mXpBar
private

Definition at line 109 of file statuswindow.h.

Referenced by attributeChanged(), and StatusWindow().

◆ mXpLabel

Label* StatusWindow::mXpLabel
private

Definition at line 106 of file statuswindow.h.

Referenced by StatusWindow().


The documentation for this class was generated from the following files: