summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-09 14:12:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-09 14:12:04 +0300
commitea84eba2562bfb87ecbc469000082d022b209505 (patch)
tree2b669cbcebfbd4e759b85ec63e49c03834682f64
parent28999e7571b66733dcf0ddbc7e376c2c3fc1bfae (diff)
downloadmv-ea84eba2562bfb87ecbc469000082d022b209505.tar.gz
mv-ea84eba2562bfb87ecbc469000082d022b209505.tar.bz2
mv-ea84eba2562bfb87ecbc469000082d022b209505.tar.xz
mv-ea84eba2562bfb87ecbc469000082d022b209505.zip
Add text colors for xp bar.
New theme colors: XP_BAR, XP_BAR_OUTLINE
-rw-r--r--data/graphics/gui/colors.xml2
-rw-r--r--data/themes/blacknblack/colors.xml2
-rw-r--r--data/themes/blackwood/colors.xml2
-rw-r--r--data/themes/enchilado/colors.xml2
-rw-r--r--data/themes/jewelry/colors.xml6
-rw-r--r--data/themes/mana/colors.xml2
-rw-r--r--data/themes/pink/colors.xml2
-rw-r--r--data/themes/unity/colors.xml2
-rw-r--r--data/themes/wood/colors.xml2
-rw-r--r--src/gui/theme.cpp2
-rw-r--r--src/gui/theme.h2
-rw-r--r--src/gui/windows/ministatuswindow.cpp2
-rw-r--r--src/gui/windows/statuswindow.cpp2
13 files changed, 29 insertions, 1 deletions
diff --git a/data/graphics/gui/colors.xml b/data/graphics/gui/colors.xml
index cf5a37fbf..b984cec3a 100644
--- a/data/graphics/gui/colors.xml
+++ b/data/graphics/gui/colors.xml
@@ -107,6 +107,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
</palette>
<progressbar id="HP" color="#ff0000,e28000,c38948,0f6a20" />
diff --git a/data/themes/blacknblack/colors.xml b/data/themes/blacknblack/colors.xml
index 18879b319..70db41f5d 100644
--- a/data/themes/blacknblack/colors.xml
+++ b/data/themes/blacknblack/colors.xml
@@ -97,6 +97,8 @@
<color id="MP_BAR_OUTLINE" color="#555555" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#555555" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#555555" />
<color id="BLACK" color="#ffffff" />
<color id="RED" color="#ffffff" />
diff --git a/data/themes/blackwood/colors.xml b/data/themes/blackwood/colors.xml
index 9d066891d..2285d70a6 100644
--- a/data/themes/blackwood/colors.xml
+++ b/data/themes/blackwood/colors.xml
@@ -96,6 +96,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
<color id="BLACK" color="#7a7972" />
<color id="RED" color="#ff0000" />
diff --git a/data/themes/enchilado/colors.xml b/data/themes/enchilado/colors.xml
index 821ca0f23..7c2735d74 100644
--- a/data/themes/enchilado/colors.xml
+++ b/data/themes/enchilado/colors.xml
@@ -97,6 +97,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
<color id="BLACK" color="#000000" />
<color id="RED" color="#ff0000" />
diff --git a/data/themes/jewelry/colors.xml b/data/themes/jewelry/colors.xml
index 587088a29..ef5f1312f 100644
--- a/data/themes/jewelry/colors.xml
+++ b/data/themes/jewelry/colors.xml
@@ -94,6 +94,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
</palette>
<palette id="1">
@@ -265,6 +267,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
</palette>
<palette id="2">
@@ -360,6 +364,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
</palette>
<progressbar id="HP" color="#b80000" />
diff --git a/data/themes/mana/colors.xml b/data/themes/mana/colors.xml
index b3140fdae..1461a116a 100644
--- a/data/themes/mana/colors.xml
+++ b/data/themes/mana/colors.xml
@@ -97,6 +97,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
<color id="BLACK" color="#000000" />
<color id="RED" color="#ff0000" />
diff --git a/data/themes/pink/colors.xml b/data/themes/pink/colors.xml
index af840806a..0faa08f83 100644
--- a/data/themes/pink/colors.xml
+++ b/data/themes/pink/colors.xml
@@ -97,6 +97,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
<color id="BLACK" color="#000000" />
<color id="RED" color="#ff0000" />
diff --git a/data/themes/unity/colors.xml b/data/themes/unity/colors.xml
index 8086ea7d5..f5c9279b1 100644
--- a/data/themes/unity/colors.xml
+++ b/data/themes/unity/colors.xml
@@ -96,6 +96,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
<color id="BLACK" color="#0E0E0E" />
<color id="RED" color="#FFA8A8" />
diff --git a/data/themes/wood/colors.xml b/data/themes/wood/colors.xml
index bba2e9cd6..346b82911 100644
--- a/data/themes/wood/colors.xml
+++ b/data/themes/wood/colors.xml
@@ -97,6 +97,8 @@
<color id="MP_BAR_OUTLINE" color="#000000" />
<color id="NO_MP_BAR" color="#ffffff" />
<color id="NO_MP_BAR_OUTLINE" color="#000000" />
+ <color id="XP_BAR" color="#ffffff" />
+ <color id="XP_BAR_OUTLINE" color="#000000" />
<color id="BLACK" color="#000000" />
<color id="RED" color="#ff0000" />
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 5935442c0..aa0b87bcb 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -959,6 +959,8 @@ static int readColorType(const std::string &type)
"MP_BAR_OUTLINE"
"NO_MP_BAR",
"NO_MP_BAR_OUTLINE"
+ "XP_BAR",
+ "XP_BAR_OUTLINE"
};
if (type.empty())
diff --git a/src/gui/theme.h b/src/gui/theme.h
index bd3db6f66..bbcce646f 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -402,6 +402,8 @@ class Theme final : public Palette, public ConfigListener
MP_BAR_OUTLINE,
NO_MP_BAR,
NO_MP_BAR_OUTLINE,
+ XP_BAR,
+ XP_BAR_OUTLINE,
THEME_COLORS_END
};
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index 8186f1e04..be691b72e 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -71,7 +71,7 @@ MiniStatusWindow::MiniStatusWindow() :
// TRANSLATORS: status bar name
? Theme::PROG_MP : Theme::PROG_NO_MP, "mp bar", _("mana bar"))
: nullptr),
- mXpBar(createBar(0, 100, 0, Theme::PROGRESS_BAR, Theme::PROG_EXP,
+ mXpBar(createBar(0, 100, 0, Theme::XP_BAR, Theme::PROG_EXP,
// TRANSLATORS: status bar name
"xp bar", _("experience bar"))),
mJobBar(nullptr),
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index bf93efbee..2f3d5f1e0 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -199,6 +199,8 @@ StatusWindow::StatusWindow() :
static_cast<float>(PlayerInfo::getAttribute(PlayerInfo::EXP))
/ static_cast<float>(max):
static_cast<float>(0), 80, 0, Theme::PROG_EXP);
+ mXpBar->setColor(Theme::getThemeColor(Theme::XP_BAR),
+ Theme::getThemeColor(Theme::XP_BAR_OUTLINE));
const bool magicBar = Net::getGameHandler()->canUseMagicBar();
const int job = Net::getPlayerHandler()->getJobLocation()