Simya Aktif Parlaması

Skyinn

Üye
Üye
Mesaj
2
Beğeni
4
Puan
50
Ticaret Puanı
0
Birçok defa araştırmama rağmen bulamadığım konulardan biriydi.Hazır elimde varken paylaşayım dedim.
Not:Mainline,martysama ve diğer fileslerde denenmiştir.


Tüm işlemler client/pack taraflı olup tüm kodlar uidragonsoul.py üzerinden düzenlenecek.

uidragonsoul.py:
Genişlet Daralt Kopyala
# aratılır
 def RefreshEquipSlotWindow(self):
# içerisinde bulunur
self.wndEquip.RefreshSlot()
# altına eklenir
        if self.isActivated:
            self.__GlowEquipSlots(True)

    def __GlowEquipSlots(self, enable):
        for i in xrange(6):  # sende yuva sayısı farklıysa değiştir
            global_pos = self.__InventoryLocalSlotPosToGlobalSlotPos(
                player.INVENTORY,
                player.DRAGON_SOUL_EQUIPMENT_SLOT_START + i
            )
            itemVnum = player.GetItemIndex(global_pos)
            local_slot_idx = player.DRAGON_SOUL_EQUIPMENT_SLOT_START + i

            if itemVnum != 0 and enable:
                self.wndEquip.ActivateSlot(local_slot_idx)
            else:
                self.wndEquip.DeactivateSlot(local_slot_idx)

        self.wndEquip.RefreshSlot()



# aratılır
 def ActivateDragonSoulByExtern(self, deck):
# içerisinde bulunur.
self.RefreshEquipSlotWindow()
# altına eklenir
        self.__GlowEquipSlots(True)



# aratılır
def DeactivateDragonSoul(self):
# içerisinde bulunur.
self.activateButton.SetUp()
# altına eklenir
        self.__GlowEquipSlots(False)

Kanıt:
Linkleri görebilmek için giriş yap veya kayıt ol.

 
Geri
Üst