75 mCountLabel(
new Label(this,
"1000 / 1000")),
81 mProcessedPortals(false)
189 if (
guild ==
nullptr)
196 if (
guild->getServerGuild())
234 if (
party ==
nullptr)
268 const std::string &eventId =
event.getId();
272 if (eventId ==
"yes")
278 strprintf(
_(
"Accepted party invite from %s."),
286 else if (eventId ==
"no")
292 strprintf(
_(
"Rejected party invite from %s."),
306 if (eventId ==
"yes")
312 strprintf(
_(
"Accepted guild invite from %s."),
328 else if (eventId ==
"no")
334 strprintf(
_(
"Rejected guild invite from %s."),
354 else if (eventId ==
"party")
358 else if (eventId ==
"guild")
362 else if (eventId ==
"attack")
366 else if (eventId ==
"friends")
370 else if (eventId ==
"navigation")
374 else if (eventId ==
"pickup")
378 else if (eventId ==
"players")
386 const std::string &
restrict inviterName)
405 _(
"%s has invited you to join the guild %s."),
406 inviterName.c_str(), guildName.c_str());
418 _(
"Accept Guild Invite"),
429 const std::string &
restrict inviter,
450 if (partyName.empty())
453 msg =
_(
"You have been invited you to join a party.");
458 msg =
strprintf(
_(
"You have been invited to join the %s party."),
464 if (partyName.empty())
467 msg =
strprintf(
_(
"%s has invited you to join their party."),
473 msg =
strprintf(
_(
"%s has invited you to join the %s party."),
474 inviter.c_str(), partyName.c_str());
489 _(
"Accept Party Invite"),
585 if (
mTabs !=
nullptr)
591 if (
mTabs !=
nullptr)
613 if (
party !=
nullptr)
627 if (
mTabs !=
nullptr)
632 const std::string &counter)
642 const std::string &
menu)
654 if (
guild !=
nullptr)
#define fromBool(val, name)
virtual void logicChildren()
const Guild * getGuild(const std::string &guildName) const
void chatLog(std::string line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors)
bool getBoolValue(const std::string &key) const
Widget * getSource() const
static void inviteResponse(const bool response)
static bool getEnableGuildBot()
void setCaption(const std::string &caption)
virtual void inviteResponse(const int guildId, const bool response) const =0
virtual void inviteResponse(const int partyId, const bool accept) const =0
void addListener(PlayerRelationsListener *const listener)
void removeListener(PlayerRelationsListener *const listener)
void registerWindowForReset(Window *const window)
virtual void updateAvatar(const std::string &name)
virtual void selectIndex(const unsigned num)
virtual void buildCounter(const int online, const int total)
virtual void resetDamage(const std::string &name)
virtual void updateList()
void updateGuildCounter(const int online, const int total)
void resetDamage(const std::string &name)
void removePortal(const int x, const int y)
void showGuildInvite(const std::string &guildName, const int guildId, const std::string &inviterName)
ConfirmDialog * mPartyAcceptDialog
SocialTab * mPickupFilter
void widgetResized(const Event &event)
int getPortalIndex(const int x, const int y)
std::string mPartyInviter
void updateAvatar(const std::string &name)
void updatePickupFilter()
void updateAttackFilter()
void addPortal(const int x, const int y)
bool removeTab(Guild *const guild)
void selectPortal(const unsigned num)
ConfirmDialog * mGuildAcceptDialog
void updateMenu(const SocialTab *const tab, const std::string &menu)
void updateCounter(const SocialTab *const tab, const std::string &count)
void action(const ActionEvent &event)
bool addTab(Guild *const guild)
SocialTab * mAttackFilter
void showPartyInvite(const std::string &partyName, const std::string &inviter, const int partyId)
void updatedPlayer(const std::string &name)
void removeTab(Tab *const tab)
Widget * getTabContainer() const
Widget * getWidgetContainer() const
void addTab(Tab *const tab, Widget *const widget)
Tab * getSelectedTab() const
void setSaveVisible(const bool save)
void setResizable(const bool resize)
virtual void setVisible(Visible visible)
bool getOptionBool(const std::string &name, const bool def) const
void setWindowName(const std::string &name)
void setMinHeight(const int height)
void setMinWidth(const int width)
void enableVisibleSound(bool b)
void widgetResized(const Event &event)
void setCloseButton(const bool flag)
virtual void scheduleDelete()
void setStickyButtonLock(const bool sticky)
LayoutCell & place(const int x, const int y, Widget *const wg, const int w, const int h)
#define FOR_EACH(type, iter, array)
Net::GuildHandler * guildHandler
GuildManager * guildManager
const bool IgnoreRecord_false
LocalPlayer * localPlayer
bool msg(InputEvent &event)
Net::PartyHandler * partyHandler
#define BLOCK_START(name)
PlayerRelationsManager playerRelations
SetupWindow * setupWindow
SocialWindow * socialWindow
static const std::string SOUND_REQUEST
std::string strprintf(const char *const format,...)
const bool TryRemoveColors_true