Модуль:Thaumcraft/Тигель
Внешний вид
Для документации этого модуля может быть создана страница Модуль:Thaumcraft/Тигель/doc
local p = {}
function p.crucibleTh3(f)
local args = require("Модуль:ProcessArgs").norm()
local mod = args["Мод"] or ""
local cellAsp1 = args["Аспект"]
local cellAsp2 = args["Аспект2"]
local cellAsp3 = args["Аспект3"]
local cellOut1 = args["Выход"]
local decoration = "[[Файл:Узор для тигля (Thaumcraft).png|link=]]"
local viscont = args["vis"]
local cg = require("Модуль:Cg")
local cgSlot = cg.slot
local cgText = cg.text
local output = {}
-- указание размеров подложки
table.insert(output, cg.begin({
150,
184
}))
table.insert(output, cg.backgroundImage({
"Элементы интерфейса тигля (Thaumcraft 3).svg"
}))
table.insert(output, cg.image({decoration, 42, 3}))
table.insert(output, cgText({viscont .. " vis", 33, 138, style="text-align: center; font-family: Minecraft-ru; font-size:18px; width: 82px"}))
table.insert(output, cgSlot({cellOut1, 56, 17, class2 = "invslot-plain", mod = mod}))
if cellAsp2 ~=nil and cellAsp3 ==nil then
table.insert(output, cgSlot({cellAsp1, 38, 94, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellAsp2, 74, 94, class2 = "invslot-plain", mod = mod}))
else
table.insert(output, cgSlot({cellAsp1, 56, 94, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellAsp2, 20, 94, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellAsp3, 92, 94, class2 = "invslot-plain", mod = mod}))
end
table.insert(output, cg.footer())
return table.concat(output)
end
function p.crucibleTh4(f)
local args = require("Модуль:ProcessArgs").norm()
local mod = args["Мод"] or ""
local cellAsp1 = args["Аспект"]
local cellAsp2 = args["Аспект2"]
local cellAsp3 = args["Аспект3"]
local cellIn1 = args["Вход"]
local cellOut1 = args["Выход"]
local decoration = "[[Файл:Узор для тигля (Thaumcraft).png|link=]]"
local arrow = "[[Файл:Стрелка для тигля (Thaumcraft).png|link=]]"
local cg = require("Модуль:Cg")
local cgSlot = cg.slot
local cgText = cg.text
local output = {}
-- указание размеров подложки
table.insert(output, cg.begin({
150,
216
}))
table.insert(output, cg.backgroundImage({
"Элементы интерфейса тигля (Thaumcraft 4).svg"
}))
table.insert(output, cg.image({decoration, 43, 7}))
table.insert(output, cg.image({arrow, 46, 72}))
table.insert(output, cgSlot({cellIn1, 16, 62, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellOut1, 57, 21, class2 = "invslot-plain", mod = mod}))
if cellAsp2 ~=nil and cellAsp3 ==nil then
table.insert(output, cgSlot({cellAsp1, 38, 126, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellAsp2, 74, 126, class2 = "invslot-plain", mod = mod}))
else
table.insert(output, cgSlot({cellAsp1, 56, 126, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellAsp2, 20, 126, class2 = "invslot-plain", mod = mod}))
table.insert(output, cgSlot({cellAsp3, 92, 126, class2 = "invslot-plain", mod = mod}))
end
table.insert(output, cg.footer())
return table.concat(output)
end
return p