1
0
Fork 0

Compare commits

...

9 Commits

Author SHA1 Message Date
AFCMS 4de3f1265b Merge branch 'master' into formspec-v4 2021-06-04 19:11:59 +02:00
AFCMS ac86cf2214 Merge branch 'master' into formspec-v4 2021-05-27 09:11:03 +02:00
AFCMS 966991ce4d Merge branch 'master' into formspec-v4 2021-05-19 00:20:13 +02:00
AFCMS 1673c62391 Merge branch 'master' into formspec-v4 2021-05-04 10:30:00 +02:00
AFCMS e28f7e1ee9 Merge branch 'master' into formspec-v4 2021-05-03 23:25:59 +02:00
AFCMS bf53ca18d6 Merge branch 'master' into formspec-v4 2021-04-29 23:58:58 +02:00
AFCMS 0bf3dde857 Merge branch 'master' into formspec-v4 2021-04-26 11:20:46 +02:00
AFCMS 09739b0d89 Merge branch 'master' into formspec-v4 2021-04-26 08:30:53 +02:00
AFCMS 8fac3d1189 add basic temp function to get v4 itemslots 2021-04-25 23:35:27 +02:00
1 changed files with 12 additions and 0 deletions

View File

@ -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