From 9284313d17ba906de449c6d39ef3ddacb6c73791 Mon Sep 17 00:00:00 2001 From: Hugues Ross Date: Mon, 9 Dec 2019 15:06:51 -0500 Subject: Refactor to centralize GUIButton styling/rendering code (#9090) --- games/minimal/mods/test/formspec.lua | 7 +++++++ games/minimal/mods/test/textures/test_bg.png | Bin 0 -> 972 bytes games/minimal/mods/test/textures/test_bg_hovered.png | Bin 0 -> 972 bytes games/minimal/mods/test/textures/test_bg_pressed.png | Bin 0 -> 971 bytes 4 files changed, 7 insertions(+) create mode 100644 games/minimal/mods/test/textures/test_bg.png create mode 100644 games/minimal/mods/test/textures/test_bg_hovered.png create mode 100644 games/minimal/mods/test/textures/test_bg_pressed.png (limited to 'games/minimal') 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 Binary files /dev/null and b/games/minimal/mods/test/textures/test_bg.png 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 Binary files /dev/null and b/games/minimal/mods/test/textures/test_bg_hovered.png 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 Binary files /dev/null and b/games/minimal/mods/test/textures/test_bg_pressed.png differ -- cgit v1.2.3