diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-31 14:23:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-31 14:23:11 +0300 |
commit | d7c67fa2b6faa3e81269244224da4b72f045d659 (patch) | |
tree | 596010d034e44ff46eabccca3c77d995626fca88 /src/gui/widgets/avatarlistbox.cpp | |
parent | b072723595e729eed79199f246439ffed62cdbb5 (diff) | |
download | manaverse-d7c67fa2b6faa3e81269244224da4b72f045d659.tar.gz manaverse-d7c67fa2b6faa3e81269244224da4b72f045d659.tar.bz2 manaverse-d7c67fa2b6faa3e81269244224da4b72f045d659.tar.xz manaverse-d7c67fa2b6faa3e81269244224da4b72f045d659.zip |
Convert ProgressColorId enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 5c2f0a65d..d5b6cbaf8 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -179,7 +179,7 @@ void AvatarListBox::draw(Graphics *graphics) const bool isPoison = a->getPoison(); if (a->getMaxHp()) { - const int themeColor = (isPoison + const ProgressColorIdT themeColor = (isPoison ? ProgressColorId::PROG_HP_POISON : ProgressColorId::PROG_HP); Color color = Theme::getProgressColor( themeColor, static_cast<float>(a->getHp()) @@ -204,7 +204,7 @@ void AvatarListBox::draw(Graphics *graphics) a->getDamageHp()); } - const int themeColor = (a->getPoison() + const ProgressColorIdT themeColor = (a->getPoison() ? ProgressColorId::PROG_HP_POISON : ProgressColorId::PROG_HP); Color color = Theme::getProgressColor(themeColor, 1); color.a = 80; @@ -416,7 +416,7 @@ void AvatarListBox::safeDraw(Graphics *graphics) const bool isPoison = a->getPoison(); if (a->getMaxHp()) { - const int themeColor = (isPoison + const ProgressColorIdT themeColor = (isPoison ? ProgressColorId::PROG_HP_POISON : ProgressColorId::PROG_HP); Color color = Theme::getProgressColor( themeColor, static_cast<float>(a->getHp()) @@ -441,7 +441,7 @@ void AvatarListBox::safeDraw(Graphics *graphics) a->getDamageHp()); } - const int themeColor = (a->getPoison() + const ProgressColorIdT themeColor = (a->getPoison() ? ProgressColorId::PROG_HP_POISON : ProgressColorId::PROG_HP); Color color = Theme::getProgressColor(themeColor, 1); color.a = 80; |