Use mcl_formspec.get_itemslot_bg_v4 instead of mcl_formspec.get_itemslot_bg

This commit is contained in:
2025-12-07 18:19:19 +01:00
parent 42378a4331
commit 29b5a6c996
18 changed files with 54 additions and 52 deletions

View File

@@ -36,13 +36,13 @@ local function getFormspec(self,pos)
local fuel=self.getFuel(fluid)
local tile=(fuel and fuel.texture or "industrialtest_gui_fluid_bg.png")
local formspec={
"list[context;src;2,1.8;1,1]",
industrialtest.internal.getItemSlotBg(2,1.8,1,1),
"list[context;src;2,1.8;1,1]",
(fluidPercent>0 and "image[2,3;1,1;industrialtest_gui_fluid_bg.png^[lowpart:"..fluidPercent..":"..tile.."]" or "image[2,3;1,1;industrialtest_gui_fluid_bg.png]"),
"list[context;dst;2,4.2;1,1]",
industrialtest.internal.getItemSlotBg(2,4.2,1,1),
"list[context;charged;6,3;1,1]",
"list[context;dst;2,4.2;1,1]",
industrialtest.internal.getItemSlotBg(6,3,1,1),
"list[context;charged;6,3;1,1]",
self.createPowerIndicatorWidget(powerPercent,9,1),
"listring[context;src]",
"listring[context;dst]"