From cc8a834d76f1d72a86eab463da982a99b29d7069 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 10 Feb 2022 23:58:17 +0100 Subject: [PATCH] Simplify formspec prepend --- mods/lzr_gui/init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mods/lzr_gui/init.lua b/mods/lzr_gui/init.lua index 5595725..52d0abe 100644 --- a/mods/lzr_gui/init.lua +++ b/mods/lzr_gui/init.lua @@ -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()