diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-10-11 23:09:23 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-10-11 23:09:23 +0000 |
commit | 9c7c7093b94e908efff0798004c2595a8b5c0fcd (patch) | |
tree | becf8282418c64134ac8250d941570ce36e1c511 /src/gui/windows/socialwindow.h | |
parent | 089532258084660366fdeb11ec5d25b115fe6b0e (diff) | |
download | plus-9c7c7093b94e908efff0798004c2595a8b5c0fcd.tar.gz plus-9c7c7093b94e908efff0798004c2595a8b5c0fcd.tar.bz2 plus-9c7c7093b94e908efff0798004c2595a8b5c0fcd.tar.xz plus-9c7c7093b94e908efff0798004c2595a8b5c0fcd.zip |
Add confirmation dialog for leaving guild
Memory may not be freed properly, also code is IMO ugly. See !109 for the other way of implementing this (unrelated). Was done in socialWindow as the join confirmation is already there.
****
mana/plus!110
Diffstat (limited to 'src/gui/windows/socialwindow.h')
-rw-r--r-- | src/gui/windows/socialwindow.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h index 63310d00d..4014506c2 100644 --- a/src/gui/windows/socialwindow.h +++ b/src/gui/windows/socialwindow.h @@ -70,6 +70,8 @@ class SocialWindow final : public Window, const int guildId, const std::string &restrict inviterName); + void confirmGuildLeave(); + void showPartyInvite(const std::string &restrict partyName, const std::string &restrict inviter, const int partyId); @@ -144,6 +146,7 @@ class SocialWindow final : public Window, int mGuildInvited; ConfirmDialog *mGuildAcceptDialog; + ConfirmDialog *mGuildLeaveDialog; TextDialog *mGuildCreateDialog; std::string mPartyInviter; GuildMap mGuilds; |