diff options
author | David Athay <ko2fan@gmail.com> | 2008-03-12 10:44:11 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-03-12 10:44:11 +0000 |
commit | 3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf (patch) | |
tree | 7908381183fea865b53814e591aceae17c7a6cc2 /src/gui/guildwindow.h | |
parent | 16e99dc852affbc8b149d35037694dcdd25948e6 (diff) | |
download | mana-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.tar.gz mana-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.tar.bz2 mana-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.tar.xz mana-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.zip |
Added ability to quit guilds.
Diffstat (limited to 'src/gui/guildwindow.h')
-rw-r--r-- | src/gui/guildwindow.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/gui/guildwindow.h b/src/gui/guildwindow.h index 2f494a9a..e40727b6 100644 --- a/src/gui/guildwindow.h +++ b/src/gui/guildwindow.h @@ -3,7 +3,7 @@ * A file part of The Mana World * * Created by David Athay on 06/03/2007. - * + * * Copyright (c) 2007, The Mana World Development Team * All rights reserved. * @@ -56,7 +56,7 @@ public: * Constructor. */ GuildWindow(LocalPlayer *player); - + /** * Destructor. */ @@ -76,47 +76,52 @@ public: * Updates this dialog. */ void update(); - + /** * Create a new tab for a guild list. */ void newGuildTab(const std::string &guildName); - + /** * Display guild's member list to active tab */ void setTab(const std::string &guildName); - + /** * Update the contents of the active tab */ void updateTab(); - + /** * Check if the window is in focus */ bool isFocused(); - + /** * Create a dialog for accepting an invite */ void openAcceptDialog(const std::string &inviterName, const std::string &guildName); - + /** * Request member list */ void requestMemberList(short guildId); - + + /** + * Removes the selected tab + */ + void removeTab(); + protected: /** * Get selected guild tab * @return Returns selected guild */ short getSelectedGuild(); - + private: LocalPlayer *mPlayer; - gcn::Button *mGuildButton[2]; + gcn::Button *mGuildButton[3]; TextDialog *guildDialog; TextDialog *inviteDialog; ConfirmDialog *acceptDialog; |