def RefreshOwnerSlot(self): for i in xrange(exchange.EXCHANGE_ITEM_MAX_NUM): itemIndex = exchange.GetItemVnumFromSelf(i) itemCount = exchange.GetItemCountFromSelf(i) if 1 == itemCount: itemCount = 0 self.OwnerSlot.SetItemSlot(i, itemIndex, itemCount) self.OwnerSlot.RefreshSlot()
def RefreshOwnerSlot(self): for i in xrange(exchange.EXCHANGE_ITEM_MAX_NUM): itemIndex = exchange.GetItemVnumFromSelf(i) itemCount = exchange.GetItemCountFromSelf(i) if 1 == itemCount: itemCount = 0 self.OwnerSlot.SetItemSlot(i, itemIndex, itemCount) if app.ENABLE_CHANGELOOK_SYSTEM: itemTransmutedVnum = exchange.GetItemTransmutation(i, True) if itemTransmutedVnum: self.OwnerSlot.DisableCoverButton(i) else: self.OwnerSlot.EnableCoverButton(i) self.OwnerSlot.RefreshSlot()