Insert sash on inventory

  • Autor subiect Ionut
  • Dată creare
  • Răspunsuri: Răspunsuri 5
  • Vizualizări: Vizualizări 2K
I

Ionut

Nume resursa: Insert sash on inventory
Poze:
QZ4LW4r.png

Cu fix/fara: Cu fix
Download: Nu e cazul
Alte obiectii: Nu e cazul


Open uiinventory.py

Cauta/Search

Cod:
        self.wndItem.RefreshSlot()
       if self.wndBelt:
           self.wndBelt.RefreshSlot()

Adauga sub/Add below

Cod:
    def RefreshNewSlotAcce(self):
       getAcceVnum=player.GetItemIndex
       
       illumina_slot_acce = item.COSTUME_SLOT_COUNT
       for acce_illumina in xrange(illumina_slot_acce):
           slot_Acce = item.COSTUME_SLOT_START + acce_illumina
           self.wndEquip.SetItemSlot(slot_Acce, getAcceVnum(slot_Acce), 0)

       self.wndEquip.RefreshSlot()

Cauta/Search

Cod:
    def Show(self):
       self.__LoadWindow()

Adauga sub/Add below

Cod:
self.RefreshNewSlotAcce()

Cauta/Search

Cod:
            setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount)
           
       getItemVNum=player.GetItemIndex

Adauga sub/Add below

Cod:
        illumina_slot_acce = item.COSTUME_SLOT_COUNT
       for acce_illumina in xrange(illumina_slot_acce):
           slot_Acce = item.COSTUME_SLOT_START + acce_illumina
           self.wndEquip.SetItemSlot(slot_Acce, getItemVNum(slot_Acce), 0)


open inventorywindow.py (locale)

Cauta/Search

Cod:
import item

Adauga sub/Add below
Cod:
SLOT_ACCE_ILLUMINA = item.COSTUME_SLOT_START

Cauta/Search

Cod:
"slot" : (

Adauga/Add below
Cod:
{"index":SLOT_ACCE_ILLUMINA+2, "x":80, "y":3, "width":32, "height":32}, # Slot Acce Illumina