diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-21 22:15:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-21 22:15:31 +0300 |
commit | 194cda54f0bb15befcb0449152957b16f922bb49 (patch) | |
tree | b2f3b77cfda79d0351dff170f877c75e24495d91 | |
parent | aa011a1506e997a7f185f3bcdedc87ea21ed6dad (diff) | |
download | manaplus-194cda54f0bb15befcb0449152957b16f922bb49.tar.gz manaplus-194cda54f0bb15befcb0449152957b16f922bb49.tar.bz2 manaplus-194cda54f0bb15befcb0449152957b16f922bb49.tar.xz manaplus-194cda54f0bb15befcb0449152957b16f922bb49.zip |
In social window, guild menu add command for change guild notice.
-rw-r--r-- | src/actions/chat.cpp | 9 | ||||
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index a8a7ac827..0a922daea 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -651,6 +651,15 @@ impHandler(guildNotice) if (!localPlayer) return false; const std::string args = event.args; + if (args.empty()) + { + // TRANSLATORS: dialog header + inputActionReplayListener.openDialog(_("Guild notice"), + "", + InputAction::GUILD_NOTICE); + return true; + } + const std::string str1 = args.substr(0, 60); std::string str2(""); if (args.size() > 60) diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index e14b40cfc..28034b9be 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -3442,6 +3442,10 @@ void PopupMenu::showGuildPopup() addSocialMenu(); // TRANSLATORS: popup menu item + // TRANSLATORS: change guild notice message + mBrowserBox->addRow("/guildnotice", _("Change notice")); + + // TRANSLATORS: popup menu item // TRANSLATORS: close menu mBrowserBox->addRow("cancel", _("Cancel")); showPopup(mX, mY); |