From 9f2993aaa89a4a837455e78a4e00826a779b036c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Aug 2016 22:05:19 +0300 Subject: Add baic menu into social window menu button. Allow create/leave party or guild. --- src/actions/chat.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/actions/chat.cpp') 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 { -- cgit v1.2.3-60-g2f50