Hallo,
ich habe das verbaut:
Bitte melden Sie sich an, um diesen Link zu sehen.
Wie in den Kommentaren da erwähnt funktioniert der ActiveSlot Effekt nicht.
Es hat wohl was mit dem Schulterband System zutun. Hat da jemand einen Fix für?
Ausschnitt aus uiinventory:
Python
- if constInfo.IS_AUTO_POTION(itemVnum):
- # metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
- metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
- if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
- slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex
- isActivated = 0 != metinSocket[0]
- if isActivated:
- self.wndItem.ActivateSlot(slotNumber)
- potionType = 0;
- if constInfo.IS_AUTO_POTION_HP(itemVnum):
- potionType = player.AUTO_POTION_TYPE_HP
- elif constInfo.IS_AUTO_POTION_SP(itemVnum):
- potionType = player.AUTO_POTION_TYPE_SP
- usedAmount = int(metinSocket[1])
- totalAmount = int(metinSocket[2])
- player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotPos(i))
- else:
- self.wndItem.DeactivateSlot(slotNumber)
- if app.ENABLE_NEW_TYPE_OF_POTION:
- if constInfo.IS_NEW_SPEED_POTION(itemVnum):
- metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
- if slotNumber >= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex:
- slotNumber -= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex
- isActivated = 0 != metinSocket[0]
- if isActivated:
- self.wndItem.ActivateSlot(slotNumber)
- else:
- self.wndItem.DeactivateSlot(slotNumber)
- if app.ENABLE_SASH_SYSTEM:
- slotNumberChecked = 0
- if not constInfo.IS_AUTO_POTION(itemVnum):
- # if app.ENABLE_HIGHLIGHT_SYSTEM:
- # if not slotNumber in self.listHighlightedSlot:
- # self.wndItem.DeactivateSlot(i)
- # else:
- self.wndItem.DeactivateSlot(i)
- for j in xrange(sash.WINDOW_MAX_MATERIALS):
- (isHere, iCell) = sash.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.listAttachedSashs:
- self.listAttachedSashs.append(slotNumber)
- slotNumberChecked = 1
- else:
- if slotNumber in self.listAttachedSashs and not slotNumberChecked:
- self.wndItem.DeactivateSlot(i)
- self.listAttachedSashs.remove(slotNumber)
- self.wndItem.RefreshSlot()
Ich hab auch ein bisschen mit prints gedebugged und er geht auch in das ActivateSlot, es kommt aber kein Effekt