let yl_speak_up.show_fs_simple_deco look better for smaller height
This commit is contained in:
parent
c3e048504f
commit
c5587f55c7
@ -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 y_a = tostring(size_y - 0.5) --0.75) -- "22.25"
|
||||||
local x_L = tostring(size_x + 0.8)
|
local x_L = tostring(size_x + 0.8)
|
||||||
local y_L = tostring(size_y + 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).."]"..
|
return "size["..tostring(size_x)..","..tostring(size_y).."]"..
|
||||||
"bgcolor[#00000000;false]"..
|
"bgcolor[#00000000;false]"..
|
||||||
"style_type[button;bgcolor=#a37e45]"..
|
"style_type[button;bgcolor=#a37e45]"..
|
||||||
|
Loading…
Reference in New Issue
Block a user