Simplify formspec prepend

master
Wuzzy 2022-02-10 23:58:17 +01:00
parent ae84dbdf38
commit cc8a834d76
1 changed files with 2 additions and 6 deletions

View File

@ -41,14 +41,10 @@ minetest.register_on_joinplayer(function(player)
player:set_formspec_prepend([=[
listcolors[#5c443280;#a87d5d80;#3b2b2080;#b75647;#ffffff]
background9[0,0;5,5;lzr_gui_bg.png;true;4]
style_type[button;bgimg=lzr_gui_button.png]
style_type[button;bgimg_middle=4]
style_type[button;bgimg=lzr_gui_button.png;bgimg_middle=4]
style_type[button:hovered;bgimg=lzr_gui_button_hover.png]
style_type[button:pressed;bgimg=lzr_gui_button_pressed.png]
style_type[button;sound=lzr_sounds_button]
style_type[button_exit;sound=lzr_sounds_button]
style_type[image_button;sound=lzr_sounds_button]
style_type[item_image_button;sound=lzr_sounds_button]]=])
style_type[button,image_button,item_image_button;sound=lzr_sounds_button]]=])
player:hud_set_hotbar_selected_image("lzr_gui_hotbar_selected.png")
local name = player:get_player_name()