diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-02-27 08:56:38 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-27 09:07:05 -0700 |
commit | 12f9c5639d74747d5e22ec29c1df8d09256b8772 (patch) | |
tree | 7bc345aadecc86c395750acb5c097dd17f37a8ad /src/gui/socialwindow.cpp | |
parent | 01c3edf0d8692ecf6c45ae4e04abf2d0b1f41c6b (diff) | |
download | mana-12f9c5639d74747d5e22ec29c1df8d09256b8772.tar.gz mana-12f9c5639d74747d5e22ec29c1df8d09256b8772.tar.bz2 mana-12f9c5639d74747d5e22ec29c1df8d09256b8772.tar.xz mana-12f9c5639d74747d5e22ec29c1df8d09256b8772.zip |
Disable guilds for eAthena for now
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/gui/socialwindow.cpp')
-rw-r--r-- | src/gui/socialwindow.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index 26184cae..5da8018c 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -235,7 +235,8 @@ public: mBrowserBox->setOpaque(false); mBrowserBox->setLinkHandler(this); - mBrowserBox->addRow(strprintf("@@guild|%s@@", _("Create Guild"))); + if (Net::getGuildHandler()->isSupported()) + mBrowserBox->addRow(strprintf("@@guild|%s@@", _("Create Guild"))); mBrowserBox->addRow(strprintf("@@party|%s@@", _("Create Party"))); mBrowserBox->addRow("##3---"); mBrowserBox->addRow(strprintf("@@cancel|%s@@", _("Cancel"))); @@ -425,7 +426,10 @@ void SocialWindow::action(const gcn::ActionEvent &event) } else if (event.getId() == "create") { - mCreatePopup->show(mCreateButton); + if (Net::getGuildHandler()->isSupported()) + mCreatePopup->show(mCreateButton); + else + showPartyCreate(); } else if (event.getId() == "invite") { @@ -564,7 +568,7 @@ void SocialWindow::showPartyCreate() } mPartyCreateDialog = new TextDialog(_("Party Name"), - _("Choose your part's name."), this); + _("Choose your party's name."), this); mPartyCreateDialog->setOKButtonActionId("create party"); mPartyCreateDialog->addActionListener(this); } |