From fc2702efdf477a96761a6405e5d764c478b2905f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Sep 2014 23:16:37 +0300 Subject: Add manner field in debug window in target tab. --- src/gui/widgets/tabs/debugwindowtabs.cpp | 11 ++++++++++- src/gui/widgets/tabs/debugwindowtabs.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/widgets/tabs/debugwindowtabs.cpp b/src/gui/widgets/tabs/debugwindowtabs.cpp index 818879d95..d1590d4ce 100644 --- a/src/gui/widgets/tabs/debugwindowtabs.cpp +++ b/src/gui/widgets/tabs/debugwindowtabs.cpp @@ -282,7 +282,9 @@ TargetDebugTab::TargetDebugTab(const Widget2 *const widget) : // TRANSLATORS: debug window label mCriticalHitLabel(new Label(this, strprintf("%s ?", _("Critical hit:")))), // TRANSLATORS: debug window label - mKarmaLabel(new Label(this, strprintf("%s ?", _("Karma:")))) + mKarmaLabel(new Label(this, strprintf("%s ?", _("Karma:")))), + // TRANSLATORS: debug window label + mMannerLabel(new Label(this, strprintf("%s ?", _("Manner:")))) { LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); @@ -299,6 +301,7 @@ TargetDebugTab::TargetDebugTab(const Widget2 *const widget) : place(0, 9, mMaxHitLabel, 2); place(0, 10, mCriticalHitLabel, 2); place(0, 11, mKarmaLabel, 2); + place(0, 12, mMannerLabel, 2); place.getCell().matchColWidth(0, 0); place = h.getPlacer(0, 1); @@ -360,6 +363,9 @@ void TargetDebugTab::logic() mKarmaLabel->setCaption(strprintf("%s %d", // TRANSLATORS: debug window label _("Karma:"), target->getKarma())); + mMannerLabel->setCaption(strprintf("%s %d", + // TRANSLATORS: debug window label + _("Manner:"), target->getManner())); const int delay = target->getAttackDelay(); if (delay) @@ -399,6 +405,8 @@ void TargetDebugTab::logic() mCriticalHitLabel->setCaption(strprintf("%s ?", _("Critical hit:"))); // TRANSLATORS: debug window label mKarmaLabel->setCaption(strprintf("%s ?", _("Karma:"))); + // TRANSLATORS: debug window label + mMannerLabel->setCaption(strprintf("%s ?", _("Manner:"))); } mTargetLabel->adjustSize(); @@ -412,6 +420,7 @@ void TargetDebugTab::logic() mMaxHitLabel->adjustSize(); mCriticalHitLabel->adjustSize(); mKarmaLabel->adjustSize(); + mMannerLabel->adjustSize(); BLOCK_END("TargetDebugTab::logic") } diff --git a/src/gui/widgets/tabs/debugwindowtabs.h b/src/gui/widgets/tabs/debugwindowtabs.h index 9341353de..2de04d62e 100644 --- a/src/gui/widgets/tabs/debugwindowtabs.h +++ b/src/gui/widgets/tabs/debugwindowtabs.h @@ -103,6 +103,7 @@ class TargetDebugTab final : public DebugTab Label *mMaxHitLabel; Label *mCriticalHitLabel; Label *mKarmaLabel; + Label *mMannerLabel; }; class NetDebugTab final : public DebugTab -- cgit v1.2.3-60-g2f50