diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/partywindow.cpp | 10 | ||||
-rw-r--r-- | src/gui/partywindow.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp index b13f4b0b..52a7b97e 100644 --- a/src/gui/partywindow.cpp +++ b/src/gui/partywindow.cpp @@ -65,6 +65,16 @@ PartyWindow::~PartyWindow() delete_all(mMembers); } +void PartyWindow::setPartyName(std::string name) +{ + setCaption(strprintf(_("Party (%s)"), name.c_str())); +} + +void PartyWindow::clearPartyName() +{ + setCaption(_("Party")); +} + PartyMember *PartyWindow::findMember(int id) const { PartyList::const_iterator it = mMembers.find(id); diff --git a/src/gui/partywindow.h b/src/gui/partywindow.h index 65e8d772..c3fe75f4 100644 --- a/src/gui/partywindow.h +++ b/src/gui/partywindow.h @@ -65,6 +65,10 @@ class PartyWindow : public Window, gcn::ActionListener */ ~PartyWindow(); + void setPartyName(std::string name); + + void clearPartyName(); + /** * Find a party member based on ID. Returns NULL if not found. */ |