summaryrefslogtreecommitdiff
path: root/src/gui/killstats.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 02:23:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit0153e8fa499b7bbdd712339bfb3921ead15a37a2 (patch)
tree0e12bc130aa40d3bc41f86e16754f060b450977e /src/gui/killstats.cpp
parent4c7a11b639ec94c8a32a9a52e99652c464745037 (diff)
downloadmanaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.gz
manaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.bz2
manaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.xz
manaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.zip
Add palette inheritance to label class.
Diffstat (limited to 'src/gui/killstats.cpp')
-rw-r--r--src/gui/killstats.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp
index 9763742ea..47409fe03 100644
--- a/src/gui/killstats.cpp
+++ b/src/gui/killstats.cpp
@@ -48,27 +48,27 @@ KillStats::KillStats():
mKillTimer(0),
mResetButton(new Button(this, _("Reset stats"), "reset", this)),
mTimerButton(new Button(this, _("Reset timer"), "timer", this)),
- mLine4(new Label(strprintf(_("Kills: %s, total exp: %s"), "?", "?"))),
- mLine5(new Label(strprintf(_("Avg Exp: %s"), "?"))),
- mLine6(new Label(strprintf(_("No. of avg mob to next level: %s"), "?"))),
- mLine7(new Label(strprintf(_("Kills/Min: %s, Exp/Min: %s"), "?", "?"))),
- mExpSpeed1Label(new Label(strprintf(ngettext("Exp speed per %d min: %s",
+ mLine4(new Label(this, strprintf(_("Kills: %s, total exp: %s"), "?", "?"))),
+ mLine5(new Label(this, strprintf(_("Avg Exp: %s"), "?"))),
+ mLine6(new Label(this, strprintf(_("No. of avg mob to next level: %s"), "?"))),
+ mLine7(new Label(this, strprintf(_("Kills/Min: %s, Exp/Min: %s"), "?", "?"))),
+ mExpSpeed1Label(new Label(this, strprintf(ngettext("Exp speed per %d min: %s",
"Exp speed per %d min: %s", 1), 1, "?"))),
- mExpTime1Label(new Label(strprintf(ngettext(
+ mExpTime1Label(new Label(this, strprintf(ngettext(
"Time for next level per %d min: %s",
"Time for next level per %d min: %s", 1), 1, "?"))),
- mExpSpeed5Label(new Label(strprintf(ngettext("Exp speed per %d min: %s",
+ mExpSpeed5Label(new Label(this, strprintf(ngettext("Exp speed per %d min: %s",
"Exp speed per %d min: %s", 5), 5, "?"))),
- mExpTime5Label(new Label(strprintf(ngettext(
+ mExpTime5Label(new Label(this, strprintf(ngettext(
"Time for next level per %d min: %s",
"Time for next level per %d min: %s", 5), 5, "?"))),
- mExpSpeed15Label(new Label(strprintf(ngettext("Exp speed per %d min: %s",
+ mExpSpeed15Label(new Label(this, strprintf(ngettext("Exp speed per %d min: %s",
"Exp speed per %d min: %s", 15), 15, "?"))),
- mExpTime15Label(new Label(strprintf(ngettext(
+ mExpTime15Label(new Label(this, strprintf(ngettext(
"Time for next level per %d min: %s",
"Time for next level per %d min: %s", 15), 15, "?"))),
- mLastKillExpLabel(new Label(strprintf("%s ?", _("Last kill exp:")))),
- mTimeBeforeJackoLabel(new Label(strprintf(
+ mLastKillExpLabel(new Label(this, strprintf("%s ?", _("Last kill exp:")))),
+ mTimeBeforeJackoLabel(new Label(this, strprintf(
"%s ?", _("Time before jacko spawn:")))),
m1minExpTime(0),
m1minExpNum(0),
@@ -100,14 +100,14 @@ KillStats::KillStats():
if (!xpNextLevel)
xpNextLevel = 1;
- mLine1 = new Label(strprintf(_("Level: %d at %f%%"),
+ mLine1 = new Label(this, strprintf(_("Level: %d at %f%%"),
player_node->getLevel(), static_cast<double>(xp)
/ static_cast<double>(xpNextLevel) * 100.0));
- mLine2 = new Label(strprintf(_("Exp: %d/%d Left: %d"),
+ mLine2 = new Label(this, strprintf(_("Exp: %d/%d Left: %d"),
xp, xpNextLevel, xpNextLevel - xp));
- mLine3 = new Label(strprintf(_("1%% = %d exp, avg mob for 1%%: %s"),
+ mLine3 = new Label(this, strprintf(_("1%% = %d exp, avg mob for 1%%: %s"),
xpNextLevel / 100, "?"));
place(0, 0, mLine1, 6).setPadding(0);