Code: Select all
table.add{type="sprite-button", name="button_" .. id, sprite="item/" .. icon}
table["button_" .. id].style.width = 34
table["button_" .. id].style.height = 34
Code: Select all
table.add{type="sprite", name="button_" .. id, sprite="item/" .. icon}
table["button_" .. id].style.width = 34
table["button_" .. id].style.height = 34