diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 14 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 337174c25..5dcbc3d93 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -40,6 +40,7 @@ #include "gui/viewport.h" #include "gui/windows/chatwindow.h" +#include "gui/windows/skilldialog.h" #include "gui/windows/socialwindow.h" #include "gui/windows/outfitwindow.h" @@ -1062,4 +1063,17 @@ impHandler(slide) return false; } +impHandler(selectSkillLevel) +{ + int skill = 0; + int level = 0; + + if (skillDialog && parse2Int(event.args, skill, level)) + { + skillDialog->selectSkillLevel(skill, level); + return true; + } + return false; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index c3102b8c0..0e71f409c 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -90,6 +90,7 @@ namespace Actions decHandler(confGet); decHandler(serverConfGet); decHandler(slide); + decHandler(selectSkillLevel); } // namespace Actions #undef decHandler |