23 #ifndef GUI_WIDGETS_TABS_SOCIALPARTYTAB_H
24 #define GUI_WIDGETS_TABS_SOCIALPARTYTAB_H
49 const Opaque showBackground) :
58 &
getThemeColor(ThemeColorId::PARTY_SOCIAL_TAB_OUTLINE, 255U));
60 ThemeColorId::PARTY_SOCIAL_TAB_HIGHLIGHTED, 255U),
62 ThemeColorId::PARTY_SOCIAL_TAB_HIGHLIGHTED_OUTLINE, 255U));
64 ThemeColorId::PARTY_SOCIAL_TAB_SELECTED, 255U),
66 ThemeColorId::PARTY_SOCIAL_TAB_SELECTED_OUTLINE, 255U));
82 const std::string &eventId =
event.getId();
83 if (eventId ==
"do invite")
92 _(
"Invited user %s to party."),
100 else if (eventId ==
"~do invite")
104 else if (eventId ==
"yes")
111 _(
"Party %s quit requested."),
119 else if (eventId ==
"~yes")
129 _(
"Member Invite to Party"),
131 strprintf(
_(
"Who would you like to invite to party %s?"),
145 strprintf(
_(
"Are you sure you want to leave party %s?"),
155 const int total0
A_UNUSED)
override final
161 if (
party ==
nullptr)
167 FOR_EACHP (Party::MemberList::const_iterator, it, members)
169 if ((*it)->getOnline())
void chatLog(std::string line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors)
virtual void leave() const =0
virtual void invite(const std::string &name) const =0
std::vector< PartyMember * > MemberList
const std::string & getName() const
void action(const ActionEvent &event)
void buildCounter(const int online0, const int total0)
SocialPartyTab(const Widget2 *const widget, Party *const party, const Opaque showBackground)
void createControls(AvatarListModel *const listModel, const Opaque showBackground)
ConfirmDialog * mConfirmDialog
TextDialog * mInviteDialog
void updateCounter() const
std::string mCounterString
void setHighlightedTabColor(const Color *const color1, const Color *const color2)
void setTabColor(const Color *const color1, const Color *const color2)
void setCaption(const std::string &caption)
void setSelectedTabColor(const Color *const color1, const Color *const color2)
const std::string & getText() const
#define FOR_EACHP(type, iter, array)
const bool IgnoreRecord_false
#define A_DELETE_COPY(func)
LocalPlayer * localPlayer
Net::PartyHandler * partyHandler
SocialWindow * socialWindow
static const std::string SOUND_REQUEST
std::string strprintf(const char *const format,...)
const bool TryRemoveColors_true