aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods
diff options
context:
space:
mode:
authorHugues Ross <hugues.ross@gmail.com>2019-12-09 15:06:51 -0500
committerrubenwardy <rw@rubenwardy.com>2019-12-09 20:06:51 +0000
commit9284313d17ba906de449c6d39ef3ddacb6c73791 (patch)
treedd1ce7e801fbd5ed9e8a7446560d3343ffb2f15a /games/minimal/mods
parenta462181e5fe631b816cb67a4e2cb8a870ed71840 (diff)
downloadminetest-9284313d17ba906de449c6d39ef3ddacb6c73791.tar.gz
minetest-9284313d17ba906de449c6d39ef3ddacb6c73791.tar.bz2
minetest-9284313d17ba906de449c6d39ef3ddacb6c73791.zip
Refactor to centralize GUIButton styling/rendering code (#9090)
Diffstat (limited to 'games/minimal/mods')
-rw-r--r--games/minimal/mods/test/formspec.lua7
-rw-r--r--games/minimal/mods/test/textures/test_bg.pngbin0 -> 972 bytes
-rw-r--r--games/minimal/mods/test/textures/test_bg_hovered.pngbin0 -> 972 bytes
-rw-r--r--games/minimal/mods/test/textures/test_bg_pressed.pngbin0 -> 971 bytes
4 files changed, 7 insertions, 0 deletions
diff --git a/games/minimal/mods/test/formspec.lua b/games/minimal/mods/test/formspec.lua
index 6371e3d44..64b9ec0d5 100644
--- a/games/minimal/mods/test/formspec.lua
+++ b/games/minimal/mods/test/formspec.lua
@@ -70,6 +70,13 @@ local style_fs = [[
style[one_btn13;border=false]
item_image_button[1.25,8.35;1,1;default:sword_steel;one_btn13;NoBor]
+ style[one_btn14;border=false;bgimg=test_bg.png;bgimg_hovered=test_bg_hovered.png;bgimg_pressed=test_bg_pressed.png;fgimg=bubble.png;fgimg_hovered=default_apple.png;fgimg_pressed=heart.png]
+ image_button[0,9.6;1,1;bubble.png;one_btn14;Bg]
+
+ style[one_btn15;border=false;bgimg=test_bg.png;bgimg_hovered=test_bg_hovered.png;bgimg_pressed=test_bg_pressed.png]
+ item_image_button[1.25,9.6;1,1;default:sword_steel;one_btn15;Bg]
+
+
container[2.75,0]
diff --git a/games/minimal/mods/test/textures/test_bg.png b/games/minimal/mods/test/textures/test_bg.png
new file mode 100644
index 000000000..f0f392926
--- /dev/null
+++ b/games/minimal/mods/test/textures/test_bg.png
Binary files differ
diff --git a/games/minimal/mods/test/textures/test_bg_hovered.png b/games/minimal/mods/test/textures/test_bg_hovered.png
new file mode 100644
index 000000000..b9ce8fd31
--- /dev/null
+++ b/games/minimal/mods/test/textures/test_bg_hovered.png
Binary files differ
diff --git a/games/minimal/mods/test/textures/test_bg_pressed.png b/games/minimal/mods/test/textures/test_bg_pressed.png
new file mode 100644
index 000000000..76aafb8c1
--- /dev/null
+++ b/games/minimal/mods/test/textures/test_bg_pressed.png
Binary files differ