Refactor: xbg -> xdecor.xbg
This commit is contained in:
parent
ecf9af4f85
commit
6a68def01d
@ -1,6 +1,6 @@
|
|||||||
local S = minetest.get_translator("xdecor")
|
local S = minetest.get_translator("xdecor")
|
||||||
|
|
||||||
xbg = default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
xdecor.xbg = default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
||||||
local default_inventory_size = 32
|
local default_inventory_size = 32
|
||||||
|
|
||||||
local default_inventory_formspecs = {
|
local default_inventory_formspecs = {
|
||||||
|
@ -34,7 +34,7 @@ function hive.set_formspec(meta, status)
|
|||||||
list[current_player;main;0,2.35;8,4;]
|
list[current_player;main;0,2.35;8,4;]
|
||||||
listring[current_player;main]
|
listring[current_player;main]
|
||||||
listring[context;honey] ]] ..
|
listring[context;honey] ]] ..
|
||||||
xbg .. default.get_hotbar_bg(0,2.35)
|
xdecor.xbg .. default.get_hotbar_bg(0,2.35)
|
||||||
meta:set_string("formspec", formspec)
|
meta:set_string("formspec", formspec)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ function mailbox:formspec(pos, owner, is_owner)
|
|||||||
"table[6,0.75;3.3,4;givers;" .. giver .. "]" ..
|
"table[6,0.75;3.3,4;givers;" .. giver .. "]" ..
|
||||||
"list[nodemeta:" .. spos .. ";mailbox;0,0.75;6,4;]" ..
|
"list[nodemeta:" .. spos .. ";mailbox;0,0.75;6,4;]" ..
|
||||||
"listring[nodemeta:" .. spos .. ";mailbox]" ..
|
"listring[nodemeta:" .. spos .. ";mailbox]" ..
|
||||||
xbg .. default.get_hotbar_bg(0.75, 5.25)
|
xdecor.xbg .. default.get_hotbar_bg(0.75, 5.25)
|
||||||
end
|
end
|
||||||
|
|
||||||
return "size[8,5]" ..
|
return "size[8,5]" ..
|
||||||
@ -90,7 +90,7 @@ function mailbox:formspec(pos, owner, is_owner)
|
|||||||
minetest.colorize("#FFFF00", owner) or owner)) .. "]" ..
|
minetest.colorize("#FFFF00", owner) or owner)) .. "]" ..
|
||||||
"list[nodemeta:" .. spos .. ";drop;3.5,0;1,1;]" ..
|
"list[nodemeta:" .. spos .. ";drop;3.5,0;1,1;]" ..
|
||||||
"listring[]" ..
|
"listring[]" ..
|
||||||
xbg .. default.get_hotbar_bg(0, 1.25)
|
xdecor.xbg .. default.get_hotbar_bg(0, 1.25)
|
||||||
end
|
end
|
||||||
|
|
||||||
function mailbox.dig(pos, player)
|
function mailbox.dig(pos, player)
|
||||||
|
@ -430,7 +430,7 @@ xdecor.register("enderchest", {
|
|||||||
list[current_player;main;0,5;8,4;]
|
list[current_player;main;0,5;8,4;]
|
||||||
listring[current_player;enderchest]
|
listring[current_player;enderchest]
|
||||||
listring[current_player;main] ]]
|
listring[current_player;main] ]]
|
||||||
.. xbg .. default.get_hotbar_bg(0,5))
|
.. xdecor.xbg .. default.get_hotbar_bg(0,5))
|
||||||
|
|
||||||
meta:set_string("infotext", S("Ender Chest"))
|
meta:set_string("infotext", S("Ender Chest"))
|
||||||
end
|
end
|
||||||
|
@ -123,7 +123,7 @@ local formspecs = {
|
|||||||
function workbench:set_formspec(meta, id)
|
function workbench:set_formspec(meta, id)
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[8,7;]list[current_player;main;0,3.25;8,4;]" ..
|
"size[8,7;]list[current_player;main;0,3.25;8,4;]" ..
|
||||||
formspecs[id] .. xbg .. default.get_hotbar_bg(0,3.25))
|
formspecs[id] .. xdecor.xbg .. default.get_hotbar_bg(0,3.25))
|
||||||
end
|
end
|
||||||
|
|
||||||
function workbench.construct(pos)
|
function workbench.construct(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user