summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-27 22:00:16 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-27 22:00:16 +0300
commit9b68f83d94a706de6ba932fe7bfb7f5158cfecb1 (patch)
tree4fd622a97985a01dd98d28cc0cfacf032fb77411 /src/being
parent70b413e8786a871438e1a3240b843deaab2e597e (diff)
downloadmanaverse-9b68f83d94a706de6ba932fe7bfb7f5158cfecb1.tar.gz
manaverse-9b68f83d94a706de6ba932fe7bfb7f5158cfecb1.tar.bz2
manaverse-9b68f83d94a706de6ba932fe7bfb7f5158cfecb1.tar.xz
manaverse-9b68f83d94a706de6ba932fe7bfb7f5158cfecb1.zip
Add option for show badges at top or char or after name.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp4
-rw-r--r--src/being/being.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 2d731f77a..4112ef634 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -118,6 +118,7 @@ bool Being::mHideErased = false;
Move Being::mMoveNames = Move_false;
bool Being::mUseDiagonal = true;
bool Being::mShowBadges = true;
+bool Being::mShowBadgesTop = true;
int Being::mAwayEffect = -1;
std::list<BeingCacheEntry*> beingInfoCache;
@@ -1849,7 +1850,7 @@ void Being::drawEmotion(Graphics *const graphics,
mAnimationEffect->draw(graphics, px, py);
if (mTeamBadge && mShowBadges)
{
- if (mDispName && gui)
+ if (!mShowBadgesTop && mDispName && gui)
{
Font *const font = gui->getFont();
mTeamBadge->draw(graphics,
@@ -2374,6 +2375,7 @@ void Being::reReadConfig()
mMoveNames = fromBool(config.getBoolValue("moveNames"), Move);
mUseDiagonal = config.getBoolValue("useDiagonalSpeed");
mShowBadges = config.getBoolValue("showBadges");
+ mShowBadgesTop = config.getBoolValue("showBadgesTop");
mUpdateConfigTime = cur_time;
}
diff --git a/src/being/being.h b/src/being/being.h
index e73789434..e58cbcb90 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -1104,6 +1104,7 @@ class Being notfinal : public ActorSprite,
static Move mMoveNames;
static bool mUseDiagonal;
static bool mShowBadges;
+ static bool mShowBadgesTop;
static int mAwayEffect;
unsigned int mMoveTime;