Could somebody tell me how to create a virtual item in GUI?
or
connected with:
doesn't work for me
Code:
UIItem
id: skillItem1
phantom: true
size: 34 34
padding: 1
font: verdana-11px-rounded
border-color: white
margin-top: 6
margin-left: 6
Code:
Item
id: skillItem1
phantom: true
size: 34 34
padding: 1
font: verdana-11px-rounded
border-color: white
margin-top: 6
margin-left: 6
connected with:
Code:
selectedItem = skillsPanel:getChildById('skillItem1')
--selectedItem.item = {}
--local item = {}
--item.ptr:setCount(1) -- reset item count for image
selectedItem:setStyle('UIItem')
selectedItem:setVirtual(true)
selectedItem:setItemId(7367)