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/commands.cpp | |
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/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 14 |
1 files changed, 14 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 |