summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-22 19:16:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-22 19:25:44 +0300
commit09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df (patch)
tree4d6667c430fa75dd020a0c55272c4a110cfce841 /src/actions/commands.cpp
parentc10c3b3e5ae49719a6f52873b003ef2643df3e60 (diff)
downloadmanaplus-09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df.tar.gz
manaplus-09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df.tar.bz2
manaplus-09e8d7ba7a5e29e4991b21056e358a7dcf0dd2df.tar.xz
manaplus-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.cpp14
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