diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-22 19:16:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-22 19:25:44 +0300 |
commit | 09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df (patch) | |
tree | 4d6667c430fa75dd020a0c55272c4a110cfce841 /src/actions | |
parent | c10c3b3e5ae49719a6f52873b003ef2643df3e60 (diff) | |
download | mv-09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df.tar.gz mv-09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df.tar.bz2 mv-09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df.tar.xz mv-09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df.zip |
Add chat command /selectskilllevel for select skill level in skills dialog.
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 |