summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-15 19:55:42 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-15 19:55:42 +0300
commit75d94c3c01eaa828d8e96767b06e3d0c3019ffa3 (patch)
treebe72fab95329eff4da04f2dbe2e56dec2781e47b /src/gui/windows
parenta520caf57d759e725d8e63d1c47d9b3d5e779324 (diff)
downloadmanaplus-75d94c3c01eaa828d8e96767b06e3d0c3019ffa3.tar.gz
manaplus-75d94c3c01eaa828d8e96767b06e3d0c3019ffa3.tar.bz2
manaplus-75d94c3c01eaa828d8e96767b06e3d0c3019ffa3.tar.xz
manaplus-75d94c3c01eaa828d8e96767b06e3d0c3019ffa3.zip
Change cast offset in skills dialog.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/skilldialog.cpp20
-rw-r--r--src/gui/windows/skilldialog.h6
2 files changed, 26 insertions, 0 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index d002f93aa..41f63899e 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -1161,3 +1161,23 @@ void SkillDialog::selectSkillCastType(const int skillId,
info->customCastType = type;
info->update();
}
+
+void SkillDialog::setSkillOffsetX(const int skillId,
+ const int offset)
+{
+ SkillInfo *const info = getSkill(skillId);
+ if (!info)
+ return;
+ info->customOffsetX = offset;
+ info->update();
+}
+
+void SkillDialog::setSkillOffsetY(const int skillId,
+ const int offset)
+{
+ SkillInfo *const info = getSkill(skillId);
+ if (!info)
+ return;
+ info->customOffsetY = offset;
+ info->update();
+}
diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h
index aa3f479c1..4adf813af 100644
--- a/src/gui/windows/skilldialog.h
+++ b/src/gui/windows/skilldialog.h
@@ -165,6 +165,12 @@ class SkillDialog final : public Window,
void selectSkillCastType(const int skillId,
const CastTypeT type);
+ void setSkillOffsetX(const int skillId,
+ const int offset);
+
+ void setSkillOffsetY(const int skillId,
+ const int offset);
+
private:
static void useSkillDefault(const SkillInfo *const info,
const AutoTarget autoTarget,