mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add 9-slice background support to button formspec elements (#9290)
This commit is contained in:
parent
cde2a7f6f2
commit
60544ac56f
9 changed files with 86 additions and 4 deletions
|
@ -78,6 +78,9 @@ local style_fs = [[
|
|||
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]
|
||||
|
||||
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]
|
||||
button[2.5,9.6;2,1;one_btn16;9-Slice Bg]
|
||||
|
||||
|
||||
|
||||
container[2.75,0]
|
||||
|
|
BIN
games/minimal/mods/test/textures/test_bg_9slice.png
Normal file
BIN
games/minimal/mods/test/textures/test_bg_9slice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1,017 B |
BIN
games/minimal/mods/test/textures/test_bg_9slice_hovered.png
Normal file
BIN
games/minimal/mods/test/textures/test_bg_9slice_hovered.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1,016 B |
BIN
games/minimal/mods/test/textures/test_bg_9slice_pressed.png
Normal file
BIN
games/minimal/mods/test/textures/test_bg_9slice_pressed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1,016 B |
Loading…
Add table
Add a link
Reference in a new issue