ManaPlus
Public Member Functions | Private Member Functions | Private Attributes
BeingPopup Class Reference

#include <beingpopup.h>

Inheritance diagram for BeingPopup:
Popup Container MouseListener WidgetListener BasicContainer2 BasicContainer Widget WidgetDeathListener Widget2

Public Member Functions

 BeingPopup ()
 
 ~BeingPopup ()
 
void show (const int x, const int y, Being *const b)
 
void postInit ()
 
- Public Member Functions inherited from Popup
 Popup (const std::string &name, std::string skin)
 
 ~Popup ()
 
void draw (Graphics *const graphics)
 
void safeDraw (Graphics *const graphics)
 
void setContentSize (int width, int height)
 
void setLocationRelativeTo (const Widget *const widget)
 
void mouseMoved (MouseEvent &event)
 
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
 
int getPadding () const
 
void setPadding (int padding)
 
void setPopupName (const std::string &name)
 
const std::string & getPopupName () const
 
void scheduleDelete ()
 
Rect getChildrenArea ()
 
void position (const int x, const int y)
 
void hide ()
 
void widgetResized (const Event &event)
 
void widgetMoved (const Event &event)
 
bool isPopupVisible () const
 
void postInit ()
 
- Public Member Functions inherited from Container
 Container (const Widget2 *const widget)
 
 ~Container ()
 
bool safeRemove (Widget *const widget)
 
void removeControls ()
 
- 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 mouseEntered (MouseEvent &event)
 
virtual void mouseExited (MouseEvent &event)
 
virtual void mousePressed (MouseEvent &event)
 
virtual void mouseReleased (MouseEvent &event)
 
virtual void mouseClicked (MouseEvent &event)
 
virtual void mouseWheelMovedUp (MouseEvent &event)
 
virtual void mouseWheelMovedDown (MouseEvent &event)
 
virtual void mouseDragged (MouseEvent &event)
 
- Public Member Functions inherited from WidgetListener
virtual ~WidgetListener ()
 
virtual void widgetHidden (const Event &event)
 
virtual void widgetShown (const Event &event)
 

Private Member Functions

void addLabels (const int fontHeight)
 

Private Attributes

LabelmBeingName
 
std::vector< Label * > mLabels
 

Additional Inherited Members

- Static Public Member Functions inherited from Popup
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)
 
- 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 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 Attributes inherited from Popup
int mPadding
 
SkinmSkin
 
- 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

A popup that displays information about a being.

Definition at line 34 of file beingpopup.h.

Constructor & Destructor Documentation

◆ BeingPopup()

BeingPopup::BeingPopup ( )

Constructor. Initializes the being popup.

Definition at line 49 of file beingpopup.cpp.

49  :
50  Popup("BeingPopup", "beingpopup.xml"),
51  mBeingName(new Label(this, "A")),
52  mLabels()
53 {
54  // Being Name
56  mBeingName->setPosition(0, 0);
57 
58  const int fontHeight = mBeingName->getHeight();
59  setMinHeight(fontHeight);
60  addLabels(fontHeight);
61 }
Label * mBeingName
Definition: beingpopup.h:63
std::vector< Label * > mLabels
Definition: beingpopup.h:64
void addLabels(const int fontHeight)
Definition: beingpopup.cpp:78
Definition: label.h:91
void setMinHeight(const int height)
Definition: popup.cpp:207
Popup(const std::string &name, std::string skin)
Definition: popup.cpp:40
void setFont(Font *const font)
Definition: widget.cpp:349
void setPosition(const int x, const int y)
Definition: widget.cpp:161
int getHeight() const
Definition: widget.h:240
Font * boldFont
Definition: gui.cpp:112

References addLabels(), boldFont, Widget::getHeight(), mBeingName, Widget::setFont(), Popup::setMinHeight(), and Widget::setPosition().

◆ ~BeingPopup()

BeingPopup::~BeingPopup ( )

Destructor. Cleans up the being popup on deletion.

Definition at line 63 of file beingpopup.cpp.

64 {
65  mBeingName = nullptr;
66 }

References mBeingName.

Member Function Documentation

◆ addLabels()

void BeingPopup::addLabels ( const int  fontHeight)
private

Definition at line 78 of file beingpopup.cpp.

79 {
80  for (int f = 0; f < 11; f ++)
81  {
82  Label *const label = new Label(this, "A");
83  label->setPosition(0, fontHeight * (f + 1));
84  label->setForegroundColorAll(
85  getThemeColor(ThemeColorId::POPUP, 255U),
86  getThemeColor(ThemeColorId::POPUP_OUTLINE, 255U));
87  mLabels.push_back(label);
88  }
89 }
void setForegroundColorAll(const Color &color1, const Color &color2)
Definition: label.cpp:217
const Color & getThemeColor(const ThemeColorIdT type, const unsigned int alpha) const A_INLINE
Definition: widget2.h:45

References Widget2::getThemeColor(), mLabels, Label::setForegroundColorAll(), and Widget::setPosition().

Referenced by BeingPopup().

◆ postInit()

void BeingPopup::postInit ( )
virtual

Reimplemented from Widget.

Definition at line 68 of file beingpopup.cpp.

69 {
71  add(mBeingName);
72  FOR_EACH (STD_VECTOR<Label*>::iterator, it, mLabels)
73  {
74  add(*it);
75  }
76 }
virtual void add(Widget *const widget)
void postInit()
Definition: popup.h:177
#define FOR_EACH(type, iter, array)
Definition: foreach.h:25

References BasicContainer2::add(), FOR_EACH, mBeingName, mLabels, and Popup::postInit().

◆ show()

void BeingPopup::show ( const int  x,
const int  y,
Being *const  b 
)

Sets the info to be displayed given a particular player.

Definition at line 91 of file beingpopup.cpp.

92 {
93  if (b == nullptr)
94  {
96  return;
97  }
98 
99  int num = 0;
100  Label *ptr = nullptr;
101  b->updateComment();
102 
103  if (b->getType() == ActorType::Npc && b->getComment().empty())
104  {
106  return;
107  }
108 
110  if (gui != nullptr)
111  {
114  else
116  }
117  if (b->isAdvanced())
118  {
120  getThemeColor(ThemeColorId::PLAYER_ADVANCED, 255U),
121  getThemeColor(ThemeColorId::PLAYER_ADVANCED_OUTLINE, 255U));
122  }
123  else
124  {
126  getThemeColor(ThemeColorId::POPUP, 255U),
127  getThemeColor(ThemeColorId::POPUP_OUTLINE, 255U));
128  }
129 
131  FOR_EACH (STD_VECTOR<Label*>::iterator, it, mLabels)
132  {
133  (*it)->setCaption(std::string());
134  }
135 
136  const ActorTypeT type = b->getType();
137  if (type == ActorType::Pet)
138  {
139  const PetInfo *const info = PlayerInfo::getPet();
140  if ((info != nullptr) && info->id == b->getId())
141  {
142  ptr = mLabels[num];
143  // TRANSLATORS: being popup label
144  ptr->setCaption(strprintf(_("Hungry: %d"),
145  info->hungry));
146  ptr->adjustSize();
147  num ++;
148  ptr = mLabels[num];
149  // TRANSLATORS: being popup label
150  ptr->setCaption(strprintf(_("Intimacy: %d"),
151  info->intimacy));
152  ptr->adjustSize();
153  num ++;
154  }
155  }
156  else if (type == ActorType::Homunculus)
157  {
159  if ((info != nullptr) && info->id == b->getId())
160  {
161  ptr = mLabels[num];
162  // TRANSLATORS: being popup label
163  ptr->setCaption(strprintf(_("Hungry: %d"),
164  info->hungry));
165  ptr->adjustSize();
166  num ++;
167  ptr = mLabels[num];
168  // TRANSLATORS: being popup label
169  ptr->setCaption(strprintf(_("Intimacy: %d"),
170  info->intimacy));
171  ptr->adjustSize();
172  num ++;
173  }
174  }
175  else
176  {
177  const int groupId = b->getGroupId();
178  const std::string &groupName = GroupDb::getLongName(groupId);
179  if (!groupName.empty())
180  {
181  ptr = mLabels[num];
182  // TRANSLATORS: being popup label
183  ptr->setCaption(strprintf(_("Group: %s (%d)"),
184  groupName.c_str(),
185  groupId));
186  ptr->adjustSize();
187  num ++;
188  }
189 
190  if (!(b->getPartyName().empty()))
191  {
192  ptr = mLabels[num];
193  // TRANSLATORS: being popup label
194  ptr->setCaption(strprintf(_("Party: %s"),
195  b->getPartyName().c_str()));
196  ptr->adjustSize();
197  num ++;
198  }
199 
200  if (!(b->getGuildName().empty()))
201  {
202  ptr = mLabels[num];
203  // TRANSLATORS: being popup label
204  ptr->setCaption(strprintf(_("Guild: %s"),
205  b->getGuildName().c_str()));
206  ptr->adjustSize();
207  num ++;
208  }
209 
210  if (!(b->getClanName().empty()))
211  {
212  ptr = mLabels[num];
213  // TRANSLATORS: being popup label
214  ptr->setCaption(strprintf(_("Clan: %s"),
215  b->getClanName().c_str()));
216  ptr->adjustSize();
217  num ++;
218  }
219 
220  if (b->getPvpRank() > 0)
221  {
222  ptr = mLabels[num];
223  // TRANSLATORS: being popup label
224  ptr->setCaption(strprintf(_("Pvp rank: %u"),
225  b->getPvpRank()));
226  ptr->adjustSize();
227  num ++;
228  }
229 
230  if (!b->getBuyBoard().empty())
231  {
232  ptr = mLabels[num];
233  // TRANSLATORS: being popup label
234  ptr->setCaption(strprintf(_("Buy shop: %s"),
235  b->getBuyBoard().c_str()));
236  ptr->adjustSize();
237  num ++;
238  }
239 
240  if (!b->getSellBoard().empty())
241  {
242  ptr = mLabels[num];
243  // TRANSLATORS: being popup label
244  ptr->setCaption(strprintf(_("Sell shop: %s"),
245  b->getSellBoard().c_str()));
246  ptr->adjustSize();
247  num ++;
248  }
249 
250  if (!b->getComment().empty())
251  {
252  ptr = mLabels[num];
253  // TRANSLATORS: being popup label
254  ptr->setCaption(strprintf(_("Comment: %s"),
255  b->getComment().c_str()));
256  ptr->adjustSize();
257  num ++;
258  }
259 
260  const std::string effects = b->getStatusEffectsString();
261  if (!effects.empty())
262  {
263  ptr = mLabels[num];
264  // TRANSLATORS: being popup label
265  ptr->setCaption(strprintf(_("Effects: %s"),
266  effects.c_str()));
267  ptr->adjustSize();
268  num ++;
269  }
270 
271  const ChatObject *const chat = b->getChat();
272  if (chat != nullptr)
273  {
274  ptr = mLabels[num];
275  // TRANSLATORS: being popup label
276  ptr->setCaption(strprintf(_("Chat room: %s"),
277  chat->title.c_str()));
278  ptr->adjustSize();
279  num ++;
280  }
281  }
282 
283  const int level = b->getLevel();
284  if (level > 1)
285  {
286  ptr = mLabels[num];
287  // TRANSLATORS: being popup label
288  ptr->setCaption(strprintf(_("Level: %d"),
289  level));
290  ptr->adjustSize();
291  num ++;
292  }
293 
294  const int maxHp = b->getMaxHP();
295  if (maxHp > 0)
296  {
297  int hp = b->getHP();
298  if (hp == 0)
299  hp = maxHp - b->getDamageTaken();
300  if (hp > 0)
301  {
302  ptr = mLabels[num];
303  // TRANSLATORS: being popup label
304  ptr->setCaption(strprintf(_("Hp: %d/%d"),
305  hp,
306  maxHp));
307  ptr->adjustSize();
308  num ++;
309  }
310  }
311 
312  const uint32_t particleCount = CAST_U32(b->getParticlesCount());
313  if (particleCount != 0)
314  {
315  ptr = mLabels[num];
316  // TRANSLATORS: being popup label
317  ptr->setCaption(strprintf(_("Particles: %u"),
318  particleCount));
319  ptr->adjustSize();
320  num ++;
321  }
322 
323  const size_t sz = mLabels.size();
324  for (size_t f = num; f < sz; f ++)
325  {
326  mLabels[f]->setCaption(std::string());
327  }
328 
329  int minWidth = mBeingName->getWidth();
330  const int height1 = getFont()->getHeight();
331  int height = height1;
332  FOR_EACH (STD_VECTOR<Label*>::iterator, it, mLabels)
333  {
334  const Label *const label = *it;
335  if (label != nullptr)
336  {
337  if (label->getWidth() > minWidth)
338  minWidth = label->getWidth();
339  if (!label->getCaption().empty())
340  height += height1;
341  }
342  }
343 
344  setContentSize(minWidth, height);
345  position(x, y);
346 }
ActorType ::T ActorTypeT
Definition: actortype.h:43
#define CAST_U32
Definition: cast.h:31
size_t getParticlesCount() const
Definition: actorsprite.h:195
BeingId getId() const
Definition: actorsprite.h:64
std::string getStatusEffectsString() const
std::string getBuyBoard() const
Definition: being.h:1015
const std::string & getClanName() const
Definition: being.h:263
virtual int getLevel() const
Definition: being.h:604
const std::string getComment() const
Definition: being.h:812
const std::string & getPartyName() const
Definition: being.h:255
int getGroupId() const
Definition: being.h:1087
std::string getGenderSignWithSpace() const
Definition: being.cpp:2538
int getHP() const
Definition: being.h:759
ChatObject * getChat() const
Definition: being.h:999
const std::string & getName() const
Definition: being.h:232
const std::string & getGuildName() const
Definition: being.h:259
int getMaxHP() const
Definition: being.h:762
void updateComment()
Definition: being.cpp:4725
std::string getSellBoard() const
Definition: being.h:1010
bool isAdvanced() const
Definition: being.h:828
ActorTypeT getType() const
Definition: being.h:116
unsigned int getPvpRank() const
Definition: being.h:749
int getDamageTaken() const
Definition: being.h:593
int getHeight() const
Definition: font.cpp:362
Font * getSecureFont() const
Definition: gui.h:172
void adjustSize()
Definition: label.cpp:200
const std::string & getCaption() const
Definition: label.h:133
void setCaption(const std::string &caption)
Definition: label.cpp:264
bool isGoodName(Being *const being) const
void setContentSize(int width, int height)
Definition: popup.cpp:155
void position(const int x, const int y)
Definition: popup.cpp:235
void setVisible(Visible visible)
Definition: widget.cpp:225
Font * getFont() const
Definition: widget.cpp:331
int getWidth() const
Definition: widget.h:221
#define _(s)
Definition: gettext.h:35
Gui * gui
Definition: gui.cpp:111
bool info(InputEvent &event)
Definition: commands.cpp:57
@ Homunculus
Definition: actortype.h:39
const std::string & getLongName(const int id)
Definition: groupdb.cpp:355
HomunculusInfo * getHomunculus()
Definition: playerinfo.cpp:603
PetInfo * getPet()
Definition: playerinfo.cpp:576
PlayerRelationsManager playerRelations
std::string strprintf(const char *const format,...)
std::string title
Definition: chatobject.h:51
const bool Visible_false
Definition: visible.h:30

References _, Label::adjustSize(), boldFont, CAST_U32, FOR_EACH, Being::getBuyBoard(), Label::getCaption(), Being::getChat(), Being::getClanName(), Being::getComment(), Being::getDamageTaken(), Widget::getFont(), Being::getGenderSignWithSpace(), Being::getGroupId(), Being::getGuildName(), Font::getHeight(), PlayerInfo::getHomunculus(), Being::getHP(), ActorSprite::getId(), Being::getLevel(), GroupDb::getLongName(), Being::getMaxHP(), Being::getName(), ActorSprite::getParticlesCount(), Being::getPartyName(), PlayerInfo::getPet(), Being::getPvpRank(), Gui::getSecureFont(), Being::getSellBoard(), ActorSprite::getStatusEffectsString(), Widget2::getThemeColor(), Being::getType(), Widget::getWidth(), gui, ActorType::Homunculus, Actions::info(), Being::isAdvanced(), PlayerRelationsManager::isGoodName(), mBeingName, mLabels, ActorType::Npc, ActorType::Pet, playerRelations, Popup::position(), Label::setCaption(), Popup::setContentSize(), Widget::setFont(), Label::setForegroundColorAll(), Widget::setVisible(), strprintf(), ChatObject::title, Being::updateComment(), Visible_false, x, and y.

Field Documentation

◆ mBeingName

Label* BeingPopup::mBeingName
private

Definition at line 63 of file beingpopup.h.

Referenced by BeingPopup(), postInit(), show(), and ~BeingPopup().

◆ mLabels

std::vector<Label*> BeingPopup::mLabels
private

Definition at line 64 of file beingpopup.h.

Referenced by addLabels(), postInit(), and show().


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