summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-22 20:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-22 20:03:20 +0300
commit15309c3bb75a5d5d1b56171fe1bd91b96e1735b8 (patch)
tree456439afcc908a50360bb8968f143dab32a4251e /data
parent2425f9821deb57ceab2f6e6a5aa01a0784e07148 (diff)
downloadmanaplus-15309c3bb75a5d5d1b56171fe1bd91b96e1735b8.tar.gz
manaplus-15309c3bb75a5d5d1b56171fe1bd91b96e1735b8.tar.bz2
manaplus-15309c3bb75a5d5d1b56171fe1bd91b96e1735b8.tar.xz
manaplus-15309c3bb75a5d5d1b56171fe1bd91b96e1735b8.zip
allow fill complete part of progress bar with images.
For this need add in progress bar theme file option fillImage and set it to 1. Then add progress bar xml file for image with name: name_fill.xml. Default is: progressbar_fill.xml New theme option: fillImage New theme file (default name): progressbar_fill.xml
Diffstat (limited to 'data')
-rw-r--r--data/graphics/gui/CMakeLists.txt1
-rw-r--r--data/graphics/gui/Makefile.am1
-rw-r--r--data/graphics/gui/progressbar.xml2
-rw-r--r--data/graphics/gui/progressbar_fill.xml19
4 files changed, 23 insertions, 0 deletions
diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt
index 870b86b60..61acadfa0 100644
--- a/data/graphics/gui/CMakeLists.txt
+++ b/data/graphics/gui/CMakeLists.txt
@@ -51,6 +51,7 @@ SET (FILES
popupbrowserbox.xml
progress-indicator.png
progressbar.xml
+ progressbar_fill.xml
quests.xml
radio.xml
resize.xml
diff --git a/data/graphics/gui/Makefile.am b/data/graphics/gui/Makefile.am
index 50ea62178..740f81613 100644
--- a/data/graphics/gui/Makefile.am
+++ b/data/graphics/gui/Makefile.am
@@ -54,6 +54,7 @@ gui_DATA = \
popupbrowserbox.xml \
progress-indicator.png \
progressbar.xml \
+ progressbar_fill.xml \
quests.xml \
radio.xml \
resize.xml \
diff --git a/data/graphics/gui/progressbar.xml b/data/graphics/gui/progressbar.xml
index 1be7e4100..c2b1f46e9 100644
--- a/data/graphics/gui/progressbar.xml
+++ b/data/graphics/gui/progressbar.xml
@@ -3,6 +3,8 @@
<widget type="Window" xpos="73" ypos="164">
<option name="padding" value="2" />
<option name="fillPadding" value="3" />
+ <option name="fillImage" value="0" />
+
<!-- Top Row -->
<part type="top-left-corner" xpos="0" ypos="0" width="4" height="4" />
<part type="top-edge" xpos="4" ypos="0" width="3" height="4" />
diff --git a/data/graphics/gui/progressbar_fill.xml b/data/graphics/gui/progressbar_fill.xml
new file mode 100644
index 000000000..c674c7c7b
--- /dev/null
+++ b/data/graphics/gui/progressbar_fill.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skinset name="Default" image="window.png">
+ <widget type="Window" xpos="73" ypos="164">
+ <!-- Top Row -->
+ <part type="top-left-corner" xpos="0" ypos="0" width="4" height="4" />
+ <part type="top-edge" xpos="4" ypos="0" width="3" height="4" />
+ <part type="top-right-corner" xpos="7" ypos="0" width="4" height="4" />
+
+ <!-- Middle Row -->
+ <part type="left-edge" xpos="0" ypos="4" width="4" height="10" />
+ <part type="bg-quad" xpos="4" ypos="4" width="3" height="10" />
+ <part type="right-edge" xpos="7" ypos="4" width="4" height="10" />
+
+ <!-- Bottom Row -->
+ <part type="bottom-left-corner" xpos="0" ypos="15" width="4" height="4" />
+ <part type="bottom-edge" xpos="4" ypos="15" width="3" height="4" />
+ <part type="bottom-right-corner" xpos="7" ypos="15" width="4" height="4" />
+ </widget>
+</skinset>