summaryrefslogtreecommitdiff
path: root/src/gui/debugwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-04 16:09:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-04 16:09:49 +0300
commit28e10f7225551b1dc2e1f35b8d4d145db528e4c7 (patch)
treefc35085fa21f9ea06a03782a98aa3f7439d7e094 /src/gui/debugwindow.cpp
parent33c31fbec099fbd764505f0a1f9729634d13aac8 (diff)
downloadManaVerse-28e10f7225551b1dc2e1f35b8d4d145db528e4c7.tar.gz
ManaVerse-28e10f7225551b1dc2e1f35b8d4d145db528e4c7.tar.bz2
ManaVerse-28e10f7225551b1dc2e1f35b8d4d145db528e4c7.tar.xz
ManaVerse-28e10f7225551b1dc2e1f35b8d4d145db528e4c7.zip
Add "target type" filed in debug window.
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r--src/gui/debugwindow.cpp23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp
index 1a957345a..781068c6c 100644
--- a/src/gui/debugwindow.cpp
+++ b/src/gui/debugwindow.cpp
@@ -292,6 +292,8 @@ TargetDebugTab::TargetDebugTab(const Widget2 *const widget) :
DebugTab(widget),
mTargetLabel(new Label(this, strprintf("%s ?", _("Target:")))),
mTargetIdLabel(new Label(this, strprintf("%s ? ", _("Target Id:")))),
+ mTargetTypeLabel(new Label(this, strprintf(
+ "%s ? ", _("Target type:")))),
mTargetLevelLabel(new Label(this, strprintf("%s ?", _("Target level:")))),
mTargetRaceLabel(new Label(this, strprintf("%s ?", _("Target race:")))),
mTargetPartyLabel(new Label(this, strprintf("%s ?", _("Target party:")))),
@@ -306,14 +308,15 @@ TargetDebugTab::TargetDebugTab(const Widget2 *const widget) :
place(0, 0, mTargetLabel, 2);
place(0, 1, mTargetIdLabel, 2);
- place(0, 2, mTargetLevelLabel, 2);
- place(0, 3, mTargetRaceLabel, 2);
- place(0, 4, mAttackDelayLabel, 2);
- place(0, 5, mTargetPartyLabel, 2);
- place(0, 6, mTargetGuildLabel, 2);
- place(0, 7, mMinHitLabel, 2);
- place(0, 8, mMaxHitLabel, 2);
- place(0, 9, mCriticalHitLabel, 2);
+ place(0, 2, mTargetTypeLabel, 2);
+ place(0, 3, mTargetLevelLabel, 2);
+ place(0, 4, mTargetRaceLabel, 2);
+ place(0, 5, mAttackDelayLabel, 2);
+ place(0, 6, mTargetPartyLabel, 2);
+ place(0, 7, mTargetGuildLabel, 2);
+ place(0, 8, mMinHitLabel, 2);
+ place(0, 9, mMaxHitLabel, 2);
+ place(0, 10, mCriticalHitLabel, 2);
place.getCell().matchColWidth(0, 0);
place = h.getPlacer(0, 1);
@@ -332,6 +335,8 @@ void TargetDebugTab::logic()
mTargetIdLabel->setCaption(strprintf("%s %d",
_("Target Id:"), target->getId()));
+ mTargetTypeLabel->setCaption(strprintf("%s %d",
+ _("Target type:"), target->getSubType()));
if (target->getLevel())
{
mTargetLevelLabel->setCaption(strprintf("%s %d",
@@ -375,6 +380,7 @@ void TargetDebugTab::logic()
{
mTargetLabel->setCaption(strprintf("%s ?", _("Target:")));
mTargetIdLabel->setCaption(strprintf("%s ?", _("Target Id:")));
+ mTargetTypeLabel->setCaption(strprintf("%s ?", _("Target type:")));
mTargetLevelLabel->setCaption(strprintf("%s ?", _("Target Level:")));
mTargetPartyLabel->setCaption(strprintf("%s ?", _("Target Party:")));
mTargetGuildLabel->setCaption(strprintf("%s ?", _("Target Guild:")));
@@ -386,6 +392,7 @@ void TargetDebugTab::logic()
mTargetLabel->adjustSize();
mTargetIdLabel->adjustSize();
+ mTargetTypeLabel->adjustSize();
mTargetLevelLabel->adjustSize();
mTargetPartyLabel->adjustSize();
mTargetGuildLabel->adjustSize();