From c5587f55c74282cde42c6cc784be46a3fc66b771 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 17 Oct 2022 07:41:19 +0200 Subject: [PATCH] let yl_speak_up.show_fs_simple_deco look better for smaller height --- fs_decorated.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs_decorated.lua b/fs_decorated.lua index 7f575ca..a77d21f 100644 --- a/fs_decorated.lua +++ b/fs_decorated.lua @@ -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]"..