- Katılım
- 18 Eyl 2017
- Konular
- 17
- Mesajlar
- 568
- Çözüm
- 1
- Online süresi
- 29d 22h
- Reaksiyon Skoru
- 307
- Altın Konu
- 0
- TM Yaşı
- 8 Yıl 9 Ay 1 Gün
- Başarım Puanı
- 161
- Yaş
- 29
- MmoLira
- 4,012
- DevLira
- 0
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!
https://forum.turkmmo.com/konu/3579684-python-hizli-oyun-sonu-basit-ve-sade-anlatim/![]()
![]()
root / uisystem.py açılır importlara eklenir.
Kod:import uiCommon
aratılır.
Kod:def __ClickExitButton(self):
kod bloğu tamamen değiştirilir.
Kod:def __ClickExitButton(self): self.Close() questionDialog = uiCommon.QuestionDialogHizliCikis() # questionDialog.SetText2(localeInfo.HIZLI_CIKIS_BILGILENDIRME) questionDialog.SetText("Oyunu kapatmak istiyor musun?") questionDialog.SetAcceptEvent(ui.__mem_func__(self.__EvetKapat)) questionDialog.SetCancelEvent(ui.__mem_func__(self.__HayirKapatma)) questionDialog.Open() self.questionDialog = questionDialog def __EvetKapat(self): app.Exit() def __HayirKapatma(self): self.questionDialog.Close()
root / uicommon.py açılır. ve aratılır
Kod:class QuestionDialogItem(ui.ScriptWindow):
Kod bloğunun altına bu blok eklenir.
Kod:class QuestionDialogHizliCikis(ui.ScriptWindow): def __init__(self): ui.ScriptWindow.__init__(self) self.__CreateDialog() def __del__(self): ui.ScriptWindow.__del__(self) def __CreateDialog(self): pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "uiscript/questiondialog_hizlicikis.py") self.board = self.GetChild("board") # self.textLine2 = self.GetChild("message_duello") self.textLine = self.GetChild("message") self.acceptButton = self.GetChild("accept") self.cancelButton = self.GetChild("cancel") def Open(self): self.SetCenterPosition() self.SetTop() self.Show() def Close(self): self.Hide() def SetWidth(self, width): height = self.GetHeight() self.SetSize(width, height) self.board.SetSize(width, height) self.SetCenterPosition() self.UpdateRect() def SAFE_SetAcceptEvent(self, event): self.acceptButton.SAFE_SetEvent(event) def SAFE_SetCancelEvent(self, event): self.cancelButton.SAFE_SetEvent(event) def SetAcceptEvent(self, event): self.acceptButton.SetEvent(event) def SetCancelEvent(self, event): self.cancelButton.SetEvent(event) def SetText(self, text): self.textLine.SetText(text) # def SetText2(self, text): # self.textLine2.SetText(text) def SetAcceptText(self, text): self.acceptButton.SetText(text) def SetCancelText(self, text): self.cancelButton.SetText(text) def OnPressEscapeKey(self): self.Close() return TRUE
locale_tr / locale_interface.txt açılır ve aratılır
Kod:SYSTEM_EXIT Oyun Sonu
değiştirilir.
Kod:SYSTEM_EXIT Hızlı Oyun Sonu
Son olarak vereceğim indirme linkindeki dosya uiscript'in içine atılır !
LİNK:Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
VT:Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
https://forum.turkmmo.com/konu/3205608-rqk-oyun-ici-hizli-cikis-sistemi/
Daha önceden açılmış bir paylaşım konusu olduğu için kapatıldı.


