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 | |
parent | e1233ab2508be02b0bd59c90f42b1c3406b60564 (diff) | |
download | manaplus-c34858a4c7889483a8775c65c9bd1f357bca2572.tar.gz manaplus-c34858a4c7889483a8775c65c9bd1f357bca2572.tar.bz2 manaplus-c34858a4c7889483a8775c65c9bd1f357bca2572.tar.xz manaplus-c34858a4c7889483a8775c65c9bd1f357bca2572.zip |
Remove copy to clipboard action in npc dialog popup.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 21 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 22 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 diff --git a/src/actions/commands.h b/src/actions/commands.h index d901683b1..451f84285 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -93,6 +93,7 @@ namespace Actions decHandler(selectSkillLevel); decHandler(skill); decHandler(craft); + decHandler(npcClipboard); } // namespace Actions #undef decHandler |