From c34858a4c7889483a8775c65c9bd1f357bca2572 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Jan 2016 17:46:28 +0300 Subject: Remove copy to clipboard action in npc dialog popup. --- src/actions/commands.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 84011b3ec..114144477 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -38,6 +38,8 @@ #ifdef EATHENA_SUPPORT #include "gui/shortcut/emoteshortcut.h" + +#include "gui/windows/npcdialog.h" #endif #include "gui/windows/chatwindow.h" @@ -57,6 +59,7 @@ #include "net/homunculushandler.h" #include "net/mailhandler.h" #include "net/net.h" +#include "net/npchandler.h" #endif #include "net/partyhandler.h" #include "net/serverfeatures.h" @@ -1133,4 +1136,22 @@ impHandler(craft) return true; } +impHandler(npcClipboard) +{ + int x = 0; + int y = 0; + + if (npcHandler) + { + NpcDialog *const dialog = npcHandler->getCurrentNpcDialog(); + + if (dialog && parse2Int(event.args, x, y)) + { + dialog->copyToClipboard(x, y); + return true; + } + } + return false; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50