- Mesaj
- 128
- Çözümler
- 2
- Beğeni
- 20
- Puan
- 469
- Ticaret Puanı
- 0
benim bloğum şu şekilde
eklemeek istediğim
bu ve
bu
doğru yeri bulup bir türlü ekleyemedim yardımcı olurmusunuz.
Python:
def RefreshBagSlotWindow(self):
getItemVNum=player.GetItemIndex
getItemCount=player.GetItemCount
setItemVNum=self.wndItem.SetItemSlot
for i in xrange(player.INVENTORY_PAGE_SIZE):
slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
itemCount = getItemCount(slotNumber)
# itemCount == 0�̸� ������ ����.
if 0 == itemCount:
self.wndItem.ClearSlot(i)
continue
elif 1 == itemCount:
itemCount = 0
itemVnum = getItemVNum(slotNumber)
setItemVNum(i, itemVnum, itemCount)
## �ڵ����� (HP: #72723 ~ #72726, SP: #72727 ~ #72730) Ư��ó�� - �������ε��� ���Կ� Ȱ��ȭ/��Ȱ��ȭ ǥ�ø� ���� �۾��� - [hyo]
if not constInfo.IS_AUTO_POTION(itemVnum):
if app.ENABLE_HIGHLIGHT_NEW_ITEM:
if not slotNumber in self.liHighlightedItems:
self.wndItem.DeactivateSlot(i)
else:
self.wndItem.DeactivateSlot(i)
for j in xrange(acce.WINDOW_MAX_MATERIALS):
(isHere, iCell) = acce.GetAttachedItem(j)
if isHere:
if iCell == slotNumber:
self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
if not slotNumber in self.listAttachedAcces:
self.listAttachedAcces.append(slotNumber)
slotNumberChecked = 1
else:
if slotNumber in self.listAttachedAcces and not slotNumberChecked:
self.wndItem.DeactivateSlot(i)
self.listAttachedAcces.remove(slotNumber)
elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
if not slotNumber in self.liHighlightedItems:
self.wndItem.DeactivateSlot(i)
eklemeek istediğim
bu ve
Python:
if not constInfo.IS_AUTO_POTION(itemVnum):
if app.ENABLE_HIGHLIGHT_NEW_ITEM:
if not slotNumber in self.liHighlightedItems:
self.wndItem.DeactivateSlot(i)
else:
self.wndItem.DeactivateSlot(i)
bu
Python:
elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
if not slotNumber in self.liHighlightedItems:
self.wndItem.DeactivateSlot(i)
doğru yeri bulup bir türlü ekleyemedim yardımcı olurmusunuz.