xranzei 1
xranzei
zendor2 1
zendor2
Bvural41 1
Bvural41
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Almira2 1
Almira2
romegames 1
romegames
D 1
delimuratt
melankolıa18 1
melankolıa18
shrpnl 1
shrpnl
Fethi Polat 1
Fethi Polat
kralhakan2009 1
kralhakan2009
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Oyun Seçeneklerine Oto Mesaj Ekleme [Python]

  • Konuyu başlatan Konuyu başlatan Aven Flipers
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 45
  • Görüntüleme Görüntüleme 6K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Aven Flipers

Level 5
TM Üye
Katılım
30 Eki 2014
Konular
61
Mesajlar
768
Çözüm
12
Online süresi
16d 12h
Reaksiyon Skoru
60
Altın Konu
0
TM Yaşı
11 Yıl 7 Ay 11 Gün
Başarım Puanı
125
MmoLira
962
DevLira
0
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

Merhaba arkadaşlar :) KONUYU Bulamadım açmak istedim varsa konu kapanabilir. ( KONU ALINTIDIR )


root/constinfo.py açılır ve şu kod eklenir;

Kod:
WHISPER_OTO_MESAJ = 0
WHISPER_OTO_MESAJ_TEXT = ""


root/uigameoption.py açılır ve aratılır;

Kod:
def __Initialize(self):

En alta şu kod eklenir:

Kod:
self.showotoTextButtonList = []


Tekrar aratılır;

Kod:
self.showDamageButtonList.append(GetObject("show_d amage_off_button"))


Altına şu kodlar eklenir:

Kod:
self.showotoTextButtonList.append(GetObject("ototext_on_button2"))
            self.showotoTextButtonList.append(GetObject("ototext_off_button2"))


Tekrar aratılır;

Kod:
self.showDamageButtonList[1].SAFE_SetEvent(self.__OnClickShowDamageOffButton)


Altına şu kodlar eklenir:

Kod:
self.showotoTextButtonList[0].SAFE_SetEvent(self.__OnClickOtoTextOnButton2)
        self.showotoTextButtonList[1].SAFE_SetEvent(self.__OnClickOtoTextOffButton2)



Tekrar aratılır;

Kod:
def OnUpdate(self):


Altına şu kodlar eklenir:

Kod:
if constInfo.bildirimler == 0:            if tek == 0:
                self.showotoTextButtonList[0].Down()
                self.showotoTextButtonList[1].SetUp()
                tek = 1
            #self.showotoTextButtonList[0].SetUpVisual("d:/ymir work/ui/public/middle_button_03.sub")
        else:
            if tek == 0:
                self.showotoTextButtonList[0].SetUp()
                self.showotoTextButtonList[1].Down()
                tek = 1
            #self.showotoTextButtonList[1].SetUpVisual("d:/ymir work/ui/public/middle_button_03.sub")
            #self.showotoTextButtonList[0].SetUp()
            #self.showotoTextButtonList[1].Down()



Tekrar aratılır;

Kod:
def __IsSpecialMap(self):
Altına şu kodlar eklenir:
Kod:
def __OnClickOtoTextOnButton2(self):        global tek
        tek = 0
        self.showotoTextButtonList[0].Down()
        self.showotoTextButtonList[1].SetUp()
       
    def __OnClickOtoTextOffButton2(self):
        global tek
        tek = 0
        self.showotoTextButtonList[0].SetUp()
        self.showotoTextButtonList[1].Down()


ve root bölümüde bitti

sıra uiscript'e geldi

uiscript/gameoption.py açılır ve şu kodlar en alta eklenir;


Kod:
                {                    "name" : "ototext_on_button2",
                    "type" : "radio_button",


                    "x" : LINE_DATA_X,
                    "y" : 240 + EK_Y + 25,


                    "text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_ON,


                    "default_image" : ROOT_PATH + "middle_button_01.sub",
                    "over_image" : ROOT_PATH + "middle_button_02.sub",
                    "down_image" : ROOT_PATH + "middle_button_03.sub",
                },
                {
                    "name" : "ototext_off_button2",
                    "type" : "radio_button",


                    "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
                    "y" : 240 + EK_Y + 25,


                    "text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF,


                    "default_image" : ROOT_PATH + "middle_button_01.sub",
                    "over_image" : ROOT_PATH + "middle_button_02.sub",
                    "down_image" : ROOT_PATH + "middle_button_03.sub",
                },




ÇALIŞTIĞINA DAİR KANIT
 
Son düzenleme:

En Çok Reaksiyon Alan Mesajlar

Konu ile ilgili görüntü ekler misiniz?
 
Çalıştığına dair görüntü eklermisin @Aven Flipers;
 
Moderatör tarafında düzenlendi:
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

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

Geri
Üst