ItemRenderer not working as expected
Something is wrong while using multiple item renderers with different size. Also clouds are changing color after using item renderer.
Reproduction code for second window:
local test1 = []
for(local i = 0;i<1;i++){
test1.append(ItemRender(0,0,0,0,"ITMW_1H_SWORD_L_03"))
if (i % 2 == 0) {
test1[i].setSizePx(nax(500), nay(500))
} else {
test1[i].setSizePx(nax(500), nay(1200))
}
test1[i].setPosition(3400 + (1000 * (i % 5)), 1200 + ((i / 5) * 300))
test1[i].visible = true
}
Reproduction code for thrid window:
local test1 = []
for(local i = 0;i<2;i++){
test1.append(ItemRender(0,0,0,0,"ITMW_1H_SWORD_L_03"))
if (i % 2 == 0) {
test1[i].setSizePx(nax(500), nay(500))
} else {
test1[i].setSizePx(nax(500), nay(1200))
}
test1[i].setPosition(3400 + (1000 * (i % 5)), 1200 + ((i / 5) * 300))
test1[i].visible = true
}