i'm getting table with opCode with icon number of spells.xml (server-side)
how i can use this same icon in setImageSource without creating all images .png again? thanks
edit: can close..
how i can use this same icon in setImageSource without creating all images .png again? thanks
edit: can close..
Code:
icon:setImageSource('/images/game/spells/defaultspells')
local spicon = Spells.getClientId(tabela[i].instantName)
icon:setImageClip((((spicon -1)%12)*32) .. ' ' .. ((math.ceil(spicon/12)-1)*32) .. ' 32 32')
Last edited: