aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-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