diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-27 17:46:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-27 17:46:28 +0300 |
commit | c34858a4c7889483a8775c65c9bd1f357bca2572 (patch) | |
tree | 65f7d0492116d15bcb719800c86903e8d52e9311 /src/actions/commands.cpp | |
parent | e1233ab2508be02b0bd59c90f42b1c3406b60564 (diff) | |
download | manaverse-c34858a4c7889483a8775c65c9bd1f357bca2572.tar.gz manaverse-c34858a4c7889483a8775c65c9bd1f357bca2572.tar.bz2 manaverse-c34858a4c7889483a8775c65c9bd1f357bca2572.tar.xz manaverse-c34858a4c7889483a8775c65c9bd1f357bca2572.zip |
Remove copy to clipboard action in npc dialog popup.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
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 |