diff options
author | Hugues Ross <hugues.ross@gmail.com> | 2019-12-09 15:06:51 -0500 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-12-09 20:06:51 +0000 |
commit | 9284313d17ba906de449c6d39ef3ddacb6c73791 (patch) | |
tree | dd1ce7e801fbd5ed9e8a7446560d3343ffb2f15a /games/minimal/mods | |
parent | a462181e5fe631b816cb67a4e2cb8a870ed71840 (diff) | |
download | minetest-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.lua | 7 | ||||
-rw-r--r-- | games/minimal/mods/test/textures/test_bg.png | bin | 0 -> 972 bytes | |||
-rw-r--r-- | games/minimal/mods/test/textures/test_bg_hovered.png | bin | 0 -> 972 bytes | |||
-rw-r--r-- | games/minimal/mods/test/textures/test_bg_pressed.png | bin | 0 -> 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 Binary files differnew file mode 100644 index 000000000..f0f392926 --- /dev/null +++ b/games/minimal/mods/test/textures/test_bg.png diff --git a/games/minimal/mods/test/textures/test_bg_hovered.png b/games/minimal/mods/test/textures/test_bg_hovered.png Binary files differnew file mode 100644 index 000000000..b9ce8fd31 --- /dev/null +++ b/games/minimal/mods/test/textures/test_bg_hovered.png diff --git a/games/minimal/mods/test/textures/test_bg_pressed.png b/games/minimal/mods/test/textures/test_bg_pressed.png Binary files differnew file mode 100644 index 000000000..76aafb8c1 --- /dev/null +++ b/games/minimal/mods/test/textures/test_bg_pressed.png |