Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if app.WJ_ENABLE_TRADABLE_ICON:
- def CantTradableItem(self, destSlotIndex, srcSlotIndex):
- if True == exchange.GetAcceptFromTarget():
- return
- itemInvenPage = srcSlotIndex / player.INVENTORY_PAGE_SIZE
- localSlotPos = srcSlotIndex - (itemInvenPage * player.INVENTORY_PAGE_SIZE)
- self.lockedItems[destSlotIndex] = (itemInvenPage, localSlotPos)
- if self.wndInventory.GetInventoryPageIndex() == itemInvenPage and self.IsShow():
- self.wndInventory.wndItem.SetCantMouseEventSlot(localSlotPos)
- def RefreshLockedSlot(self):
- if self.wndInventory:
- for exchangePos, (itemInvenPage, itemSlotPos) in self.lockedItems.items():
- if self.wndInventory.GetInventoryPageIndex() == itemInvenPage:
- self.wndInventory.wndItem.SetCantMouseEventSlot(itemSlotPos)
- self.wndInventory.wndItem.RefreshSlot()
- def BindInterface(self, interface):
- self.interface = interface
- def SetInven(self, wndInventory):
- from _weakref import proxy
- self.wndInventory = proxy(wndInventory)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement