diff options
author | ewew ukek <ewewukek@gmail.com> | 2024-09-23 20:28:13 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-09-23 20:28:13 +0000 |
commit | f9e62010fb73efb22476c64fe13947b0437b7633 (patch) | |
tree | d62f5fa36585331a3ade2c3ca067638cd4b989a8 /src/gui/userpalette.cpp | |
parent | 8dc4ae48a375a1f217d13bcc356eb1aebed546a6 (diff) | |
download | plus-f9e62010fb73efb22476c64fe13947b0437b7633.tar.gz plus-f9e62010fb73efb22476c64fe13947b0437b7633.tar.bz2 plus-f9e62010fb73efb22476c64fe13947b0437b7633.tar.xz plus-f9e62010fb73efb22476c64fe13947b0437b7633.zip |
Show MP bar below HP bar
Adds a light blue bar for MP below player's HP bar. It shows only if M.Atk is above 0.
I didn't add a checkbox to the settings to disable this, let me know if I should.
Squashed with:
* Sneak in another TODO
* Sneak in a TODO
****
mana/plus!68
Co-authored-by: Fedja Beader <fedja@protonmail.ch>
Diffstat (limited to 'src/gui/userpalette.cpp')
-rw-r--r-- | src/gui/userpalette.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp index 8ad436a60..dbed4a93e 100644 --- a/src/gui/userpalette.cpp +++ b/src/gui/userpalette.cpp @@ -64,6 +64,8 @@ const std::string ColorTypeNames[CAST_SIZE( "", "ColorPlayerHp", "ColorPlayerHp2", + "ColorPlayerMp", + "ColorPlayerMp2", "ColorMonsterHp", "ColorMonsterHp2", "ColorHomunHp", @@ -296,6 +298,18 @@ UserPalette::UserPalette() : // TRANSLATORS: palette color _("Player HP bar (background)"), 50); + addColor(UserColorId::PLAYER_MP_FG, + 0x00a0ff, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Player MP bar"), + 50); + addColor(UserColorId::PLAYER_MP_BG, + 0x303030, + GradientType::STATIC, + // TRANSLATORS: palette color + _("Player MP bar (background)"), + 50); addColor(UserColorId::MONSTER_HP_FG, 0x00ff00, GradientType::STATIC, |