summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-25 19:55:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-25 19:55:16 +0300
commit6afbd218f72684241e34e3561c900f41a5542010 (patch)
tree82050ce2d6bb8e8ff5c7f0cfe4568fb5e49a8675 /src/gui
parent2c1a20a6abe784ac6bcb72b9b961db6b8567bd32 (diff)
downloadmanaverse-6afbd218f72684241e34e3561c900f41a5542010.tar.gz
manaverse-6afbd218f72684241e34e3561c900f41a5542010.tar.bz2
manaverse-6afbd218f72684241e34e3561c900f41a5542010.tar.xz
manaverse-6afbd218f72684241e34e3561c900f41a5542010.zip
Fix too big lines.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/killstats.cpp9
-rw-r--r--src/gui/windows/ministatuswindow.cpp3
-rw-r--r--src/gui/windows/statuswindow.cpp5
3 files changed, 11 insertions, 6 deletions
diff --git a/src/gui/windows/killstats.cpp b/src/gui/windows/killstats.cpp
index c745bc151..f3ebbdaa4 100644
--- a/src/gui/windows/killstats.cpp
+++ b/src/gui/windows/killstats.cpp
@@ -161,7 +161,8 @@ void KillStats::action(const ActionEvent &event)
mKillCounter = 0;
mExpCounter = 0;
mLine3->setCaption(strprintf("1%% = %d exp, avg mob for 1%%: %s",
- PlayerInfo::getAttribute(Attributes::PLAYER_EXP_NEEDED) / 100, "?"));
+ PlayerInfo::getAttribute(Attributes::PLAYER_EXP_NEEDED) / 100,
+ "?"));
// TRANSLATORS: kill stats window label
mLine4->setCaption(strprintf(_("Kills: %s, total exp: %s"), "?", "?"));
// TRANSLATORS: kill stats window label
@@ -303,7 +304,8 @@ void KillStats::recalcStats()
if (curTime != 0 && mLastHost == 0xFF6B66 && cur_time > 1)
{
- const int newExp = PlayerInfo::getAttribute(Attributes::PLAYER_EXP_NEEDED);
+ const int newExp = PlayerInfo::getAttribute(
+ Attributes::PLAYER_EXP_NEEDED);
if (m1minExpTime != 0)
m1minSpeed = newExp - m1minExpNum;
mStatsReUpdated = true;
@@ -347,7 +349,8 @@ void KillStats::update()
mExpTime1Label->setCaption(strprintf(_(" Time for next level: %s"),
toString(static_cast<float>((PlayerInfo::getAttribute(
Attributes::PLAYER_EXP_NEEDED) - PlayerInfo::getAttribute(
- Attributes::PLAYER_EXP)) / static_cast<float>(m1minSpeed))).c_str()));
+ Attributes::PLAYER_EXP)) /
+ static_cast<float>(m1minSpeed))).c_str()));
}
else
{
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index b2d89adef..c9c6248e6 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -365,7 +365,8 @@ void MiniStatusWindow::mouseMoved(MouseEvent &event)
}
const int exp = PlayerInfo::getAttribute(Attributes::PLAYER_EXP);
- const int expNeed = PlayerInfo::getAttribute(Attributes::PLAYER_EXP_NEEDED);
+ const int expNeed = PlayerInfo::getAttribute(
+ Attributes::PLAYER_EXP_NEEDED);
if (exp > expNeed)
{
textPopup->show(x + rect.x, y + rect.y, level, strprintf("%d/%d",
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index 26c7acb39..c762084fd 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -121,8 +121,9 @@ StatusWindow::StatusWindow() :
max = PlayerInfo::getAttribute(Attributes::PLAYER_EXP_NEEDED);
mXpBar = new ProgressBar(this,
- max ? static_cast<float>(PlayerInfo::getAttribute(Attributes::PLAYER_EXP))
- / static_cast<float>(max) : static_cast<float>(0),
+ max ?
+ static_cast<float>(PlayerInfo::getAttribute(Attributes::PLAYER_EXP)) /
+ static_cast<float>(max) : static_cast<float>(0),
80,
0,
ProgressColorId::PROG_EXP,