summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-03 00:02:03 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-03 00:02:03 +0300
commit549c16295f341e51635a259695f14eb775aac730 (patch)
tree09d73cd30e95ce73ebf0d1438c4f1915366558ef /src/gui
parent010fe80b3e44cee70422a1f19367f7630fd8a7ab (diff)
downloadplus-549c16295f341e51635a259695f14eb775aac730.tar.gz
plus-549c16295f341e51635a259695f14eb775aac730.tar.bz2
plus-549c16295f341e51635a259695f14eb775aac730.tar.xz
plus-549c16295f341e51635a259695f14eb775aac730.zip
Add min, max, critical hits to debug window.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/debugwindow.cpp16
-rw-r--r--src/gui/debugwindow.h3
2 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp
index e9c79a890..cbfce25dc 100644
--- a/src/gui/debugwindow.cpp
+++ b/src/gui/debugwindow.cpp
@@ -246,6 +246,9 @@ TargetDebugTab::TargetDebugTab()
mTargetPartyLabel = new Label(strprintf("%s ?", _("Target Party:")));
mTargetGuildLabel = new Label(strprintf("%s ?", _("Target Guild:")));
mAttackDelayLabel = new Label(strprintf("%s ?", _("Attack delay:")));
+ mMinHitLabel = new Label(strprintf("%s ?", _("Minimal hit:")));
+ mMaxHitLabel = new Label(strprintf("%s ?", _("Maximum hit:")));
+ mCriticalHitLabel = new Label(strprintf("%s ?", _("Critical hit:")));
place(0, 0, mTargetLabel, 2);
place(0, 1, mTargetIdLabel, 2);
@@ -253,6 +256,9 @@ TargetDebugTab::TargetDebugTab()
place(0, 3, mAttackDelayLabel, 2);
place(0, 4, mTargetPartyLabel, 2);
place(0, 5, mTargetGuildLabel, 2);
+ place(0, 6, mMinHitLabel, 2);
+ place(0, 7, mMaxHitLabel, 2);
+ place(0, 8, mCriticalHitLabel, 2);
place.getCell().matchColWidth(0, 0);
place = h.getPlacer(0, 1);
@@ -288,6 +294,13 @@ void TargetDebugTab::logic()
mTargetGuildLabel->setCaption(strprintf("%s %s", _("Target Guild:"),
target->getGuildName().c_str()));
+ mMinHitLabel->setCaption(strprintf("%s %d",
+ _("Minimal hit:"), target->getMinHit()));
+ mMaxHitLabel->setCaption(strprintf("%s %d",
+ _("Maximum hit:"), target->getMaxHit()));
+ mCriticalHitLabel->setCaption(strprintf("%s %d",
+ _("Critical hit:"), target->getCriticalHit()));
+
const int delay = target->getAttackDelay();
if (delay)
{
@@ -308,6 +321,9 @@ void TargetDebugTab::logic()
mTargetPartyLabel->setCaption(strprintf("%s ?", _("Target Party:")));
mTargetGuildLabel->setCaption(strprintf("%s ?", _("Target Guild:")));
mAttackDelayLabel->setCaption(strprintf("%s ?", _("Attack delay:")));
+ mMinHitLabel->setCaption(strprintf("%s ?", _("Minimal hit:")));
+ mMaxHitLabel->setCaption(strprintf("%s ?", _("Maximum hit:")));
+ mCriticalHitLabel->setCaption(strprintf("%s ?", _("Critical hit:")));
}
mTargetLabel->adjustSize();
diff --git a/src/gui/debugwindow.h b/src/gui/debugwindow.h
index b19a18450..b3432946b 100644
--- a/src/gui/debugwindow.h
+++ b/src/gui/debugwindow.h
@@ -84,6 +84,9 @@ class TargetDebugTab : public DebugTab
Label *mTargetPartyLabel;
Label *mTargetGuildLabel;
Label *mAttackDelayLabel;
+ Label *mMinHitLabel;
+ Label *mMaxHitLabel;
+ Label *mCriticalHitLabel;
};
class NetDebugTab : public DebugTab