mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Refactor to centralize GUIButton styling/rendering code (#9090)
This commit is contained in:
parent
a462181e5f
commit
9284313d17
18 changed files with 522 additions and 145 deletions
|
@ -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]
|
||||
|
||||
|
|
BIN
games/minimal/mods/test/textures/test_bg.png
Normal file
BIN
games/minimal/mods/test/textures/test_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 972 B |
BIN
games/minimal/mods/test/textures/test_bg_hovered.png
Normal file
BIN
games/minimal/mods/test/textures/test_bg_hovered.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 972 B |
BIN
games/minimal/mods/test/textures/test_bg_pressed.png
Normal file
BIN
games/minimal/mods/test/textures/test_bg_pressed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 971 B |
Loading…
Add table
Add a link
Reference in a new issue