mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-05-10 20:50:22 +02:00
MineClone list backgrounds compat
This commit is contained in:
parent
ebe2331619
commit
0df824f480
@ -190,7 +190,7 @@ local function update_meta(meta, enabled)
|
|||||||
local state = enabled and "on" or "off"
|
local state = enabled and "on" or "off"
|
||||||
meta:set_int("enabled", enabled and 1 or 0)
|
meta:set_int("enabled", enabled and 1 or 0)
|
||||||
local list_backgrounds = ""
|
local list_backgrounds = ""
|
||||||
if minetest.get_modpath("i3") then
|
if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then
|
||||||
list_backgrounds = "style_type[box;colors=#666]"
|
list_backgrounds = "style_type[box;colors=#666]"
|
||||||
for i=0, 2 do
|
for i=0, 2 do
|
||||||
for j=0, 2 do
|
for j=0, 2 do
|
||||||
|
@ -38,7 +38,7 @@ local function set_filter_formspec(data, meta)
|
|||||||
end
|
end
|
||||||
local size = "10.2,11"
|
local size = "10.2,11"
|
||||||
local list_backgrounds = ""
|
local list_backgrounds = ""
|
||||||
if minetest.get_modpath("i3") then
|
if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then
|
||||||
list_backgrounds = "style_type[box;colors=#666]"
|
list_backgrounds = "style_type[box;colors=#666]"
|
||||||
for i=0, 7 do
|
for i=0, 7 do
|
||||||
for j=0, 1 do
|
for j=0, 1 do
|
||||||
|
@ -24,7 +24,7 @@ if pipeworks.enable_mese_tube then
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
local list_backgrounds = ""
|
local list_backgrounds = ""
|
||||||
if minetest.get_modpath("i3") then
|
if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then
|
||||||
list_backgrounds = "style_type[box;colors=#666]"
|
list_backgrounds = "style_type[box;colors=#666]"
|
||||||
for i=0, 5 do
|
for i=0, 5 do
|
||||||
for j=0, 5 do
|
for j=0, 5 do
|
||||||
|
@ -23,7 +23,7 @@ minetest.register_node("pipeworks:trashcan", {
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local size = "10.2,9"
|
local size = "10.2,9"
|
||||||
local list_background = ""
|
local list_background = ""
|
||||||
if minetest.get_modpath("i3") then
|
if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then
|
||||||
list_background = "style_type[box;colors=#666]box[4.5,2;1,1;]"
|
list_background = "style_type[box;colors=#666]box[4.5,2;1,1;]"
|
||||||
end
|
end
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
|
@ -8,7 +8,7 @@ end
|
|||||||
local function set_wielder_formspec(data, meta)
|
local function set_wielder_formspec(data, meta)
|
||||||
local size = "10.2,"..(7+data.wield_inv_height)
|
local size = "10.2,"..(7+data.wield_inv_height)
|
||||||
local list_background = ""
|
local list_background = ""
|
||||||
if minetest.get_modpath("i3") then
|
if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then
|
||||||
list_background = "style_type[box;colors=#666]"
|
list_background = "style_type[box;colors=#666]"
|
||||||
for i=0, data.wield_inv_height-1 do
|
for i=0, data.wield_inv_height-1 do
|
||||||
for j=0, data.wield_inv_width-1 do
|
for j=0, data.wield_inv_width-1 do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user