Browse Source

Formspec background fixes

tags/1.0
Hugues Ross 1 month ago
parent
commit
9cf75f54c2
2 changed files with 5 additions and 3 deletions
  1. +3
    -1
      formspec.lua
  2. +2
    -2
      table.lua

+ 3
- 1
formspec.lua View File

@@ -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 {


+ 2
- 2
table.lua View File

@@ -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,


Loading…
Cancel
Save