From 9cf75f54c2e386ca441fc79579ff50ffbb09c4d4 Mon Sep 17 00:00:00 2001 From: Hugues Ross Date: Fri, 26 Jun 2020 18:02:18 -0400 Subject: [PATCH] Formspec background fixes --- formspec.lua | 4 +++- table.lua | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/formspec.lua b/formspec.lua index 2c924cf..1239079 100644 --- a/formspec.lua +++ b/formspec.lua @@ -15,7 +15,9 @@ local gui = { -- Returns a table. Calling table.concat on the result will produce -- a usable formspec string. function gui.formspec(args) - local data = string.format("formspec_version[%d] size[%f,%f] no_prepend[]", args.version or 3, args.w, args.h); + local data = string.format("formspec_version[%d] size[%f,%f] no_prepend[] bgcolor[#00000000;false]", + args.version or 3, + args.w, args.h); if args.bg then data = data .. gui.bg9 { diff --git a/table.lua b/table.lua index 22387eb..80903b5 100644 --- a/table.lua +++ b/table.lua @@ -137,10 +137,10 @@ function fs.header(w, h, rank, tab, skin) bg = skin.background, }, gui.bg9 { - x = 0.0625, + x = 0.125, y = 0.125, - w = w - 0.125, + w = w - 0.25, h = h - 0.25, skin = skin.inner_background,