summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 17:21:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 17:21:20 +0300
commitc1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64 (patch)
tree4a304edf687dc9b32f640b3dab714baefb3715b5
parent087a2f8802bb91ca06d4d82af4a132dd9a70267e (diff)
downloadManaVerse-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.tar.gz
ManaVerse-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.tar.bz2
ManaVerse-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.tar.xz
ManaVerse-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.zip
Remove invite and leave buttons from social window.
-rw-r--r--src/gui/windows/socialwindow.cpp16
-rw-r--r--src/gui/windows/socialwindow.h2
2 files changed, 4 insertions, 14 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 63a88c06f..647fceb23 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -75,10 +75,6 @@ SocialWindow::SocialWindow() :
mCreatePopup(CREATEWIDGETR0(CreatePartyPopup)),
// TRANSLATORS: social window button
mCreateButton(new Button(this, _("Create"), "create", this)),
- // TRANSLATORS: social window button
- mInviteButton(new Button(this, _("Invite"), "invite", this)),
- // TRANSLATORS: social window button
- mLeaveButton(new Button(this, _("Leave"), "leave", this)),
mCountLabel(new Label(this, "1000 / 1000")),
mTabs(CREATEWIDGETR(TabbedArea, this)),
mMap(nullptr),
@@ -107,10 +103,8 @@ void SocialWindow::postInit()
setupWindow->registerWindowForReset(this);
place(0, 0, mCreateButton);
- place(1, 0, mInviteButton);
- place(2, 0, mLeaveButton);
place(0, 1, mCountLabel);
- place(0, 2, mTabs, 4, 4);
+ place(0, 2, mTabs, 2, 4);
widgetResized(Event(nullptr));
@@ -583,12 +577,10 @@ void SocialWindow::resetDamage(const std::string &name)
void SocialWindow::updateButtons()
{
- if (!mTabs)
- return;
+// if (!mTabs)
+// return;
- const bool hasTabs = mTabs->getNumberOfTabs() > 0;
- mInviteButton->setEnabled(hasTabs);
- mLeaveButton->setEnabled(hasTabs);
+// const bool hasTabs = mTabs->getNumberOfTabs() > 0;
}
void SocialWindow::updatePortals()
diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h
index b65ad02df..676ede11d 100644
--- a/src/gui/windows/socialwindow.h
+++ b/src/gui/windows/socialwindow.h
@@ -160,8 +160,6 @@ class SocialWindow final : public Window,
CreatePartyPopup *mCreatePopup A_NONNULLPOINTER;
Button *mCreateButton A_NONNULLPOINTER;
- Button *mInviteButton A_NONNULLPOINTER;
- Button *mLeaveButton A_NONNULLPOINTER;
Label *mCountLabel A_NONNULLPOINTER;
TabbedArea *mTabs A_NONNULLPOINTER;
Map *mMap;