diff options
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 16 |
1 files changed, 15 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 |