diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-18 22:05:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-18 22:05:19 +0300 |
commit | 9f2993aaa89a4a837455e78a4e00826a779b036c (patch) | |
tree | c36c593f320c9590a04b0791d1239ae4ebb94f57 /src/actions | |
parent | 215ce3e68738159ec98056874a4ad86e451418d0 (diff) | |
download | manaplus-9f2993aaa89a4a837455e78a4e00826a779b036c.tar.gz manaplus-9f2993aaa89a4a837455e78a4e00826a779b036c.tar.bz2 manaplus-9f2993aaa89a4a837455e78a4e00826a779b036c.tar.xz manaplus-9f2993aaa89a4a837455e78a4e00826a779b036c.zip |
Add baic menu into social window menu button.
Allow create/leave party or guild.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/chat.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index add653cb0..3bf231d7c 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -30,6 +30,8 @@ #include "gui/windows/chatwindow.h" +#include "listeners/inputactionreplaylistener.h" + #include "net/charserverhandler.h" #include "net/chathandler.h" #include "net/guildhandler.h" @@ -336,9 +338,10 @@ impHandler(createParty) if (event.args.empty()) { - // TRANSLATORS: create party message - event.tab->chatLog(_("Party name is missing."), - ChatMsgType::BY_SERVER); + // TRANSLATORS: dialog header + inputActionReplayListener.openDialog(_("Create party"), + "", + InputAction::CREATE_PARTY); } else { @@ -359,9 +362,10 @@ impHandler(createGuild) if (event.args.empty()) { - // TRANSLATORS: create guild message - event.tab->chatLog(_("Guild name is missing."), - ChatMsgType::BY_SERVER); + // TRANSLATORS: dialog header + inputActionReplayListener.openDialog(_("Create guild"), + "", + InputAction::CREATE_GUILD); } else { |