diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-05 12:27:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-05 12:27:02 +0300 |
commit | dd169e1dcb4298f3d38e0ee0c13180ed0807d96a (patch) | |
tree | 4e515a9b8c68222e1c4140e59fd9347bcd59bbef /src/gui | |
parent | e4171d402519ef2637eada9ffd807601bc72d845 (diff) | |
download | manaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.gz manaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.bz2 manaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.xz manaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.zip |
dehardcode floor item color.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_colors.cpp | 2 | ||||
-rw-r--r-- | src/gui/userpalette.cpp | 5 | ||||
-rw-r--r-- | src/gui/userpalette.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/setup_colors.cpp b/src/gui/setup_colors.cpp index ec0a74cec..62dba3038 100644 --- a/src/gui/setup_colors.cpp +++ b/src/gui/setup_colors.cpp @@ -300,6 +300,7 @@ void Setup_Colors::valueChanged(const gcn::SelectionEvent &event A_UNUSED) case UserPalette::HIT_LOCAL_PLAYER_MISS: case UserPalette::ATTACK_RANGE: case UserPalette::MONSTER_ATTACK_RANGE: + case UserPalette::FLOOR_ITEM_TEXT: mTextPreview->setShadow(false); break; default: @@ -324,6 +325,7 @@ void Setup_Colors::valueChanged(const gcn::SelectionEvent &event A_UNUSED) case UserPalette::MONSTER_HP2: case UserPalette::PLAYER_HP: case UserPalette::PLAYER_HP2: + case UserPalette::FLOOR_ITEM_TEXT: // TRANSLATORS: colors tab. label. mGradDelayLabel->setCaption(_("Alpha:")); mGradDelayText->setRange(0, 255); diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp index 4491b63d2..b6a34973d 100644 --- a/src/gui/userpalette.cpp +++ b/src/gui/userpalette.cpp @@ -72,6 +72,7 @@ const std::string ColorTypeNames[] = "ColorAttackRange", "ColorAttackRangeBorder", "ColorMonsterAttackRange", + "ColorFloorItemText", "ColorHomePlace", "ColorHomePlaceBorder", "ColorRoadPoint" @@ -201,6 +202,10 @@ UserPalette::UserPalette(): addColor(MONSTER_ATTACK_RANGE, 0xff0000, STATIC, // TRANSLATORS: palette color _("Monster Attack Range"), 20); + + addColor(FLOOR_ITEM_TEXT, 0xffffff, STATIC, + // TRANSLATORS: palette color + _("Floor item amount color"), 100); addColor(HOME_PLACE, 0xffffff, STATIC, // TRANSLATORS: palette color _("Home Place"), 20); diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h index 21bc84e6c..5446077a2 100644 --- a/src/gui/userpalette.h +++ b/src/gui/userpalette.h @@ -73,6 +73,7 @@ class UserPalette final : public Palette, public gcn::ListModel ATTACK_RANGE, ATTACK_RANGE_BORDER, MONSTER_ATTACK_RANGE, + FLOOR_ITEM_TEXT, HOME_PLACE, HOME_PLACE_BORDER, ROAD_POINT, |