diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 16 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index b25600835..98db8d57f 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -37,6 +37,8 @@ #include "gui/viewport.h" +#include "gui/popups/popupmenu.h" + #ifdef EATHENA_SUPPORT #include "gui/shortcut/emoteshortcut.h" @@ -1174,7 +1176,6 @@ impHandler(skill) } else { - logger->log("text: " + text); skillDialog->useSkill(skillId, AutoTarget_true, level, @@ -1621,4 +1622,17 @@ impHandlerE(adoptChild) #endif } +impHandler(showSkillLevels) +{ + const std::string args = event.args; + if (args.empty()) + return false; + const SkillInfo *restrict const skill = skillDialog->getSkill( + atoi(args.c_str())); + if (!skill) + return false; + popupMenu->showSkillLevelPopup(skill); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index ea7e7d278..4f701de37 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -141,6 +141,7 @@ namespace Actions decHandler(commandGuildRecall); decHandler(mailTo); decHandler(adoptChild); + decHandler(showSkillLevels); } // namespace Actions #undef decHandler |