aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods
diff options
context:
space:
mode:
authorHugues Ross <hugues.ross@gmail.com>2020-05-02 07:32:02 -0400
committerGitHub <noreply@github.com>2020-05-02 13:32:02 +0200
commitcb9a44ef8998ff66c00187efc508bf8bd6cc2d67 (patch)
treea7a05c71863fb93c4764a0f1ce302ef4dfc3d8a4 /games/minimal/mods
parent5c96f57782d967010f711c3806fdd18caa6e3e32 (diff)
downloadminetest-cb9a44ef8998ff66c00187efc508bf8bd6cc2d67.tar.gz
minetest-cb9a44ef8998ff66c00187efc508bf8bd6cc2d67.tar.bz2
minetest-cb9a44ef8998ff66c00187efc508bf8bd6cc2d67.zip
Add 'content_offset' and 'padding' style properties for buttons (#9661)
* Add padding and content_offset style properties to buttons
Diffstat (limited to 'games/minimal/mods')
-rw-r--r--games/minimal/mods/test/formspec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/games/minimal/mods/test/formspec.lua b/games/minimal/mods/test/formspec.lua
index 4ab4f2717..a5d3074cd 100644
--- a/games/minimal/mods/test/formspec.lua
+++ b/games/minimal/mods/test/formspec.lua
@@ -95,7 +95,7 @@ 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;fgimg=bubble.png]
+ style[one_btn14;border=false;bgimg=test_bg.png;fgimg=bubble.png;padding=8]
style[one_btn14:hovered;bgimg=test_bg_hovered.png;fgimg=default_apple.png;textcolor=red]
style[one_btn14:pressed;bgimg=test_bg_pressed.png;fgimg=heart.png;textcolor=green]
style[one_btn14:hovered+pressed;textcolor=blue]
@@ -105,6 +105,7 @@ local style_fs = [[
item_image_button[1.25,9.6;1,1;default:sword_steel;one_btn15;Bg]
style[one_btn16;border=false;bgimg=test_bg_9slice.png;bgimg_hovered=test_bg_9slice_hovered.png;bgimg_pressed=test_bg_9slice_pressed.png;bgimg_middle=4,6]
+ style[one_btn16:pressed;content_offset=0,1]
button[2.5,9.6;2,1;one_btn16;9-Slice Bg]