Merhaba arkadaşlar,
Konu başlığını tam uygun koyamamış olabilirim.
Normal de girişte sunucuya bağlanıyorsun, sunucuya bağlandın,giriş yapılıyor der bu konu o kısmın değiştirilmiş halidir.
Video'da anlarsınız.
YABANCI FORUMDAN ALINTIDIR.!
Konu başlığını tam uygun koyamamış olabilirim.
Normal de girişte sunucuya bağlanıyorsun, sunucuya bağlandın,giriş yapılıyor der bu konu o kısmın değiştirilmiş halidir.
Video'da anlarsınız.
Kod:
intrologin.py açılır
arat def Connect(self, id, pwd): ve sil
self.stream.popupWindow.Close()
self.stream.popupWindow.Open(localeInfo.LOGIN_CONNETING, self.SetPasswordEditLineFocus, localeInfo.UI_CANCEL)
eklenir
self.carga_fire()
constInfo.ACCOUNT_NAME = str(self.idEditLine.GetText())
self.SetPasswordEditLineFocus()
arat def OnHandShake(self): ve sil
self.PopupDisplayMessage(localeInfo.LOGIN_CONNECT_SUCCESS)
arat def OnLoginStart(self): ve sil
self.PopupDisplayMessage(localeInfo.LOGIN_PROCESSING)
eklenir
snd.PlaySound("sound/ui/loginok.wav")
arat def __OnAcceptMatrixCardData(self): ve sil
self.PopupNotifyMessage(localeInfo.LOGIN_PROCESSING)
dosya sonuna ekle
def carga_fire(self):
self.AboutWindow = ui.ThinBoard()
self.AboutWindow.SetParent(self)
self.AboutWindow.SetSize(280,110)
self.AboutWindow.SetWindowHorizontalAlignCenter()
self.AboutWindow.SetWindowVerticalAlignCenter()
self.AboutWindow.SetPosition(0,0)
self.AboutWindow.Show()
self.AboutWindow.x_counter = 450
self.AboutWindow.text1 = ui.TextLine()
self.AboutWindow.text1.SetParent(self.AboutWindow)
self.AboutWindow.text1.SetWindowHorizontalAlignCenter()
self.AboutWindow.text1.SetHorizontalAlignCenter()
self.AboutWindow.text1.SetPosition(0,5)
self.AboutWindow.text1.SetText("Inicio Arrival2")
self.AboutWindow.text1.SetPackedFontColor(ui.GenerateColor(58, 141, 221))
self.AboutWindow.text1.Show()
self.AboutWindow.text2 = ui.TextLine()
self.AboutWindow.text2.SetParent(self.AboutWindow)
self.AboutWindow.text2.SetPosition(8,18)
self.AboutWindow.text2.SetText("Bienvenido Arrival2.")
self.AboutWindow.text1.SetPackedFontColor(ui.GenerateColor(40, 217, 8))
self.AboutWindow.text2.Show()
self.AboutWindow.text3 = ui.TextLine()
self.AboutWindow.text3.SetParent(self.AboutWindow)
self.AboutWindow.text3.SetPosition(8,18+13)
self.AboutWindow.text3.SetText("Disfrutalo!")
self.AboutWindow.text1.SetPackedFontColor(ui.GenerateColor(40, 217, 8))
self.AboutWindow.text3.Show()
self.AboutWindow.text4 = ui.TextLine()
self.AboutWindow.text4.SetParent(self.AboutWindow)
self.AboutWindow.text4.SetPosition(8,18+13*3)
self.AboutWindow.text4.SetText("Si has encontrado algun error, deberas comunicarlo ")
self.AboutWindow.text1.SetPackedFontColor(ui.GenerateColor(40, 217, 8))
self.AboutWindow.text4.Show()
self.AboutWindow.text5 = ui.TextLine()
self.AboutWindow.text5.SetParent(self.AboutWindow)
self.AboutWindow.text5.SetPosition(8,18+13*4)
self.AboutWindow.text5.SetText("Comenzaras tu gran aventura.")
self.AboutWindow.text1.SetPackedFontColor(ui.GenerateColor(40, 217, 8))
self.AboutWindow.text5.Show()
self.AboutWindow.text6 = ui.TextLine()
self.AboutWindow.text6.SetParent(self.AboutWindow)
self.AboutWindow.text6.SetPosition(200,18+13*5)
self.AboutWindow.text6.SetText("Tiempo: %d" % self.AboutWindow.x_counter)
self.AboutWindow.text1.SetPackedFontColor(ui.GenerateColor(40, 217, 8))
self.AboutWindow.text6.Show()
arat def onupdate ve değiştir
AboutWindow = None
def OnUpdate(self):
if self.AboutWindow:
if self.AboutWindow.x_counter > 1:
self.AboutWindow.x_counter -=1
self.AboutWindow.text6.SetText("Cargando : %0.1f" % (self.AboutWindow.x_counter/25.0))
elif self.AboutWindow.x_counter == 1:
self.AboutWindow.Hide()
# self.AboutWindow.Delete()
ServerStateChecker.Update()
YABANCI FORUMDAN ALINTIDIR.!
Son düzenleme:
Teşekkürler
Rica Ederim.
Teşekkürler
Rica Ederim.
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 5
- Görüntüleme
- 404
- Soru
Cevaplanmadı
Efsun Botunu K Envantere uyarlama
- Cevaplar
- 6
- Görüntüleme
- 536
Altın Konu
LONCALAR İÇİN YENİ SKOR BOARD
- Cevaplar
- 19
- Görüntüleme
- 7K