diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-26 02:41:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-26 02:41:35 +0300 |
commit | 52fdc7544c117b058fb1321a24795d64fe3d3887 (patch) | |
tree | 903955c78f5911e09c8cb9a7cf00c720de842f4d /src/gui/windows | |
parent | 3a97fc3fd6f316882af762017443c410632d65eb (diff) | |
download | manaplus-52fdc7544c117b058fb1321a24795d64fe3d3887.tar.gz manaplus-52fdc7544c117b058fb1321a24795d64fe3d3887.tar.bz2 manaplus-52fdc7544c117b058fb1321a24795d64fe3d3887.tar.xz manaplus-52fdc7544c117b058fb1321a24795d64fe3d3887.zip |
Read all fields from new quest packets and send to quests and skills window.
But for now not using this fields.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/questswindow.cpp | 8 | ||||
-rw-r--r-- | src/gui/windows/questswindow.h | 6 | ||||
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 10 | ||||
-rw-r--r-- | src/gui/windows/skilldialog.h | 6 |
4 files changed, 23 insertions, 7 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp index fd6678e55..308d38da5 100644 --- a/src/gui/windows/questswindow.cpp +++ b/src/gui/windows/questswindow.cpp @@ -336,9 +336,13 @@ void QuestsWindow::action(const ActionEvent &event) } } -void QuestsWindow::updateQuest(const int var, const int val) +void QuestsWindow::updateQuest(const int var, + const int val1, + const int val2 A_UNUSED, + const int val3 A_UNUSED, + const int time A_UNUSED) { - mVars[var] = val; + mVars[var] = val1; } void QuestsWindow::rebuild(const bool playSound) diff --git a/src/gui/windows/questswindow.h b/src/gui/windows/questswindow.h index ec2f7da42..08ef852d9 100644 --- a/src/gui/windows/questswindow.h +++ b/src/gui/windows/questswindow.h @@ -59,7 +59,11 @@ class QuestsWindow final : public Window, void action(const ActionEvent &event) override final; - void updateQuest(const int var, const int val); + void updateQuest(const int var, + const int val1, + const int val2, + const int val3, + const int time); void rebuild(const bool playSound); diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index a6ede8245..6aa4c8afb 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -682,7 +682,11 @@ void SkillDialog::updateTabSelection() } } -void SkillDialog::updateQuest(const int var, const int val) +void SkillDialog::updateQuest(const int var, + const int val1, + const int val2 A_UNUSED, + const int val3 A_UNUSED, + const int time A_UNUSED) { const int id = var + SKILL_VAR_MIN_ID; const SkillMap::const_iterator it = mSkills.find(id); @@ -692,8 +696,8 @@ void SkillDialog::updateQuest(const int var, const int val) SkillInfo *const info = it->second; if (info) { - PlayerInfo::setSkillLevel(id, val); - info->level = val; + PlayerInfo::setSkillLevel(id, val1); + info->level = val1; info->update(); } } diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h index a24f44a5f..3bd5f1d4a 100644 --- a/src/gui/windows/skilldialog.h +++ b/src/gui/windows/skilldialog.h @@ -124,7 +124,11 @@ class SkillDialog final : public Window, void updateTabSelection(); - void updateQuest(const int var, const int val); + void updateQuest(const int var, + const int val1, + const int val2, + const int val3, + const int time); void playUpdateEffect(const int id) const; |