Generate item slot images on the fly
This commit is contained in:
parent
3cf32c38c5
commit
7243a25fe6
31 changed files with 76 additions and 11 deletions
11
mods/HUD/mcl_formspec/init.lua
Normal file
11
mods/HUD/mcl_formspec/init.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
mcl_formspec = {}
|
||||
|
||||
function mcl_formspec.get_itemslot_bg(x, y, w, h)
|
||||
local out = ""
|
||||
for i = 0, w - 1, 1 do
|
||||
for j = 0, h - 1, 1 do
|
||||
out = out .."image["..x+i..","..y+j..";1,1;mcl_formspec_itemslot.png]"
|
||||
end
|
||||
end
|
||||
return out
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue