noisiv 1
noisiv
Manwe Work 1
Manwe Work
farkmt2official 1
farkmt2official
mavzermete 1
mavzermete
dreamstone 1
dreamstone
Fethi Polat 1
Fethi Polat
Bvural41 1
Bvural41
Hikaye Ekle
Kaynak ikonu

[PY] Premium Affect Göster/Gizle 1

indirmek için izniniz yok
  • Konuyu başlatan Konuyu başlatan therasmus
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 17
  • Görüntüleme Görüntüleme 4K

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

Sol üstteki iconları gösterip gizlemeye yarar.

root/game.py içinde

arat;
Python:
player.SetGameWindow(self)

altına ekle;
Python:
        self.AffectShowHideBtn = ui.CheckBox()
        self.AffectShowHideBtn.SetEvent(ui.__mem_func__(self.__AffectShow), "ON_CHECK", True)
        self.AffectShowHideBtn.SetEvent(ui.__mem_func__(self.__AffectHide), "ON_UNCKECK", False)
        self.AffectShowHideBtn.SetCheckStatus(constInfo.AffectShowHide)
        self.AffectShowHideBtn.SetPosition(0, 0)
        self.AffectShowHideBtn.Show()

game.py en alta ya da müsait bir yere ekle;
Python:
    def __AffectShow(self):
        constInfo.AffectShowHide = 1
        if constInfo.AffectShowHide == 1:
            self.affectShower.Show()
        chat.AppendChat(chat.CHAT_TYPE_INFO, "<Sistem> Ikonlar gosterildi.")

    def __AffectHide(self):
        constInfo.AffectShowHide = 0
        if constInfo.AffectShowHide == 0:
            self.affectShower.Hide()
        chat.AppendChat(chat.CHAT_TYPE_INFO, "<Sistem> Ikonlar gizlendi.")

root/costinfo.py müsait bir yere ekle;
Python:
AffectShowHide = 1

KANIT;
17-AffectShow.PNG
17-AffectHide.PNG


Dosyalarınızda CheckBox ekli olmayabilir. ui.py'de CheckBox'ı aratıp kontrol edebilirsiniz.
Eğer yoksa altan dosyayı indirip ekleyin.


 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst