let yl_speak_up.show_fs_simple_deco look better for smaller height

This commit is contained in:
Sokomine 2022-10-17 07:41:19 +02:00
parent c3e048504f
commit c5587f55c7

View File

@ -379,6 +379,10 @@ yl_speak_up.show_fs_simple_deco = function(size_x, size_y)
local y_a = tostring(size_y - 0.5) --0.75) -- "22.25"
local x_L = tostring(size_x + 0.8)
local y_L = tostring(size_y + 0.8)
-- formspecs that are not very high look odd otherwise
if(size_y < 6) then
y_L = y_L - 0.8
end
return "size["..tostring(size_x)..","..tostring(size_y).."]"..
"bgcolor[#00000000;false]"..
"style_type[button;bgcolor=#a37e45]"..