ManaPlus
Public Member Functions | Private Member Functions | Private Attributes

#include <ministatuswindow.h>

Inheritance diagram for MiniStatusWindow:
Window InventoryListener AttributeListener StatListener ArrowsListener UpdateStatusListener BasicContainer2 MouseListener WidgetListener BasicContainer Widget WidgetDeathListener Widget2

Public Member Functions

 MiniStatusWindow ()
 
 ~MiniStatusWindow ()
 
void setIcon (const int index, AnimatedSprite *const sprite)
 
void eraseIcon (const int index)
 
void drawIcons (Graphics *const graphics)
 
void updateStatus ()
 
void logic ()
 
void draw (Graphics *const graphics)
 
void safeDraw (Graphics *const graphics)
 
void mouseMoved (MouseEvent &event)
 
void mousePressed (MouseEvent &event)
 
void mouseExited (MouseEvent &event)
 
void showBar (const std::string &name, const Visible visible)
 
void updateBars ()
 
void slotsChanged (const Inventory *const inventory)
 
std::vector< ProgressBar * > & getBars ()
 
Rect getChildrenArea ()
 
void attributeChanged (const AttributesT id, const int64_t oldVal, const int64_t newVal)
 
void statChanged (const AttributesT id, const int oldVal1, const int oldVal2)
 
void arrowsChanged ()
 
- Public Member Functions inherited from Window
 Window (const std::string &caption, const Modal modal, Window *const parent, std::string skin)
 
 ~Window ()
 
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 mouseDragged (MouseEvent &event)
 
void mouseReleased (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
 
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 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 InventoryListener
virtual ~InventoryListener ()
 
- Public Member Functions inherited from AttributeListener
 AttributeListener ()
 
virtual ~ AttributeListener ()
 
- Public Member Functions inherited from StatListener
 StatListener ()
 
virtual ~ StatListener ()
 
- Public Member Functions inherited from ArrowsListener
 ArrowsListener ()
 
virtual ~ ArrowsListener ()
 
- Public Member Functions inherited from UpdateStatusListener
 UpdateStatusListener ()
 
virtual ~ UpdateStatusListener ()
 

Private Member Functions

bool isInBar (ProgressBar *bar, int x, int y) const
 
ProgressBarcreateBar (const float progress, const int width, const int height, const ThemeColorIdT textColor, const ProgressColorIdT backColor, const std::string &skin, const std::string &skinFill, const std::string &name, const std::string &description)
 
void loadBars ()
 
void saveBars () const
 

Private Attributes

std::vector< ProgressBar * > mBars
 
std::map< std::string, ProgressBar * > mBarNames
 
std::vector< AnimatedSprite * > mIcons
 
ProgressBarmHpBar
 
ProgressBarmMpBar
 
ProgressBarmXpBar
 
ProgressBarmJobBar
 
ProgressBarmWeightBar
 
ProgressBarmInvSlotsBar
 
ProgressBarmMoneyBar
 
ProgressBarmArrowsBar
 
ProgressBarmStatusBar
 
StatusPopupmStatusPopup
 
int mSpacing
 
int mIconPadding
 
int mIconSpacing
 
int mMaxX
 

Additional Inherited Members

- 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)
 
- Static Public Member Functions inherited from StatListener
static void distributeEvent (const AttributesT id, const int oldVal1, const int oldVal2)
 
static void addListener (StatListener *const listener)
 
static void removeListener (const StatListener *const listener)
 
- Static Public Member Functions inherited from ArrowsListener
static void distributeEvent ()
 
static void addListener (ArrowsListener *const listener)
 
static void removeListener (const ArrowsListener *const listener)
 
- Static Public Member Functions inherited from UpdateStatusListener
static void distributeEvent ()
 
static void addListener (UpdateStatusListener *const listener)
 
static void removeListener (const UpdateStatusListener *const listener)
 
- 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 InventoryListener
 InventoryListener ()
 
- 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 mini-status dialog.

Definition at line 46 of file ministatuswindow.h.

Constructor & Destructor Documentation

◆ MiniStatusWindow()

MiniStatusWindow::MiniStatusWindow ( )

Definition at line 61 of file ministatuswindow.cpp.

61  :
62  Window("MiniStatus", Modal_false, nullptr, "ministatus.xml"),
65  StatListener(),
68  mBars(),
69  mBarNames(),
70  mIcons(),
71  mHpBar(createBar(0, 100, 0, ThemeColorId::HP_BAR, ProgressColorId::PROG_HP,
72  "hpprogressbar.xml", "hpprogressbar_fill.xml",
73  // TRANSLATORS: status bar name
74  "hp bar", _("health bar"))),
76  ? ThemeColorId::MP_BAR : ThemeColorId::NO_MP_BAR,
80  ? "mpprogressbar.xml" : "nompprogressbar.xml",
82  ? "mpprogressbar_fill.xml" : "nompprogressbar_fill.xml",
83  // TRANSLATORS: status bar name
84  "mp bar", _("mana bar"))),
85  mXpBar(createBar(0, 100, 0,
86  ThemeColorId::XP_BAR, ProgressColorId::PROG_EXP,
87  "xpprogressbar.xml", "xpprogressbar_fill.xml",
88  // TRANSLATORS: status bar name
89  "xp bar", _("experience bar"))),
90  mJobBar(nullptr),
91  mWeightBar(createBar(0, 140, 0, ThemeColorId::WEIGHT_BAR,
93  "weightprogressbar.xml", "weightprogressbar_fill.xml",
94  // TRANSLATORS: status bar name
95  "weight bar", _("weight bar"))),
96  mInvSlotsBar(createBar(0, 45, 0,
97  ThemeColorId::SLOTS_BAR, ProgressColorId::PROG_INVY_SLOTS,
98  "slotsprogressbar.xml", "slotsprogressbar_fill.xml",
99  "inventory slots bar",
100  // TRANSLATORS: status bar name
101  _("inventory slots bar"))),
102  mMoneyBar(createBar(0, 130, 0, ThemeColorId::MONEY_BAR,
104  "moneyprogressbar.xml", "moneyprogressbar_fill.xml",
105  // TRANSLATORS: status bar name
106  "money bar", _("money bar"))),
107  mArrowsBar(createBar(0, 50, 0, ThemeColorId::ARROWS_BAR,
109  "arrowsprogressbar.xml", "arrowsprogressbar_fill.xml",
110  // TRANSLATORS: status bar name
111  "arrows bar", _("arrows bar"))),
112  mStatusBar(createBar(100, (config.getIntValue("fontSize") > 16
113  ? 270 : 180), 0, ThemeColorId::STATUS_BAR,
115  "statusprogressbar.xml", "statusprogressbar_fill.xml",
116  // TRANSLATORS: status bar name
117  "status bar", _("status bar"))),
119  mSpacing(mSkin != nullptr ? mSkin->getOption("spacing", 3) : 3),
120  mIconPadding(mSkin != nullptr ? mSkin->getOption("iconPadding", 3) : 3),
121  mIconSpacing(mSkin != nullptr ? mSkin->getOption("iconSpacing", 2) : 2),
122  mMaxX(0)
123 {
125  false);
126 
127  if (statusWindow != nullptr)
128  {
130  false);
131  }
132 
133  const bool job = serverConfig.getValueBool("showJob", true);
134 
136  true);
137 
138  if (job)
139  {
140  mJobBar = createBar(0, 100, 0,
141  ThemeColorId::JOB_BAR,
143  "jobprogressbar.xml", "jobprogressbar_fill.xml",
144  // TRANSLATORS: status bar name
145  "job bar", _("job bar"));
147  true);
148  }
149 
150  loadBars();
151  updateBars();
152 
154  addMouseListener(this);
155  Inventory *const inv = PlayerInfo::getInventory();
156  if (inv != nullptr)
157  inv->addInventoyListener(this);
158 
161  updateStatus();
162 }
bool getValueBool(const std::string &key, const bool deflt) const
int getIntValue(const std::string &key) const
void addInventoyListener(InventoryListener *const listener)
Definition: inventory.cpp:302
std::vector< AnimatedSprite * > mIcons
ProgressBar * mMoneyBar
ProgressBar * mHpBar
ProgressBar * mWeightBar
std::map< std::string, ProgressBar * > mBarNames
ProgressBar * mInvSlotsBar
std::vector< ProgressBar * > mBars
ProgressBar * mMpBar
ProgressBar * mStatusBar
ProgressBar * createBar(const float progress, const int width, const int height, const ThemeColorIdT textColor, const ProgressColorIdT backColor, const std::string &skin, const std::string &skinFill, const std::string &name, const std::string &description)
ProgressBar * mJobBar
StatusPopup * mStatusPopup
ProgressBar * mArrowsBar
ProgressBar * mXpBar
virtual bool canUseMagic() const =0
int getOption(const std::string &name) const
Definition: skin.h:106
static void updateArrowsBar(ProgressBar *const bar)
static void updateXPBar(ProgressBar *const bar, const bool percent)
static void updateMoneyBar(ProgressBar *const bar)
void updateMPBar(ProgressBar *bar, const bool showMax) const
static void updateHPBar(ProgressBar *const bar, const bool showMax)
static void updateJobBar(ProgressBar *const bar, const bool percent)
void addMouseListener(MouseListener *const mouseListener)
Definition: widget.cpp:292
virtual void setVisible(Visible visible)
Definition: window.cpp:778
Skin * mSkin
Definition: window.h:649
Window(const std::string &caption, const Modal modal, Window *const parent, std::string skin)
Definition: window.cpp:109
Configuration config
Configuration serverConfig
#define CREATEWIDGETR0(type)
Definition: createwidget.h:39
#define _(s)
Definition: gettext.h:35
const bool Modal_false
Definition: modal.h:30
Inventory * getInventory()
Definition: playerinfo.cpp:195
Net::PlayerHandler * playerHandler
Definition: net.cpp:96
StatusWindow * statusWindow
const bool Visible_true
Definition: visible.h:30

References _, Inventory::addInventoyListener(), Widget::addMouseListener(), createBar(), PlayerInfo::getInventory(), ConfigurationObject::getValueBool(), loadBars(), mArrowsBar, mHpBar, mJobBar, mMoneyBar, mMpBar, mXpBar, ProgressColorId::PROG_JOB, serverConfig, Window::setVisible(), statusWindow, StatusWindow::updateArrowsBar(), updateBars(), StatusWindow::updateHPBar(), StatusWindow::updateJobBar(), StatusWindow::updateMoneyBar(), StatusWindow::updateMPBar(), updateStatus(), StatusWindow::updateXPBar(), and Visible_true.

◆ ~MiniStatusWindow()

MiniStatusWindow::~MiniStatusWindow ( )

Definition at line 164 of file ministatuswindow.cpp.

165 {
168  mIcons.clear();
169 
170  Inventory *const inv = PlayerInfo::getInventory();
171  if (inv != nullptr)
172  inv->removeInventoyListener(this);
173 
175  {
176  ProgressBar *bar = *it;
177  if (bar == nullptr)
178  continue;
179  if (bar->mVisible == Visible_false)
180  delete bar;
181  }
182  mBars.clear();
183 }
void removeInventoyListener(InventoryListener *const listener)
Definition: inventory.cpp:307
Visible mVisible
Definition: widget.h:963
#define delete2(var)
Definition: delete2.h:25
void delete_all(Container &c)
Definition: dtor.h:56
#define FOR_EACH(type, iter, array)
Definition: foreach.h:25
std::vector< ProgressBar * >::const_iterator ProgressBarVectorCIter
const bool Visible_false
Definition: visible.h:30

References delete2, delete_all(), FOR_EACH, PlayerInfo::getInventory(), mBars, mIcons, mStatusPopup, Widget::mVisible, Inventory::removeInventoyListener(), and Visible_false.

Member Function Documentation

◆ arrowsChanged()

void MiniStatusWindow::arrowsChanged ( )
virtual

Implements ArrowsListener.

Definition at line 600 of file ministatuswindow.cpp.

References mArrowsBar, and StatusWindow::updateArrowsBar().

◆ attributeChanged()

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

Implements AttributeListener.

Definition at line 282 of file ministatuswindow.cpp.

285 {
286  PRAGMA45(GCC diagnostic push)
287  PRAGMA45(GCC diagnostic ignored "-Wswitch-enum")
288  switch (id)
289  {
293  false);
294  break;
298  false);
299  break;
303  true);
304  break;
308  break;
309  case Attributes::MONEY:
311  break;
312  default:
313  break;
314  }
315  PRAGMA45(GCC diagnostic pop)
316 }
static void updateWeightBar(ProgressBar *const bar)
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class TestMain
@ PLAYER_EXP_NEEDED
Definition: attributes.h:37
@ TOTAL_WEIGHT
Definition: attributes.h:39
@ PLAYER_MAX_MP
Definition: attributes.h:35
@ PLAYER_MAX_HP
Definition: attributes.h:33

References Attributes::MAX_WEIGHT, mHpBar, mMoneyBar, mMpBar, Attributes::MONEY, mWeightBar, mXpBar, Attributes::PLAYER_EXP, Attributes::PLAYER_EXP_NEEDED, Attributes::PLAYER_HP, Attributes::PLAYER_MAX_HP, Attributes::PLAYER_MAX_MP, Attributes::PLAYER_MP, PRAGMA45(), statusWindow, Attributes::TOTAL_WEIGHT, StatusWindow::updateHPBar(), StatusWindow::updateMoneyBar(), StatusWindow::updateMPBar(), StatusWindow::updateWeightBar(), and StatusWindow::updateXPBar().

◆ createBar()

ProgressBar * MiniStatusWindow::createBar ( const float  progress,
const int  width,
const int  height,
const ThemeColorIdT  textColor,
const ProgressColorIdT  backColor,
const std::string &  skin,
const std::string &  skinFill,
const std::string &  name,
const std::string &  description 
)
private

Definition at line 185 of file ministatuswindow.cpp.

195 {
196  ProgressBar *const bar = new ProgressBar(this,
197  progress, width, height, backColor, skin, skinFill);
198  bar->setActionEventId(name);
199  bar->setId(description);
200  bar->setColor(getThemeColor(textColor, 255U),
201  getThemeColor(textColor + 1, 255U));
202  mBars.push_back(bar);
203  mBarNames[name] = bar;
204  return bar;
205 }
void setColor(const Color &color1, const Color &color2)
const Color & getThemeColor(const ThemeColorIdT type, const unsigned int alpha) const A_INLINE
Definition: widget2.h:45
void setId(const std::string &id)
Definition: widget.h:916
void setActionEventId(const std::string &actionEventId)
Definition: widget.h:596

References Widget2::getThemeColor(), mBarNames, mBars, Widget::setActionEventId(), ProgressBar::setColor(), and Widget::setId().

Referenced by MiniStatusWindow().

◆ draw()

void MiniStatusWindow::draw ( Graphics *const  graphics)
virtual

Draws the window.

Reimplemented from Window.

Definition at line 343 of file ministatuswindow.cpp.

344 {
345  BLOCK_START("MiniStatusWindow::draw")
346  drawChildren(graphics);
348 }
virtual void drawChildren(Graphics *const graphics)
void draw(Graphics *const graphics)
#define BLOCK_END(name)
Definition: perfomance.h:80
#define BLOCK_START(name)
Definition: perfomance.h:79

References BLOCK_END, BLOCK_START, and BasicContainer::drawChildren().

◆ drawIcons()

void MiniStatusWindow::drawIcons ( Graphics *const  graphics)

Definition at line 254 of file ministatuswindow.cpp.

255 {
256  // Draw icons
257  unsigned int icon_x = mMaxX + mIconPadding;
258  for (size_t i = 0, sz = mIcons.size(); i < sz; i ++)
259  {
260  const AnimatedSprite *const icon = mIcons[i];
261  if (icon != nullptr)
262  {
263  icon->draw(graphics, CAST_S32(icon_x), mIconPadding);
264  icon_x += CAST_U32(mIconSpacing + icon->getWidth());
265  }
266  }
267 }
#define CAST_S32
Definition: cast.h:30
#define CAST_U32
Definition: cast.h:31
int getWidth() const
void draw(Graphics *const graphics, const int posX, const int posY) const

References CAST_S32, CAST_U32, AnimatedSprite::draw(), AnimatedSprite::getWidth(), mIconPadding, mIcons, mIconSpacing, and mMaxX.

◆ eraseIcon()

void MiniStatusWindow::eraseIcon ( const int  index)

Definition at line 245 of file ministatuswindow.cpp.

246 {
247  if (index < CAST_S32(mIcons.size()))
248  {
249  delete mIcons[index];
250  mIcons.erase(mIcons.begin() + index);
251  }
252 }

References CAST_S32, and mIcons.

Referenced by LocalPlayer::handleStatusEffect().

◆ getBars()

std::vector<ProgressBar*>& MiniStatusWindow::getBars ( )
inline

Definition at line 89 of file ministatuswindow.h.

90  { return mBars; }

References mBars.

Referenced by PopupMenu::showPopup().

◆ getChildrenArea()

Rect MiniStatusWindow::getChildrenArea ( )
virtual

Gets the area of the widget occupied by the widget's children. By default this method returns an empty rectangle as not all widgets are containers. If you want to make a container this method should return the area where the children resides. This method is used when drawing children of a widget when computing clip rectangles for the children.

An example of a widget that overloads this method is ScrollArea. A ScrollArea has a view of its contant and that view is the children area. The size of a ScrollArea's children area might vary depending on if the scroll bars of the ScrollArea is shown or not.

Returns
The area of the widget occupied by the widget's children.
See also
BasicContainer
BasicContainer::getChildrenArea
BasicContainer::drawChildren

Reimplemented from Window.

Definition at line 590 of file ministatuswindow.cpp.

591 {
592  const int padding = mPadding;
593  const int padding2 = padding * 2;
594  const Rect &rect = mDimension;
595  return Rect(padding, padding,
596  rect.width - padding2,
597  rect.height - padding2);
598 }
Definition: rect.h:74
int width
Definition: rect.h:219
int height
Definition: rect.h:224
Rect mDimension
Definition: widget.h:1101
int mPadding
Definition: window.h:618

References Rect::height, Widget::mDimension, Window::mPadding, and Rect::width.

◆ isInBar()

bool MiniStatusWindow::isInBar ( ProgressBar bar,
int  x,
int  y 
) const
private

◆ loadBars()

void MiniStatusWindow::loadBars ( )
private

Definition at line 530 of file ministatuswindow.cpp.

531 {
532  if (config.getIntValue("ministatussaved") == 0)
533  {
534  if (mWeightBar != nullptr)
536  if (mInvSlotsBar != nullptr)
538  if (mMoneyBar != nullptr)
540  if (mArrowsBar != nullptr)
542  if (mStatusBar != nullptr)
544  if (mJobBar != nullptr)
546  return;
547  }
548 
549  for (int f = 0; f < 10; f ++)
550  {
551  const std::string str = config.getValue(
552  "ministatus" + toString(f), "");
553  if (str.empty())
554  continue;
555  ProgressBar *const bar = mBarNames[str];
556  if (bar == nullptr)
557  continue;
559  }
560 }
std::string getValue(const std::string &key, const std::string &deflt) const
void setVisible(Visible visible)
Definition: widget.cpp:225
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:1774

References config, Configuration::getIntValue(), ConfigurationObject::getValue(), mArrowsBar, mBarNames, mInvSlotsBar, mJobBar, mMoneyBar, mStatusBar, mWeightBar, Widget::setVisible(), Catch::toString(), Visible_false, and Visible_true.

Referenced by MiniStatusWindow().

◆ logic()

void MiniStatusWindow::logic ( )
virtual

Called for all widgets in the gui each time Gui::logic is called. You can do logic stuff here like playing an animation.

See also
Gui::logic

Reimplemented from BasicContainer.

Definition at line 329 of file ministatuswindow.cpp.

330 {
331  BLOCK_START("MiniStatusWindow::logic")
332  Window::logic();
333 
334  for (size_t i = 0, sz = mIcons.size(); i < sz; i++)
335  {
336  AnimatedSprite *const icon = mIcons[i];
337  if (icon != nullptr)
338  icon->update(tick_time * 10);
339  }
340  BLOCK_END("MiniStatusWindow::logic")
341 }
bool update(const int time)
Definition: window.h:102
volatile int tick_time
Definition: timer.cpp:53
int size()
Definition: emotedb.cpp:306

References BLOCK_END, BLOCK_START, BasicContainer::logic(), mIcons, tick_time, and AnimatedSprite::update().

◆ mouseExited()

void MiniStatusWindow::mouseExited ( MouseEvent event)
virtual

When the mouse leaves the window this ensures that the custom cursor is restored back to it's standard image.

Reimplemented from Window.

Definition at line 511 of file ministatuswindow.cpp.

512 {
513  Window::mouseExited(event);
514 
515  textPopup->hide();
516  mStatusPopup->hide();
517 }
void hide()
Definition: popup.cpp:265
void mouseExited(MouseEvent &event)
Definition: window.cpp:924
TextPopup * textPopup
Definition: textpopup.cpp:33

References Popup::hide(), Window::mouseExited(), mStatusPopup, and textPopup.

◆ mouseMoved()

void MiniStatusWindow::mouseMoved ( MouseEvent event)
virtual

Implements custom cursor image changing context, based on mouse relative position.

Reimplemented from Window.

Definition at line 357 of file ministatuswindow.cpp.

358 {
359  Window::mouseMoved(event);
360 
361  const int x = event.getX();
362  const int y = event.getY();
363 
364  const Rect &rect = mDimension;
365  if (event.getSource() == mStatusBar)
366  {
367  mStatusPopup->view(x + rect.x, y + rect.y);
368  textPopup->hide();
369  }
370  else if (event.getSource() == mXpBar)
371  {
372  std::string level;
373  if ((localPlayer != nullptr) && localPlayer->isGM())
374  {
375  // TRANSLATORS: status bar label
376  level = strprintf(_("Level: %d (GM %d)"),
379  }
380  else
381  {
382  // TRANSLATORS: status bar label
383  level = strprintf(_("Level: %d"),
385  }
386 
388  const int64_t expNeed = PlayerInfo::getAttribute64(
390  const std::string str = toString(CAST_U64(exp)) +
391  "/" +
392  toString(CAST_U64(expNeed));
393  if (exp > expNeed)
394  {
395  textPopup->show(x + rect.x,
396  y + rect.y,
397  level,
398  str);
399  }
400  else
401  {
402  const std::string str2 = toString(CAST_U64(expNeed - exp));
403  textPopup->show(x + rect.x,
404  y + rect.y,
405  level,
406  str,
407  // TRANSLATORS: status bar label
408  strprintf("%s: %s", _("Need"), str2.c_str()));
409  }
410  mStatusPopup->hide();
411  }
412  else if (event.getSource() == mHpBar)
413  {
414  textPopup->show(x + rect.x, y + rect.y, event.getSource()->getId(),
417  mStatusPopup->hide();
418  }
419  else if (event.getSource() == mMpBar)
420  {
421  textPopup->show(x + rect.x, y + rect.y, event.getSource()->getId(),
424  mStatusPopup->hide();
425  }
426  else if (event.getSource() == mJobBar)
427  {
428  const int64_t exp = PlayerInfo::getAttribute64(
430  const int64_t expNeed = PlayerInfo::getAttribute64(
432  const int32_t jobLevel = PlayerInfo::getAttribute(
434  const std::string expStr = toString(CAST_U64(exp));
435  const std::string expNeedStr = toString(CAST_U64(expNeed));
436 
437  // TRANSLATORS: job bar label
438  const std::string level = strprintf(_("Job level: %d"),
439  jobLevel);
440 
441  if (exp > expNeed)
442  {
443  textPopup->show(x + rect.x,
444  y + rect.y,
445  level,
446  strprintf("%s/%s", expStr.c_str(), expNeedStr.c_str()));
447  }
448  else
449  {
450  const std::string expLeftStr = toString(CAST_U64(expNeed - exp));
451  textPopup->show(x + rect.x,
452  y + rect.y,
453  level,
454  strprintf("%s/%s", expStr.c_str(), expNeedStr.c_str()),
455  // TRANSLATORS: status bar label
456  strprintf("%s: %s", _("Need"), expLeftStr.c_str()));
457  }
458  mStatusPopup->hide();
459  }
460  else if (event.getSource() == mWeightBar)
461  {
462  textPopup->show(x + rect.x, y + rect.y, event.getSource()->getId(),
466  mStatusPopup->hide();
467  }
468  else if (event.getSource() == mInvSlotsBar)
469  {
470  const Inventory *const inv = PlayerInfo::getInventory();
471  if (inv != nullptr)
472  {
473  const int usedSlots = inv->getNumberOfSlotsUsed();
474  const int maxSlots = inv->getSize();
475  textPopup->show(x + rect.x, y + rect.y,
476  event.getSource()->getId(),
477  strprintf("%d/%d", usedSlots, maxSlots));
478  }
479  mStatusPopup->hide();
480  }
481  else if (event.getSource() == mMoneyBar)
482  {
483  textPopup->show(x + rect.x, y + rect.y,
484  event.getSource()->getId(),
486  }
487  else
488  {
489  textPopup->hide();
490  mStatusPopup->hide();
491  }
492 }
#define CAST_U64
Definition: cast.h:33
int getGroupId() const
Definition: being.h:1087
bool isGM() const
Definition: being.h:659
Widget * getSource() const
Definition: event.h:104
unsigned getSize() const
Definition: inventory.h:76
int getNumberOfSlotsUsed() const
Definition: inventory.h:164
int y
Definition: rect.h:214
int x
Definition: rect.h:209
void view(const int x, const int y)
void show(const int x, const int y, const std::string &str1)
Definition: textpopup.h:57
const std::string & getId() const
Definition: widget.h:919
void mouseMoved(MouseEvent &event)
Definition: window.cpp:967
LocalPlayer * localPlayer
@ 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
int64_t getAttribute64(const AttributesT id)
Definition: playerinfo.cpp:94
int32_t getAttribute(const AttributesT id)
Definition: playerinfo.cpp:102
std::string strprintf(const char *const format,...)

References _, CAST_U64, PlayerInfo::getAttribute(), PlayerInfo::getAttribute64(), Being::getGroupId(), Widget::getId(), PlayerInfo::getInventory(), Inventory::getNumberOfSlotsUsed(), Inventory::getSize(), Event::getSource(), Popup::hide(), Being::isGM(), localPlayer, Attributes::MAX_WEIGHT, Widget::mDimension, mHpBar, mInvSlotsBar, mJobBar, mMoneyBar, mMpBar, Attributes::MONEY, Window::mouseMoved(), mStatusBar, mStatusPopup, mWeightBar, mXpBar, 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, TextPopup::show(), strprintf(), textPopup, Catch::toString(), Attributes::TOTAL_WEIGHT, StatusPopup::view(), Rect::x, x, Rect::y, and y.

◆ mousePressed()

void MiniStatusWindow::mousePressed ( MouseEvent event)
virtual

Starts window resizing when appropriate.

Reimplemented from Window.

Definition at line 494 of file ministatuswindow.cpp.

495 {
496  if (event.getButton() == MouseButton::RIGHT)
497  {
498  const ProgressBar *const bar = dynamic_cast<ProgressBar*>(
499  event.getSource());
500  if (bar == nullptr)
501  return;
502  event.consume();
503  if (popupManager != nullptr)
504  {
505  popupMenu->showPopup(getX() + event.getX(),
506  getY() + event.getY(), bar);
507  }
508  }
509 }
MouseButtonT getButton() const
Definition: mouseevent.h:116
void showPopup(const int x, const int y, const Being *const being)
Definition: popupmenu.cpp:203
int getY() const
Definition: widget.h:288
int getX() const
Definition: widget.h:269
PopupManager * popupManager
PopupMenu * popupMenu
Definition: popupmenu.cpp:103

References MouseEvent::getButton(), Widget::getX(), Widget::getY(), popupManager, popupMenu, MouseButton::RIGHT, and PopupMenu::showPopup().

◆ safeDraw()

void MiniStatusWindow::safeDraw ( Graphics *const  graphics)
virtual

Reimplemented from Window.

Definition at line 350 of file ministatuswindow.cpp.

351 {
352  BLOCK_START("MiniStatusWindow::draw")
353  safeDrawChildren(graphics);
355 }
virtual void safeDrawChildren(Graphics *const graphics)

References BLOCK_END, BLOCK_START, and BasicContainer::safeDrawChildren().

◆ saveBars()

void MiniStatusWindow::saveBars ( ) const
private

Definition at line 562 of file ministatuswindow.cpp.

563 {
564  int i = 0;
566  {
567  const ProgressBar *const bar = *it;
568  if (bar->mVisible == Visible_false)
569  {
570  config.setValue("ministatus" + toString(i),
571  bar->getActionEventId());
572  i ++;
573  }
574  }
575  for (int f = i; f < 10; f ++)
576  config.deleteKey("ministatus" + toString(f));
577 
578  config.setValue("ministatussaved", true);
579 }
void deleteKey(const std::string &key)
void setValue(const std::string &key, const std::string &value)
const std::string & getActionEventId() const
Definition: widget.h:605

References config, ConfigurationObject::deleteKey(), FOR_EACH, Widget::getActionEventId(), mBars, Widget::mVisible, Configuration::setValue(), Catch::toString(), and Visible_false.

Referenced by showBar().

◆ setIcon()

void MiniStatusWindow::setIcon ( const int  index,
AnimatedSprite *const  sprite 
)

Sets one of the icons.

Definition at line 236 of file ministatuswindow.cpp.

237 {
238  if (index >= CAST_S32(mIcons.size()))
239  mIcons.resize(index + 1, nullptr);
240 
241  delete mIcons[index];
242  mIcons[index] = sprite;
243 }

References CAST_S32, and mIcons.

Referenced by LocalPlayer::handleStatusEffect().

◆ showBar()

void MiniStatusWindow::showBar ( const std::string &  name,
const Visible  visible 
)

Definition at line 519 of file ministatuswindow.cpp.

521 {
522  ProgressBar *const bar = mBarNames[name];
523  if (bar == nullptr)
524  return;
525  bar->setVisible(visible);
526  updateBars();
527  saveBars();
528 }

References mBarNames, saveBars(), Widget::setVisible(), and updateBars().

Referenced by PopupMenu::handleLink().

◆ slotsChanged()

void MiniStatusWindow::slotsChanged ( const Inventory *const  inventory)
virtual

Implements InventoryListener.

Definition at line 581 of file ministatuswindow.cpp.

582 {
583  if (inventory == nullptr)
584  return;
585 
586  if (inventory->getType() == InventoryType::Inventory)
588 }
InventoryTypeT getType() const
Definition: inventory.h:176
static void updateInvSlotsBar(ProgressBar *const bar)

References Inventory::getType(), InventoryType::Inventory, mInvSlotsBar, and StatusWindow::updateInvSlotsBar().

◆ statChanged()

void MiniStatusWindow::statChanged ( const AttributesT  id,
const int  oldVal1,
const int  oldVal2 
)
virtual

Implements StatListener.

Definition at line 269 of file ministatuswindow.cpp.

272 {
273  if (statusWindow != nullptr)
274  {
276  false);
277  }
279  true);
280 }

References mJobBar, mMpBar, statusWindow, StatusWindow::updateJobBar(), and StatusWindow::updateMPBar().

◆ updateBars()

void MiniStatusWindow::updateBars ( )

Definition at line 207 of file ministatuswindow.cpp.

208 {
209  int x = 0;
210  const ProgressBar *lastBar = nullptr;
212  remove(*it);
213 
215  {
216  ProgressBar *const bar = *it;
217  if (bar == nullptr)
218  continue;
219  if (bar->mVisible == Visible_true)
220  {
221  bar->setPosition(x, 0);
222  add(bar);
223  x += bar->getWidth() + mSpacing;
224  lastBar = bar;
225  }
226  }
227 
228  if (lastBar != nullptr)
229  {
230  setContentSize(lastBar->getX() + lastBar->getWidth(),
231  lastBar->getY() + lastBar->getHeight());
232  }
233  mMaxX = x;
234 }
virtual void add(Widget *const widget)
virtual void remove(Widget *const widget)
void setPosition(const int x, const int y)
Definition: widget.cpp:161
int getHeight() const
Definition: widget.h:240
int getWidth() const
Definition: widget.h:221
void setContentSize(int width, int height)
Definition: window.cpp:492

References BasicContainer2::add(), FOR_EACH, Widget::getHeight(), Widget::getWidth(), Widget::getX(), Widget::getY(), mBars, mMaxX, mSpacing, Widget::mVisible, BasicContainer::remove(), Window::setContentSize(), Widget::setPosition(), Visible_true, and x.

Referenced by MiniStatusWindow(), and showBar().

◆ updateStatus()

void MiniStatusWindow::updateStatus ( )
virtual

Implements UpdateStatusListener.

Definition at line 318 of file ministatuswindow.cpp.

319 {
320  if (statusWindow != nullptr)
321  {
323  true);
324  }
325  if ((mStatusPopup != nullptr) && mStatusPopup->isPopupVisible())
326  mStatusPopup->update();
327 }
bool isPopupVisible() const
Definition: popup.h:174
void update()
Definition: statuspopup.cpp:89
void updateStatusBar(ProgressBar *const bar, const bool percent) const

References Popup::isPopupVisible(), mStatusBar, mStatusPopup, statusWindow, StatusPopup::update(), and StatusWindow::updateStatusBar().

Referenced by MiniStatusWindow().

Field Documentation

◆ mArrowsBar

ProgressBar* MiniStatusWindow::mArrowsBar
private

Definition at line 140 of file ministatuswindow.h.

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

◆ mBarNames

std::map<std::string, ProgressBar*> MiniStatusWindow::mBarNames
private

Definition at line 127 of file ministatuswindow.h.

Referenced by createBar(), loadBars(), and showBar().

◆ mBars

std::vector<ProgressBar*> MiniStatusWindow::mBars
private

Definition at line 126 of file ministatuswindow.h.

Referenced by createBar(), getBars(), saveBars(), updateBars(), and ~MiniStatusWindow().

◆ mHpBar

ProgressBar* MiniStatusWindow::mHpBar
private

Definition at line 133 of file ministatuswindow.h.

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

◆ mIconPadding

int MiniStatusWindow::mIconPadding
private

Definition at line 145 of file ministatuswindow.h.

Referenced by drawIcons().

◆ mIcons

std::vector<AnimatedSprite *> MiniStatusWindow::mIcons
private

Definition at line 128 of file ministatuswindow.h.

Referenced by drawIcons(), eraseIcon(), logic(), setIcon(), and ~MiniStatusWindow().

◆ mIconSpacing

int MiniStatusWindow::mIconSpacing
private

Definition at line 146 of file ministatuswindow.h.

Referenced by drawIcons().

◆ mInvSlotsBar

ProgressBar* MiniStatusWindow::mInvSlotsBar
private

Definition at line 138 of file ministatuswindow.h.

Referenced by loadBars(), mouseMoved(), and slotsChanged().

◆ mJobBar

ProgressBar* MiniStatusWindow::mJobBar
private

Definition at line 136 of file ministatuswindow.h.

Referenced by loadBars(), MiniStatusWindow(), mouseMoved(), and statChanged().

◆ mMaxX

int MiniStatusWindow::mMaxX
private

Definition at line 147 of file ministatuswindow.h.

Referenced by drawIcons(), and updateBars().

◆ mMoneyBar

ProgressBar* MiniStatusWindow::mMoneyBar
private

Definition at line 139 of file ministatuswindow.h.

Referenced by attributeChanged(), loadBars(), MiniStatusWindow(), and mouseMoved().

◆ mMpBar

ProgressBar* MiniStatusWindow::mMpBar
private

Definition at line 134 of file ministatuswindow.h.

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

◆ mSpacing

int MiniStatusWindow::mSpacing
private

Definition at line 144 of file ministatuswindow.h.

Referenced by updateBars().

◆ mStatusBar

ProgressBar* MiniStatusWindow::mStatusBar
private

Definition at line 141 of file ministatuswindow.h.

Referenced by loadBars(), mouseMoved(), and updateStatus().

◆ mStatusPopup

StatusPopup* MiniStatusWindow::mStatusPopup
private

Definition at line 142 of file ministatuswindow.h.

Referenced by mouseExited(), mouseMoved(), updateStatus(), and ~MiniStatusWindow().

◆ mWeightBar

ProgressBar* MiniStatusWindow::mWeightBar
private

Definition at line 137 of file ministatuswindow.h.

Referenced by attributeChanged(), loadBars(), and mouseMoved().

◆ mXpBar

ProgressBar* MiniStatusWindow::mXpBar
private

Definition at line 135 of file ministatuswindow.h.

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


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