summaryrefslogtreecommitdiff
path: root/data/graphics/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-09 02:59:54 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-09 02:59:54 +0300
commitf96f9d5e58fb181d6f2789562471d015d38f4a4d (patch)
tree3087fae6addb9c1d958de6ffd818ced11fa27f66 /data/graphics/gui
parentba123462244ed8e28c87ab43cbefe360d23ff8b2 (diff)
downloadmv-f96f9d5e58fb181d6f2789562471d015d38f4a4d.tar.gz
mv-f96f9d5e58fb181d6f2789562471d015d38f4a4d.tar.bz2
mv-f96f9d5e58fb181d6f2789562471d015d38f4a4d.tar.xz
mv-f96f9d5e58fb181d6f2789562471d015d38f4a4d.zip
Add own skin for pincode keyboard buttons.
Also resize pincode dialog if pincode control too big.
Diffstat (limited to 'data/graphics/gui')
-rw-r--r--data/graphics/gui/CMakeLists.txt4
-rw-r--r--data/graphics/gui/Makefile.am4
-rw-r--r--data/graphics/gui/buttonpin.xml22
-rw-r--r--data/graphics/gui/buttonpin_disabled.xml22
-rw-r--r--data/graphics/gui/buttonpin_highlighted.xml22
-rw-r--r--data/graphics/gui/buttonpin_pressed.xml22
6 files changed, 96 insertions, 0 deletions
diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt
index aca2b43cd..552d65e50 100644
--- a/data/graphics/gui/CMakeLists.txt
+++ b/data/graphics/gui/CMakeLists.txt
@@ -6,6 +6,10 @@ SET (FILES
button_disabled.xml
button_highlighted.xml
button_pressed.xml
+ buttonpin.xml
+ buttonpin_disabled.xml
+ buttonpin_highlighted.xml
+ buttonpin_pressed.xml
buttonplay.png
buy.xml
charcreate_playerbox.xml
diff --git a/data/graphics/gui/Makefile.am b/data/graphics/gui/Makefile.am
index 049d80d95..9b167ba48 100644
--- a/data/graphics/gui/Makefile.am
+++ b/data/graphics/gui/Makefile.am
@@ -9,6 +9,10 @@ gui_DATA = \
button_disabled.xml \
button_highlighted.xml \
button_pressed.xml \
+ buttonpin.xml \
+ buttonpin_disabled.xml \
+ buttonpin_highlighted.xml \
+ buttonpin_pressed.xml \
buttonplay.png \
buy.xml \
charcreate_playerbox.xml \
diff --git a/data/graphics/gui/buttonpin.xml b/data/graphics/gui/buttonpin.xml
new file mode 100644
index 000000000..33d24e80a
--- /dev/null
+++ b/data/graphics/gui/buttonpin.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skinset name="Default" image="window.png">
+ <widget type="Window" xpos="41" ypos="0">
+ <option name="padding" value="8" />
+ <option name="spacing" value="2" />
+
+ <!-- Top Row -->
+ <part type="top-left-corner" xpos="0" ypos="0" width="10" height="5" />
+ <part type="top-edge" xpos="9" ypos="0" width="8" height="5" />
+ <part type="top-right-corner" xpos="16" ypos="0" width="10" height="5" />
+
+ <!-- Middle Row -->
+ <part type="left-edge" xpos="0" ypos="4" width="10" height="16" />
+ <part type="bg-quad" xpos="9" ypos="4" width="8" height="16" />
+ <part type="right-edge" xpos="16" ypos="4" width="10" height="16" />
+
+ <!-- Bottom Row -->
+ <part type="bottom-left-corner" xpos="0" ypos="19" width="10" height="5" />
+ <part type="bottom-edge" xpos="9" ypos="19" width="8" height="5" />
+ <part type="bottom-right-corner" xpos="16" ypos="19" width="10" height="5" />
+ </widget>
+</skinset>
diff --git a/data/graphics/gui/buttonpin_disabled.xml b/data/graphics/gui/buttonpin_disabled.xml
new file mode 100644
index 000000000..2f5c91400
--- /dev/null
+++ b/data/graphics/gui/buttonpin_disabled.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skinset name="Default" image="window.png">
+ <widget type="Window" xpos="41" ypos="75">
+ <option name="padding" value="8" />
+ <option name="spacing" value="2" />
+
+ <!-- Top Row -->
+ <part type="top-left-corner" xpos="0" ypos="0" width="10" height="5" />
+ <part type="top-edge" xpos="9" ypos="0" width="8" height="5" />
+ <part type="top-right-corner" xpos="16" ypos="0" width="10" height="5" />
+
+ <!-- Middle Row -->
+ <part type="left-edge" xpos="0" ypos="4" width="10" height="16" />
+ <part type="bg-quad" xpos="9" ypos="4" width="8" height="16" />
+ <part type="right-edge" xpos="16" ypos="4" width="10" height="16" />
+
+ <!-- Bottom Row -->
+ <part type="bottom-left-corner" xpos="0" ypos="19" width="10" height="5" />
+ <part type="bottom-edge" xpos="9" ypos="19" width="8" height="5" />
+ <part type="bottom-right-corner" xpos="16" ypos="19" width="10" height="5" />
+ </widget>
+</skinset>
diff --git a/data/graphics/gui/buttonpin_highlighted.xml b/data/graphics/gui/buttonpin_highlighted.xml
new file mode 100644
index 000000000..fd715445c
--- /dev/null
+++ b/data/graphics/gui/buttonpin_highlighted.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skinset name="Default" image="window.png">
+ <widget type="Window" xpos="41" ypos="25">
+ <option name="padding" value="8" />
+ <option name="spacing" value="2" />
+
+ <!-- Top Row -->
+ <part type="top-left-corner" xpos="0" ypos="0" width="10" height="5" />
+ <part type="top-edge" xpos="9" ypos="0" width="8" height="5" />
+ <part type="top-right-corner" xpos="16" ypos="0" width="10" height="5" />
+
+ <!-- Middle Row -->
+ <part type="left-edge" xpos="0" ypos="4" width="10" height="16" />
+ <part type="bg-quad" xpos="9" ypos="4" width="8" height="16" />
+ <part type="right-edge" xpos="16" ypos="4" width="10" height="16" />
+
+ <!-- Bottom Row -->
+ <part type="bottom-left-corner" xpos="0" ypos="19" width="10" height="5" />
+ <part type="bottom-edge" xpos="9" ypos="19" width="8" height="5" />
+ <part type="bottom-right-corner" xpos="16" ypos="19" width="10" height="5" />
+ </widget>
+</skinset>
diff --git a/data/graphics/gui/buttonpin_pressed.xml b/data/graphics/gui/buttonpin_pressed.xml
new file mode 100644
index 000000000..3b4c71e97
--- /dev/null
+++ b/data/graphics/gui/buttonpin_pressed.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<skinset name="Default" image="window.png">
+ <widget type="Window" xpos="41" ypos="50">
+ <option name="padding" value="8" />
+ <option name="spacing" value="2" />
+
+ <!-- Top Row -->
+ <part type="top-left-corner" xpos="0" ypos="0" width="10" height="5" />
+ <part type="top-edge" xpos="9" ypos="0" width="8" height="5" />
+ <part type="top-right-corner" xpos="16" ypos="0" width="10" height="5" />
+
+ <!-- Middle Row -->
+ <part type="left-edge" xpos="0" ypos="4" width="10" height="16" />
+ <part type="bg-quad" xpos="9" ypos="4" width="8" height="16" />
+ <part type="right-edge" xpos="16" ypos="4" width="10" height="16" />
+
+ <!-- Bottom Row -->
+ <part type="bottom-left-corner" xpos="0" ypos="19" width="10" height="5" />
+ <part type="bottom-edge" xpos="9" ypos="19" width="8" height="5" />
+ <part type="bottom-right-corner" xpos="16" ypos="19" width="10" height="5" />
+ </widget>
+</skinset>