ManaPlus
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends

#include <socialwindow.h>

Inheritance diagram for SocialWindow:
Window ActionListener PlayerRelationsListener BasicContainer2 MouseListener WidgetListener BasicContainer Widget WidgetDeathListener Widget2

Public Member Functions

 SocialWindow ()
 
 ~SocialWindow ()
 
void postInit ()
 
bool addTab (Guild *const guild)
 
bool removeTab (Guild *const guild)
 
bool addTab (Party *const party)
 
bool removeTab (Party *const party)
 
void action (const ActionEvent &event)
 
void showGuildInvite (const std::string &guildName, const int guildId, const std::string &inviterName)
 
void showPartyInvite (const std::string &partyName, const std::string &inviter, const int partyId)
 
void updateActiveList ()
 
void updateAvatar (const std::string &name)
 
void resetDamage (const std::string &name)
 
void slowLogic ()
 
void updatePortals ()
 
void updatePortalNames ()
 
void updateParty ()
 
int getPortalIndex (const int x, const int y)
 
void addPortal (const int x, const int y)
 
void removePortal (const int x, const int y)
 
void nextTab ()
 
void prevTab ()
 
const MapgetMap () const
 
void setMap (Map *const map)
 
bool getProcessedPortals () const
 
void setProcessedPortals (const bool n)
 
void selectPortal (const unsigned num)
 
void updateAttackFilter ()
 
void updatePickupFilter ()
 
void widgetResized (const Event &event)
 
void updateCounter (const SocialTab *const tab, const std::string &count)
 
void updateMenu (const SocialTab *const tab, const std::string &menu)
 
void updateGuildCounter (const int online, const int total)
 
void updatedPlayer (const std::string &name)
 
void updateAll ()
 
- 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 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)
 
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 PlayerRelationsListener
virtual ~PlayerRelationsListener ()
 

Protected Types

typedef std::map< Guild *, SocialTab * > GuildMap
 
typedef std::map< Party *, SocialTab * > PartyMap
 
- 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

void updateButtons ()
 
- 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 PlayerRelationsListener
 PlayerRelationsListener ()
 

Protected Attributes

int mGuildInvited
 
ConfirmDialogmGuildAcceptDialog
 
TextDialogmGuildCreateDialog
 
std::string mPartyInviter
 
GuildMap mGuilds
 
PartyMap mParties
 
ConfirmDialogmPartyAcceptDialog
 
SocialTabmAttackFilter
 
SocialTabmPickupFilter
 
SocialTabmPlayers
 
SocialTabmNavigation
 
SocialTabmFriends
 
ButtonmMenuButton
 
LabelmCountLabel
 
TabbedAreamTabs
 
MapmMap
 
time_t mLastUpdateTime
 
int mPartyId
 
bool mNeedUpdate
 
bool mProcessedPortals
 
- 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
 

Friends

class SocialTab
 

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)
 
- Data Fields inherited from Widget
Visible mVisible
 
- Static Protected Attributes inherited from Widget
static FontmGlobalFont = 0
 
- Private Member Functions inherited from ActionListener
virtual ~ActionListener ()
 
 ActionListener ()
 

Detailed Description

Party window.

Definition at line 46 of file socialwindow.h.

Member Typedef Documentation

◆ GuildMap

typedef std::map<Guild*, SocialTab*> SocialWindow::GuildMap
protected

Definition at line 140 of file socialwindow.h.

◆ PartyMap

typedef std::map<Party*, SocialTab*> SocialWindow::PartyMap
protected

Definition at line 141 of file socialwindow.h.

Constructor & Destructor Documentation

◆ SocialWindow()

SocialWindow::SocialWindow ( )

Definition at line 51 of file socialwindow.cpp.

51  :
52  // TRANSLATORS: social window name
53  Window(_("Social"), Modal_false, nullptr, "social.xml"),
56  mGuildInvited(0),
57  mGuildAcceptDialog(nullptr),
58  mGuildCreateDialog(nullptr),
59  mPartyInviter(),
60  mGuilds(),
61  mParties(),
62  mPartyAcceptDialog(nullptr),
63  mAttackFilter(nullptr),
64  mPickupFilter(nullptr),
65  // TRANSLATORS: here P is title for visible players tab in social window
66  mPlayers(new SocialPlayersTab(this, _("P"),
67  fromBool(getOptionBool("showtabbackground", false), Opaque))),
69  fromBool(getOptionBool("showtabbackground", false), Opaque))),
70  // TRANSLATORS: here F is title for friends tab in social window
71  mFriends(new SocialFriendsTab(this, _("F"),
72  fromBool(getOptionBool("showtabbackground", false), Opaque))),
73  // TRANSLATORS: social window button
74  mMenuButton(new Button(this, _("Menu"), "menu", BUTTON_SKIN, this)),
75  mCountLabel(new Label(this, "1000 / 1000")),
77  mMap(nullptr),
78  mLastUpdateTime(0),
79  mPartyId(0),
80  mNeedUpdate(false),
81  mProcessedPortals(false)
82 {
83 }
#define fromBool(val, name)
Definition: booldefines.h:49
const std::string BUTTON_SKIN
Definition: button.h:89
Definition: button.h:102
Definition: label.h:91
PartyMap mParties
Definition: socialwindow.h:150
ConfirmDialog * mPartyAcceptDialog
Definition: socialwindow.h:152
SocialTab * mPickupFilter
Definition: socialwindow.h:155
Button * mMenuButton
Definition: socialwindow.h:160
std::string mPartyInviter
Definition: socialwindow.h:148
TextDialog * mGuildCreateDialog
Definition: socialwindow.h:147
bool mProcessedPortals
Definition: socialwindow.h:168
TabbedArea * mTabs
Definition: socialwindow.h:162
ConfirmDialog * mGuildAcceptDialog
Definition: socialwindow.h:146
SocialTab * mPlayers
Definition: socialwindow.h:156
SocialTab * mFriends
Definition: socialwindow.h:158
SocialTab * mNavigation
Definition: socialwindow.h:157
SocialTab * mAttackFilter
Definition: socialwindow.h:154
GuildMap mGuilds
Definition: socialwindow.h:149
Label * mCountLabel
Definition: socialwindow.h:161
time_t mLastUpdateTime
Definition: socialwindow.h:165
bool getOptionBool(const std::string &name, const bool def) const
Definition: window.cpp:1466
Window(const std::string &caption, const Modal modal, Window *const parent, std::string skin)
Definition: window.cpp:109
#define CREATEWIDGETR(type,...)
Definition: createwidget.h:36
#define _(s)
Definition: gettext.h:35
const bool Modal_false
Definition: modal.h:30
bool Opaque
Definition: opaque.h:30

◆ ~SocialWindow()

SocialWindow::~SocialWindow ( )

Definition at line 150 of file socialwindow.cpp.

151 {
153  if (mGuildAcceptDialog != nullptr)
154  {
157  mGuildAcceptDialog = nullptr;
158 
159  mGuildInvited = 0;
160  }
161 
162  if (mPartyAcceptDialog != nullptr)
163  {
166  mPartyAcceptDialog = nullptr;
167 
168  mPartyInviter.clear();
169  }
175  FOR_EACH (GuildMap::iterator, it, mGuilds)
176  {
177  delete (*it).second;
178  }
179  mGuilds.clear();
180  FOR_EACH (PartyMap::iterator, it, mParties)
181  {
182  delete (*it).second;
183  }
184  mParties.clear();
185 }
void removeListener(PlayerRelationsListener *const listener)
virtual void close()
Definition: window.cpp:902
virtual void scheduleDelete()
Definition: window.cpp:831
#define delete2(var)
Definition: delete2.h:25
#define FOR_EACH(type, iter, array)
Definition: foreach.h:25
PlayerRelationsManager playerRelations

References Window::close(), delete2, FOR_EACH, mAttackFilter, mFriends, mGuildAcceptDialog, mGuildInvited, mGuilds, mNavigation, mParties, mPartyAcceptDialog, mPartyInviter, mPickupFilter, mPlayers, playerRelations, PlayerRelationsManager::removeListener(), and Window::scheduleDelete().

Member Function Documentation

◆ action()

void SocialWindow::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 266 of file socialwindow.cpp.

267 {
268  const std::string &eventId = event.getId();
269 
270  if (event.getSource() == mPartyAcceptDialog)
271  {
272  if (eventId == "yes")
273  {
274  if (localChatTab != nullptr)
275  {
277  // TRANSLATORS: chat message
278  strprintf(_("Accepted party invite from %s."),
279  mPartyInviter.c_str()),
283  }
285  }
286  else if (eventId == "no")
287  {
288  if (localChatTab != nullptr)
289  {
291  // TRANSLATORS: chat message
292  strprintf(_("Rejected party invite from %s."),
293  mPartyInviter.c_str()),
297  }
299  }
300 
301  mPartyInviter.clear();
302  mPartyAcceptDialog = nullptr;
303  }
304  else if (event.getSource() == mGuildAcceptDialog)
305  {
306  if (eventId == "yes")
307  {
308  if (localChatTab != nullptr)
309  {
311  // TRANSLATORS: chat message
312  strprintf(_("Accepted guild invite from %s."),
313  mPartyInviter.c_str()),
317  }
318 #ifdef TMWA_SUPPORT
319  if (guildManager == nullptr || !GuildManager::getEnableGuildBot())
321  else
323 #else // TMWA_SUPPORT
324 
326 #endif // TMWA_SUPPORT
327  }
328  else if (eventId == "no")
329  {
330  if (localChatTab != nullptr)
331  {
333  // TRANSLATORS: chat message
334  strprintf(_("Rejected guild invite from %s."),
335  mPartyInviter.c_str()),
339  }
340 #ifdef TMWA_SUPPORT
341  if (guildManager == nullptr || !GuildManager::getEnableGuildBot())
343  else
345 #else // TMWA_SUPPORT
346 
348 #endif // TMWA_SUPPORT
349  }
350 
351  mGuildInvited = 0;
352  mGuildAcceptDialog = nullptr;
353  }
354  else if (eventId == "party")
355  {
357  }
358  else if (eventId == "guild")
359  {
361  }
362  else if (eventId == "attack")
363  {
365  }
366  else if (eventId == "friends")
367  {
369  }
370  else if (eventId == "navigation")
371  {
373  }
374  else if (eventId == "pickup")
375  {
377  }
378  else if (eventId == "players")
379  {
381  }
382 }
ChatTab * localChatTab
Definition: chattab.cpp:62
void chatLog(std::string line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors)
Definition: chattab.cpp:111
static void inviteResponse(const bool response)
static bool getEnableGuildBot()
Definition: guildmanager.h:56
virtual void inviteResponse(const int guildId, const bool response) const =0
virtual void inviteResponse(const int partyId, const bool accept) const =0
void showAttackPopup()
Definition: popupmenu.cpp:3570
void showPickupPopup()
Definition: popupmenu.cpp:3590
void showPlayersPopup()
Definition: popupmenu.cpp:3600
void showFriendsPopup()
Definition: popupmenu.cpp:3610
void showPartyPopup()
Definition: popupmenu.cpp:3546
void showNavigationPopup()
Definition: popupmenu.cpp:3580
void showGuildPopup()
Definition: popupmenu.cpp:3556
Net::GuildHandler * guildHandler
Definition: net.cpp:92
GuildManager * guildManager
const bool IgnoreRecord_false
Definition: ignorerecord.h:30
Net::PartyHandler * partyHandler
Definition: net.cpp:94
PopupMenu * popupMenu
Definition: popupmenu.cpp:103
std::string strprintf(const char *const format,...)
const bool TryRemoveColors_true

References _, ChatMsgType::BY_SERVER, ChatTab::chatLog(), GuildManager::getEnableGuildBot(), Event::getSource(), guildHandler, guildManager, IgnoreRecord_false, GuildManager::inviteResponse(), Net::GuildHandler::inviteResponse(), Net::PartyHandler::inviteResponse(), localChatTab, mGuildAcceptDialog, mGuildInvited, mPartyAcceptDialog, mPartyId, mPartyInviter, partyHandler, popupMenu, PopupMenu::showAttackPopup(), PopupMenu::showFriendsPopup(), PopupMenu::showGuildPopup(), PopupMenu::showNavigationPopup(), PopupMenu::showPartyPopup(), PopupMenu::showPickupPopup(), PopupMenu::showPlayersPopup(), strprintf(), and TryRemoveColors_true.

◆ addPortal()

void SocialWindow::addPortal ( const int  x,
const int  y 
)

Definition at line 571 of file socialwindow.cpp.

572 {
573  if (mNavigation != nullptr)
574  static_cast<SocialNavigationTab*>(mNavigation)->addPortal(x, y);
575 }
void addPortal(const int x, const int y)

References mNavigation, x, and y.

Referenced by LocalPlayer::setHome().

◆ addTab() [1/2]

bool SocialWindow::addTab ( Guild *const  guild)

Definition at line 187 of file socialwindow.cpp.

188 {
189  if (guild == nullptr)
190  return false;
191 
192  if (mGuilds.find(guild) != mGuilds.end())
193  return false;
194 
195  SocialTab *tab = nullptr;
196  if (guild->getServerGuild())
197  {
198  tab = new SocialGuildTab(this, guild,
199  fromBool(getOptionBool("showtabbackground", false), Opaque));
200  }
201 #ifdef TMWA_SUPPORT
202  else
203  {
204  tab = new SocialGuildTab2(this, guild,
205  fromBool(getOptionBool("showtabbackground", false), Opaque));
206  }
207 #endif // TMWA_SUPPORT
208 
209  mGuilds[guild] = tab;
210  mTabs->addTab(tab, tab->mScroll);
211 
212  updateButtons();
213 
214  return true;
215 }
ScrollArea * mScroll
Definition: socialtab.h:138
void updateButtons()
void addTab(Tab *const tab, Widget *const widget)
Definition: tabbedarea.cpp:238
uint32_t guild

References TabbedArea::addTab(), fromBool, Window::getOptionBool(), guild, mGuilds, SocialTab::mScroll, mTabs, and updateButtons().

Referenced by Being::addGuild(), postInit(), Being::setGuild(), and Being::setParty().

◆ addTab() [2/2]

bool SocialWindow::addTab ( Party *const  party)

Definition at line 232 of file socialwindow.cpp.

233 {
234  if (party == nullptr)
235  return false;
236 
237  if (mParties.find(party) != mParties.end())
238  return false;
239 
240  SocialPartyTab *const tab = new SocialPartyTab(this, party,
241  fromBool(getOptionBool("showtabbackground", false), Opaque));
242  mParties[party] = tab;
243 
244  mTabs->addTab(tab, tab->mScroll);
245 
246  updateButtons();
247 
248  return true;
249 }
uint32_t party

References TabbedArea::addTab(), fromBool, Window::getOptionBool(), mParties, SocialTab::mScroll, mTabs, party, and updateButtons().

◆ getMap()

const Map* SocialWindow::getMap ( ) const
inline

◆ getPortalIndex()

int SocialWindow::getPortalIndex ( const int  x,
const int  y 
)

Definition at line 561 of file socialwindow.cpp.

562 {
563  if (mNavigation != nullptr)
564  {
565  return static_cast<SocialNavigationTab*>(
567  }
568  return -1;
569 }
int getPortalIndex(const int x, const int y)

References mNavigation, x, and y.

Referenced by EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), and LocalPlayer::setHome().

◆ getProcessedPortals()

bool SocialWindow::getProcessedPortals ( ) const
inline

Definition at line 107 of file socialwindow.h.

108  { return mProcessedPortals; }

References mProcessedPortals.

Referenced by SocialNavigationTab::updateList().

◆ nextTab()

void SocialWindow::nextTab ( )

Definition at line 583 of file socialwindow.cpp.

584 {
585  if (mTabs != nullptr)
586  mTabs->selectNextTab();
587 }
void selectNextTab()
Definition: tabbedarea.cpp:819

References mTabs, and TabbedArea::selectNextTab().

◆ postInit()

void SocialWindow::postInit ( )
virtual

Reimplemented from Window.

Definition at line 85 of file socialwindow.cpp.

86 {
88  setWindowName("Social");
90  setSaveVisible(true);
91  setResizable(true);
92  setSaveVisible(true);
93  setCloseButton(true);
94  setStickyButtonLock(true);
95 
96  setMinWidth(120);
97  setMinHeight(55);
98  setDefaultSize(590, 200, 180, 300);
99  if (setupWindow != nullptr)
101 
102  place(0, 0, mMenuButton, 1, 1);
103  place(0, 1, mCountLabel, 1, 1);
104  place(0, 2, mTabs, 2, 4);
105 
106  widgetResized(Event(nullptr));
107 
108  loadWindowState();
109 
113  mTabs->setSelectable(false);
116 
117  if (config.getBoolValue("enableAttackFilter"))
118  {
119  mAttackFilter = new SocialAttackTab(this,
120  fromBool(getOptionBool("showtabbackground", false), Opaque));
122  }
123  else
124  {
125  mAttackFilter = nullptr;
126  }
127 
128  if (config.getBoolValue("enablePickupFilter"))
129  {
130  mPickupFilter = new SocialPickupTab(this,
131  fromBool(getOptionBool("showtabbackground", false), Opaque));
133  }
134  else
135  {
136  mPickupFilter = nullptr;
137  }
138 
139  if ((localPlayer != nullptr) && (localPlayer->getParty() != nullptr))
141 
142  if ((localPlayer != nullptr) && (localPlayer->getGuild() != nullptr))
144 
145  enableVisibleSound(true);
146  updateButtons();
148 }
Party * getParty() const
Definition: being.h:330
const Guild * getGuild(const std::string &guildName) const
Definition: being.cpp:1258
bool getBoolValue(const std::string &key) const
Definition: event.h:79
void addListener(PlayerRelationsListener *const listener)
void registerWindowForReset(Window *const window)
void widgetResized(const Event &event)
bool addTab(Guild *const guild)
Widget * getTabContainer() const
Definition: tabbedarea.h:241
Widget * getWidgetContainer() const
Definition: tabbedarea.h:244
void setSelectable(const bool selectable)
Definition: widget.h:948
void setSaveVisible(const bool save)
Definition: window.h:300
void setResizable(const bool resize)
Definition: window.cpp:627
virtual void setVisible(Visible visible)
Definition: window.cpp:778
void setWindowName(const std::string &name)
Definition: window.h:355
void setMinHeight(const int height)
Definition: window.cpp:604
void postInit()
Definition: window.cpp:249
void setMinWidth(const int width)
Definition: window.cpp:591
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 config
LocalPlayer * localPlayer
SetupWindow * setupWindow
Definition: setupwindow.cpp:64
const bool Visible_false
Definition: visible.h:30

References PlayerRelationsManager::addListener(), addTab(), TabbedArea::addTab(), config, Window::enableVisibleSound(), fromBool, Configuration::getBoolValue(), Being::getGuild(), Window::getOptionBool(), Being::getParty(), TabbedArea::getTabContainer(), TabbedArea::getWidgetContainer(), Window::loadWindowState(), localPlayer, mAttackFilter, mCountLabel, mFriends, mMenuButton, mNavigation, mPickupFilter, mPlayers, SocialTab::mScroll, mTabs, Window::place(), playerRelations, Window::postInit(), SetupWindow::registerWindowForReset(), Window::setCloseButton(), Window::setDefaultSize(), Window::setMinHeight(), Window::setMinWidth(), Window::setResizable(), Window::setSaveVisible(), Widget::setSelectable(), Window::setStickyButtonLock(), setupWindow, Window::setVisible(), Window::setWindowName(), updateButtons(), Visible_false, and widgetResized().

◆ prevTab()

void SocialWindow::prevTab ( )

Definition at line 589 of file socialwindow.cpp.

590 {
591  if (mTabs != nullptr)
592  mTabs->selectPrevTab();
593 }
void selectPrevTab()
Definition: tabbedarea.cpp:828

References mTabs, and TabbedArea::selectPrevTab().

◆ removePortal()

void SocialWindow::removePortal ( const int  x,
const int  y 
)

Definition at line 577 of file socialwindow.cpp.

578 {
579  if (mNavigation != nullptr)
580  static_cast<SocialNavigationTab*>(mNavigation)->removePortal(x, y);
581 }
void removePortal(const int x, const int y)

References mNavigation, x, and y.

Referenced by PopupMenu::handleLink(), and LocalPlayer::setHome().

◆ removeTab() [1/2]

bool SocialWindow::removeTab ( Guild *const  guild)

◆ removeTab() [2/2]

bool SocialWindow::removeTab ( Party *const  party)

Definition at line 251 of file socialwindow.cpp.

252 {
253  const PartyMap::iterator it = mParties.find(party);
254  if (it == mParties.end())
255  return false;
256 
257  mTabs->removeTab(it->second);
258  delete it->second;
259  mParties.erase(it);
260 
261  updateButtons();
262 
263  return true;
264 }

References mParties, mTabs, party, TabbedArea::removeTab(), and updateButtons().

◆ resetDamage()

void SocialWindow::resetDamage ( const std::string &  name)

Definition at line 530 of file socialwindow.cpp.

531 {
532  mPlayers->resetDamage(name);
533 }
virtual void resetDamage(const std::string &name)
Definition: socialtab.h:62

References mPlayers, and SocialTab::resetDamage().

Referenced by TmwAthena::BeingRecv::processBeingSelfEffect(), and EAthena::BeingRecv::processBeingSpecialEffect().

◆ selectPortal()

void SocialWindow::selectPortal ( const unsigned  num)

Definition at line 555 of file socialwindow.cpp.

556 {
557  if (mNavigation != nullptr)
558  mNavigation->selectIndex(num);
559 }
virtual void selectIndex(const unsigned num)
Definition: socialtab.h:66

References mNavigation, and SocialTab::selectIndex().

◆ setMap()

void SocialWindow::setMap ( Map *const  map)
inline

Definition at line 104 of file socialwindow.h.

105  { mMap = map; mProcessedPortals = false; }

References mMap, and mProcessedPortals.

Referenced by Game::changeMap().

◆ setProcessedPortals()

void SocialWindow::setProcessedPortals ( const bool  n)
inline

Definition at line 110 of file socialwindow.h.

111  { mProcessedPortals = n; }

References mProcessedPortals.

Referenced by SocialNavigationTab::updateList().

◆ showGuildInvite()

void SocialWindow::showGuildInvite ( const std::string &  guildName,
const int  guildId,
const std::string &  inviterName 
)

Definition at line 384 of file socialwindow.cpp.

387 {
388  // check there isnt already an invite showing
389  if (mGuildInvited != 0)
390  {
391  if (localChatTab != nullptr)
392  {
393  // TRANSLATORS: chat message
394  localChatTab->chatLog(_("Received guild request, but one already "
395  "exists."),
399  }
400  return;
401  }
402 
403  const std::string msg = strprintf(
404  // TRANSLATORS: chat message
405  _("%s has invited you to join the guild %s."),
406  inviterName.c_str(), guildName.c_str());
407 
408  if (localChatTab != nullptr)
409  {
414  }
415 
417  // TRANSLATORS: guild invite message
418  _("Accept Guild Invite"),
419  msg,
421  false,
422  Modal_false,
423  this);
425  mGuildInvited = guildId;
426 }
void addActionListener(ActionListener *const actionListener)
Definition: widget.cpp:252
#define CREATEWIDGETV(var, type,...)
Definition: createwidget.h:25
bool msg(InputEvent &event)
Definition: chat.cpp:39
static const std::string SOUND_REQUEST
Definition: sound.h:29

References _, Widget::addActionListener(), ChatMsgType::BY_SERVER, ChatTab::chatLog(), CREATEWIDGETV, IgnoreRecord_false, localChatTab, mGuildAcceptDialog, mGuildInvited, Modal_false, Actions::msg(), SOUND_REQUEST, strprintf(), and TryRemoveColors_true.

Referenced by GuildManager::process(), and EAthena::GuildRecv::processGuildInvite().

◆ showPartyInvite()

void SocialWindow::showPartyInvite ( const std::string &  partyName,
const std::string &  inviter,
const int  partyId 
)

Definition at line 428 of file socialwindow.cpp.

431 {
432  // check there isnt already an invite showing
433  if (!mPartyInviter.empty())
434  {
435  if (localChatTab != nullptr)
436  {
437  // TRANSLATORS: chat message
438  localChatTab->chatLog(_("Received party request, but one already "
439  "exists."),
443  }
444  return;
445  }
446 
447  std::string msg;
448  if (inviter.empty())
449  {
450  if (partyName.empty())
451  {
452  // TRANSLATORS: party invite message
453  msg = _("You have been invited you to join a party.");
454  }
455  else
456  {
457  // TRANSLATORS: party invite message
458  msg = strprintf(_("You have been invited to join the %s party."),
459  partyName.c_str());
460  }
461  }
462  else
463  {
464  if (partyName.empty())
465  {
466  // TRANSLATORS: party invite message
467  msg = strprintf(_("%s has invited you to join their party."),
468  inviter.c_str());
469  }
470  else
471  {
472  // TRANSLATORS: party invite message
473  msg = strprintf(_("%s has invited you to join the %s party."),
474  inviter.c_str(), partyName.c_str());
475  }
476  }
477 
478  if (localChatTab != nullptr)
479  {
484  }
485 
486  // show invite
488  // TRANSLATORS: party invite message
489  _("Accept Party Invite"),
490  msg,
492  false,
493  Modal_false,
494  this);
496  mPartyInviter = inviter;
497  mPartyId = partyId;
498 }

References _, Widget::addActionListener(), ChatMsgType::BY_SERVER, ChatTab::chatLog(), CREATEWIDGETV, IgnoreRecord_false, localChatTab, Modal_false, mPartyAcceptDialog, mPartyId, mPartyInviter, Actions::msg(), SOUND_REQUEST, strprintf(), and TryRemoveColors_true.

Referenced by EAthena::PartyRecv::processPartyInvited(), and TmwAthena::PartyRecv::processPartyInvited().

◆ slowLogic()

void SocialWindow::slowLogic ( )

Definition at line 505 of file socialwindow.cpp.

506 {
507  BLOCK_START("SocialWindow::slowLogic")
508  const time_t nowTime = cur_time;
509  if (mNeedUpdate && nowTime - mLastUpdateTime > 1)
510  {
511  mPlayers->updateList();
512  mFriends->updateList();
513  mNeedUpdate = false;
514  mLastUpdateTime = nowTime;
515  }
516  else if (nowTime - mLastUpdateTime > 5)
517  {
518  mPlayers->updateList();
519  mNeedUpdate = false;
520  mLastUpdateTime = nowTime;
521  }
522  BLOCK_END("SocialWindow::slowLogic")
523 }
volatile time_t cur_time
Definition: timer.cpp:58
virtual void updateList()
Definition: socialtab.h:54
if(!vert) return
#define BLOCK_END(name)
Definition: perfomance.h:80
#define BLOCK_START(name)
Definition: perfomance.h:79

References BLOCK_END, BLOCK_START, cur_time, mFriends, mLastUpdateTime, mNeedUpdate, mPlayers, and SocialTab::updateList().

Referenced by Game::slowLogic().

◆ updateActiveList()

void SocialWindow::updateActiveList ( )

◆ updateAll()

void SocialWindow::updateAll ( )
virtual

Implements PlayerRelationsListener.

Definition at line 670 of file socialwindow.cpp.

671 {
672  mNeedUpdate = true;
673 }

References mNeedUpdate.

◆ updateAttackFilter()

void SocialWindow::updateAttackFilter ( )

Definition at line 595 of file socialwindow.cpp.

596 {
597  if (mAttackFilter != nullptr)
599 }

References mAttackFilter, and SocialTab::updateList().

Referenced by ActorManager::setPlayer().

◆ updateAvatar()

void SocialWindow::updateAvatar ( const std::string &  name)

Definition at line 525 of file socialwindow.cpp.

526 {
527  mPlayers->updateAvatar(name);
528 }
virtual void updateAvatar(const std::string &name)
Definition: socialtab.h:58

References mPlayers, and SocialTab::updateAvatar().

Referenced by Being::takeDamage().

◆ updateButtons()

void SocialWindow::updateButtons ( )
protected

Definition at line 535 of file socialwindow.cpp.

536 {
537 // if (!mTabs)
538 // return;
539 
540 // const bool hasTabs = mTabs->getNumberOfTabs() > 0;
541 }

Referenced by addTab(), postInit(), and removeTab().

◆ updateCounter()

void SocialWindow::updateCounter ( const SocialTab *const  tab,
const std::string &  count 
)

Definition at line 631 of file socialwindow.cpp.

633 {
634  if (mTabs->getSelectedTab() == tab)
635  {
636  mCountLabel->setCaption(counter);
638  }
639 }
void adjustSize()
Definition: label.cpp:200
void setCaption(const std::string &caption)
Definition: label.cpp:264
Tab * getSelectedTab() const
Definition: tabbedarea.h:175

References Label::adjustSize(), TabbedArea::getSelectedTab(), mCountLabel, mTabs, and Label::setCaption().

Referenced by SocialTab::updateCounter().

◆ updatedPlayer()

void SocialWindow::updatedPlayer ( const std::string &  name)
virtual

Implements PlayerRelationsListener.

Definition at line 665 of file socialwindow.cpp.

666 {
667  mNeedUpdate = true;
668 }

References mNeedUpdate.

◆ updateGuildCounter()

void SocialWindow::updateGuildCounter ( const int  online,
const int  total 
)

Definition at line 648 of file socialwindow.cpp.

649 {
650  if (localPlayer == nullptr)
651  return;
652 
653  Guild *const guild = localPlayer->getGuild();
654  if (guild != nullptr)
655  {
656  const GuildMap::iterator it = mGuilds.find(guild);
657  if (it != mGuilds.end())
658  {
659  SocialTab *const tab = (*it).second;
660  tab->buildCounter(online, total);
661  }
662  }
663 }
Definition: guild.h:70
virtual void buildCounter(const int online, const int total)
Definition: socialtab.h:70

References SocialTab::buildCounter(), Being::getGuild(), guild, localPlayer, and mGuilds.

Referenced by GuildManager::process(), EAthena::GuildRecv::processGuildMemberList(), EAthena::GuildRecv::processGuildMemberLogin(), and GuildManager::updateList().

◆ updateMenu()

void SocialWindow::updateMenu ( const SocialTab *const  tab,
const std::string &  menu 
)

Definition at line 641 of file socialwindow.cpp.

643 {
644  if (mTabs->getSelectedTab() == tab)
646 }
void setActionEventId(const std::string &actionEventId)
Definition: widget.h:596
MenuTypeT menu
Definition: menu.cpp:28

References TabbedArea::getSelectedTab(), EAthena::menu, mMenuButton, mTabs, and Widget::setActionEventId().

Referenced by SocialTab::updateMenu().

◆ updateParty()

void SocialWindow::updateParty ( )

Definition at line 607 of file socialwindow.cpp.

608 {
609  if (localPlayer == nullptr)
610  return;
611 
612  Party *const party = localPlayer->getParty();
613  if (party != nullptr)
614  {
615  const PartyMap::iterator it = mParties.find(party);
616  if (it != mParties.end())
617  {
618  SocialTab *const tab = (*it).second;
619  tab->buildCounter(0, 0);
620  }
621  }
622 }
Definition: party.h:63

References SocialTab::buildCounter(), Being::getParty(), localPlayer, mParties, and party.

Referenced by EAthena::PartyRecv::processPartyInfo(), and TmwAthena::PartyRecv::processPartyInfo().

◆ updatePickupFilter()

void SocialWindow::updatePickupFilter ( )

Definition at line 601 of file socialwindow.cpp.

602 {
603  if (mPickupFilter != nullptr)
605 }

References mPickupFilter, and SocialTab::updateList().

Referenced by ActorManager::setPlayer().

◆ updatePortalNames()

void SocialWindow::updatePortalNames ( )

Definition at line 549 of file socialwindow.cpp.

550 {
551  if (mNavigation != nullptr)
552  static_cast<SocialNavigationTab*>(mNavigation)->updateNames();
553 }

References mNavigation.

Referenced by RenameListener::action().

◆ updatePortals()

void SocialWindow::updatePortals ( )

Definition at line 543 of file socialwindow.cpp.

544 {
545  if (mNavigation != nullptr)
547 }

References mNavigation, and SocialTab::updateList().

Referenced by LocalPlayer::updateCoords().

◆ widgetResized()

void SocialWindow::widgetResized ( const Event event)
virtual

Called whenever the widget changes size.

Reimplemented from Window.

Definition at line 624 of file socialwindow.cpp.

625 {
626  Window::widgetResized(event);
627  if (mTabs != nullptr)
628  mTabs->adjustSize();
629 }
void adjustSize()
Definition: tabbedarea.cpp:569
void widgetResized(const Event &event)
Definition: window.cpp:655

References TabbedArea::adjustSize(), mTabs, and Window::widgetResized().

Referenced by postInit().

Friends And Related Function Documentation

◆ SocialTab

friend class SocialTab
friend

Definition at line 139 of file socialwindow.h.

Field Documentation

◆ mAttackFilter

SocialTab* SocialWindow::mAttackFilter
protected

Definition at line 154 of file socialwindow.h.

Referenced by postInit(), updateAttackFilter(), and ~SocialWindow().

◆ mCountLabel

Label* SocialWindow::mCountLabel
protected

Definition at line 161 of file socialwindow.h.

Referenced by postInit(), and updateCounter().

◆ mFriends

SocialTab* SocialWindow::mFriends
protected

Definition at line 158 of file socialwindow.h.

Referenced by postInit(), slowLogic(), and ~SocialWindow().

◆ mGuildAcceptDialog

ConfirmDialog* SocialWindow::mGuildAcceptDialog
protected

Definition at line 146 of file socialwindow.h.

Referenced by action(), showGuildInvite(), and ~SocialWindow().

◆ mGuildCreateDialog

TextDialog* SocialWindow::mGuildCreateDialog
protected

Definition at line 147 of file socialwindow.h.

◆ mGuildInvited

int SocialWindow::mGuildInvited
protected

Definition at line 145 of file socialwindow.h.

Referenced by action(), showGuildInvite(), and ~SocialWindow().

◆ mGuilds

GuildMap SocialWindow::mGuilds
protected

Definition at line 149 of file socialwindow.h.

Referenced by addTab(), removeTab(), updateGuildCounter(), and ~SocialWindow().

◆ mLastUpdateTime

time_t SocialWindow::mLastUpdateTime
protected

Definition at line 165 of file socialwindow.h.

Referenced by slowLogic().

◆ mMap

Map* SocialWindow::mMap
protected

Definition at line 163 of file socialwindow.h.

Referenced by getMap(), and setMap().

◆ mMenuButton

Button* SocialWindow::mMenuButton
protected

Definition at line 160 of file socialwindow.h.

Referenced by postInit(), and updateMenu().

◆ mNavigation

SocialTab* SocialWindow::mNavigation
protected

◆ mNeedUpdate

bool SocialWindow::mNeedUpdate
protected

Definition at line 167 of file socialwindow.h.

Referenced by slowLogic(), updateActiveList(), updateAll(), and updatedPlayer().

◆ mParties

PartyMap SocialWindow::mParties
protected

Definition at line 150 of file socialwindow.h.

Referenced by addTab(), removeTab(), updateParty(), and ~SocialWindow().

◆ mPartyAcceptDialog

ConfirmDialog* SocialWindow::mPartyAcceptDialog
protected

Definition at line 152 of file socialwindow.h.

Referenced by action(), showPartyInvite(), and ~SocialWindow().

◆ mPartyId

int SocialWindow::mPartyId
protected

Definition at line 166 of file socialwindow.h.

Referenced by action(), and showPartyInvite().

◆ mPartyInviter

std::string SocialWindow::mPartyInviter
protected

Definition at line 148 of file socialwindow.h.

Referenced by action(), showPartyInvite(), and ~SocialWindow().

◆ mPickupFilter

SocialTab* SocialWindow::mPickupFilter
protected

Definition at line 155 of file socialwindow.h.

Referenced by postInit(), updatePickupFilter(), and ~SocialWindow().

◆ mPlayers

SocialTab* SocialWindow::mPlayers
protected

Definition at line 156 of file socialwindow.h.

Referenced by postInit(), resetDamage(), slowLogic(), updateAvatar(), and ~SocialWindow().

◆ mProcessedPortals

bool SocialWindow::mProcessedPortals
protected

Definition at line 168 of file socialwindow.h.

Referenced by getProcessedPortals(), setMap(), and setProcessedPortals().

◆ mTabs

TabbedArea* SocialWindow::mTabs
protected

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