mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-28 03:40:39 +01:00
Change bgcolor
This commit is contained in:
parent
5ea3dbaab0
commit
5f6e8277e5
3
init.lua
3
init.lua
@ -1940,6 +1940,7 @@ end
|
|||||||
|
|
||||||
local function make_fs(player, data)
|
local function make_fs(player, data)
|
||||||
--local start = os.clock()
|
--local start = os.clock()
|
||||||
|
|
||||||
local fs = setmetatable({}, {
|
local fs = setmetatable({}, {
|
||||||
__call = function(t, ...)
|
__call = function(t, ...)
|
||||||
t[#t + 1] = concat({...})
|
t[#t + 1] = concat({...})
|
||||||
@ -1949,7 +1950,7 @@ local function make_fs(player, data)
|
|||||||
data.xoffset = ROWS + 1.23
|
data.xoffset = ROWS + 1.23
|
||||||
local full_height = LINES + 1.73
|
local full_height = LINES + 1.73
|
||||||
|
|
||||||
fs(fmt("formspec_version[%u]size[%f,%f]no_prepend[]bgcolor[#0000]",
|
fs(fmt("formspec_version[%u]size[%f,%f]no_prepend[]bgcolor[#080808BB;true]",
|
||||||
MIN_FORMSPEC_VERSION, data.xoffset + (data.query_item and 8 or 0), full_height), styles)
|
MIN_FORMSPEC_VERSION, data.xoffset + (data.query_item and 8 or 0), full_height), styles)
|
||||||
|
|
||||||
fs(fmt("bg9", 0, 0, data.xoffset, full_height, PNG.bg_full, 10))
|
fs(fmt("bg9", 0, 0, data.xoffset, full_height, PNG.bg_full, 10))
|
||||||
|
Loading…
Reference in New Issue
Block a user