Compare commits
9 Commits
master
...
formspec-v
Author | SHA1 | Date |
---|---|---|
AFCMS | 4de3f1265b | |
AFCMS | ac86cf2214 | |
AFCMS | 966991ce4d | |
AFCMS | 1673c62391 | |
AFCMS | e28f7e1ee9 | |
AFCMS | bf53ca18d6 | |
AFCMS | 0bf3dde857 | |
AFCMS | 09739b0d89 | |
AFCMS | 8fac3d1189 |
|
@ -9,3 +9,15 @@ function mcl_formspec.get_itemslot_bg(x, y, w, h)
|
|||
end
|
||||
return out
|
||||
end
|
||||
|
||||
--This function will replace mcl_formspec.get_itemslot_bg then every formspec will be upgrade to version 4
|
||||
function mcl_formspec.get_itemslot_bg_v4(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+(i*0.25)..","..y+j+(j*0.25)..";1,1;mcl_formspec_itemslot.png]"
|
||||
end
|
||||
end
|
||||
return out
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue