Ayyıldız2 | 2008 TR Yapısı • 1-99 Orta Emek Destan • Oto Avsız • 10 Temmuz 21:00 HEMEN TIKLA!
Ticaret esnasında yanlışlıkla kabul butonuna basıldığında alınan bir güvenlik önlemidir.
root > uiexchange.py açılır
aratılır ;
Kod:def AcceptExchange(self):
kod satırı silinir veya değiştirilir ;Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Kod:def AcceptExchange(self): import uiCommon questionDialog = uiCommon.QuestionDialog3() questionDialog.SetText1(localeInfo.TICARET_SORGU1) questionDialog.SetText2(localeInfo.TICARET_SORGU2) questionDialog.SetText3(localeInfo.TICARET_SORGU3) questionDialog.SetAcceptEvent(ui.__mem_func__(self.Onayla)) questionDialog.SetCancelEvent(ui.__mem_func__(self.Reddet)) questionDialog.Open() self.questionDialog = questionDialog def Onayla(self): self.questionDialog.Close() net.SendExchangeAcceptPacket() self.AcceptButton.Disable() snd.PlaySound('sound/effect/etc/levelup_2/levelup1_2.wav') def Reddet(self): self.questionDialog.Close()
root > uicommon.py açılır ve en alta eklenir;Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.Kod:class QuestionDialog3(QuestionDialog): def __init__(self): QuestionDialog.__init__(self) self.__CreateDialog() def __del__(self): QuestionDialog.__del__(self) def __CreateDialog(self): pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "uiscript/questiondialog3.py") self.board = self.GetChild("board") self.textLine1 = self.GetChild("message1") self.textLine2 = self.GetChild("message2") self.textLine3 = self.GetChild("message3") self.acceptButton = self.GetChild("accept") self.cancelButton = self.GetChild("cancel") def SetText1(self, text): self.textLine1.SetText(text) def SetText2(self, text): self.textLine2.SetText(text) def SetText3(self, text): self.textLine3.SetText(text)
verdiğim dosyayı uiscript içerisinde atın ;
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
locale_tr > locale_game.txt ekle (Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.)
Kod:TICARET_SORGU1 Birilerine birşeyler teslim etmek üzeresin. TICARET_SORGU2 Bu geri alınamaz. Herşeyin doğru olduğuna, TICARET_SORGU3 emin misin?
Düzenlemeye dair görüntü :
![]()
Tebrikler Başarılarının Devamını Diliyorum.
Sistem hatasız ama baska birşeyleri kapatıyor ''o'' uzantıyı kullanamıyorsun kolay gelsin
Sistem hatasız ama baska birşeyleri kapatıyor ''o'' uzantıyı kullanamıyorsun kolay gelsin
ama baska birşeyleri kapatıyor
derken ?
sistemde ufak bi hata var buton içine giriyor çözümü ise
def AcceptExchange(self):
import uiCommon
questionDialog = uiCommon.QuestionDialog3()
questionDialog.SetText1(localeInfo.TICARET_SORGU1)
questionDialog.SetText2(localeInfo.TICARET_SORGU2)
questionDialog.SetText3(localeInfo.TICARET_SORGU3)
questionDialog.SetAcceptEvent(ui.__mem_func__(self.Onayla))
questionDialog.SetCancelEvent(ui.__mem_func__(self.Reddet))
questionDialog.Open()
self.questionDialog = questionDialog
def Onayla(self):
self.questionDialog.Close()
net.SendExchangeAcceptPacket()
self.AcceptButton.Enable()
def Reddet(self):
self.questionDialog.Close()
root > uiexchange.py
açılır
aratılır ;
Kod:
def AcceptExchange(self):
aratılır ;
Kod:
def AcceptExchange(self):
def AcceptExchange(self):
import uiCommon
questionDialog = uiCommon.QuestionDialog3()
questionDialog.SetText1(localeInfo.TICARET_SORGU1)
questionDialog.SetText2(localeInfo.TICARET_SORGU2)
questionDialog.SetText3(localeInfo.TICARET_SORGU3)
questionDialog.SetAcceptEvent(ui.__mem_func__(self.Onayla))
questionDialog.SetCancelEvent(ui.__mem_func__(self.Reddet))
questionDialog.Open()
self.questionDialog = questionDialog
def Onayla(self):
self.questionDialog.Close()
net.SendExchangeAcceptPacket()
self.AcceptButton.Enable()
def Reddet(self):
self.questionDialog.Close()
sistemde ufak bi hata var buton içine giriyor çözümü ise
root > uiexchange.pyaçılır
aratılır ;
Kod:
def AcceptExchange(self):
def AcceptExchange(self):
import uiCommon
questionDialog = uiCommon.QuestionDialog3()
questionDialog.SetText1(localeInfo.TICARET_SORGU1)
questionDialog.SetText2(localeInfo.TICARET_SORGU2)
questionDialog.SetText3(localeInfo.TICARET_SORGU3)
questionDialog.SetAcceptEvent(ui.__mem_func__(self.Onayla))
questionDialog.SetCancelEvent(ui.__mem_func__(self.Reddet))
questionDialog.Open()
self.questionDialog = questionDialog
def Onayla(self):
self.questionDialog.Close()
net.SendExchangeAcceptPacket()
self.AcceptButton.Enable()
def Reddet(self):
self.questionDialog.Close()
sistemi kullanma bug var ticarette degil başka birşeyde.
- 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)
Benzer konular
- Cevaplar
- 23
- Görüntüleme
- 792
- Cevaplar
- 8
- Görüntüleme
- 569
- Cevaplar
- 8
- Görüntüleme
- 403
- Cevaplar
- 3
- Görüntüleme
- 596
- Cevaplar
- 4
- Görüntüleme
- 282