diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-30 23:16:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-30 23:16:37 +0300 |
commit | fc2702efdf477a96761a6405e5d764c478b2905f (patch) | |
tree | 844458098edfeb7736c4c463141a64eea4996116 /src/gui | |
parent | afb92b74a224a56ea51a6e8053a0dc69ee0601ff (diff) | |
download | plus-fc2702efdf477a96761a6405e5d764c478b2905f.tar.gz plus-fc2702efdf477a96761a6405e5d764c478b2905f.tar.bz2 plus-fc2702efdf477a96761a6405e5d764c478b2905f.tar.xz plus-fc2702efdf477a96761a6405e5d764c478b2905f.zip |
Add manner field in debug window in target tab.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/tabs/debugwindowtabs.cpp | 11 | ||||
-rw-r--r-- | src/gui/widgets/tabs/debugwindowtabs.h | 1 |
2 files changed, 11 insertions, 1 deletions
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 |