Çözüldü [Python]İletişim Sistemi İstek

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

H4ZEJ

Üye
Üye
15o2f.png

GMhyg.png

T5wpc.png

4aBvd.png


Elinde bu sistemin türkçe dosyaları olan varmı?
 
Son düzenleme:
Python:
def __ClickHelpTwoButton(self):
        self.Close()
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã deschizi fereastra de report?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.ReportWindowOpen))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.ReportWindowEnd))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def ReportWindowOpen(self):
        self.Close()
        self.questionDialog.Close()
        self.ReportLogin = ui.BoardWithTitleBar()
        self.ReportLogin.SetSize(400, 300)
        self.ReportLogin.SetCenterPosition()
        self.ReportLogin.AddFlag('float')
        self.ReportLogin.SetTitleName('Fereastrã de report')
        self.ReportLogin.SetCloseEvent(self.__ReportSend_FunctionsEND)
        self.ReportLogin.Show()
        self.comp = Component()

        self.send = self.comp.Button(self.ReportLogin, 'Trimite', '', 112, 202, self.__ReportSend_Functions, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.kurallar = self.comp.Button(self.ReportLogin, 'Reguli', '', 112, 232, self.__Kurallar, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.kapat = self.comp.Button(self.ReportLogin, 'Închide', ' ', 112, 262, self.WindowEND, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.slotbar_reports, self.report = self.comp.EditLine2(self.ReportLogin, '', 76, 105, 250, 75, 305)
        self.text = self.comp.TextLine(self.ReportLogin, 'Orice bug gãsit sau orice jucãtor care încalcã regulamentul, te rog', 75, 45, self.comp.RGB(255, 255, 255))
        self.text2 = self.comp.TextLine(self.ReportLogin, 'sã faci un raport în spaþiul liber de mai jos.', 75, 59, self.comp.RGB(255, 255, 255))
        self.text3 = self.comp.TextLine(self.ReportLogin, 'Scrie mesajul care vrei sã fie trimis cãtre Echipã:', 95, 80, self.comp.RGB(255, 255, 255))
       
    def __ReportSend_Functions(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã trimiþi acest mesaj?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.__GonderButonunuOnayladim))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.__GonderButonunuOnaylamadim))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def __GonderButonunuOnayladim(self):
        report = self.report.GetText()
        if report == "":
            self.Close()
            self.questionDialog.Close()
            import chat
            chat.AppendChat(chat.CHAT_TYPE_INFO, "[OrientalMT 2] > Nu poþi anula trimiterea mesajului.")
        elif len(report) < 30:
            self.Close()
            self.questionDialog.Close()
            import chat
            chat.AppendChat(chat.CHAT_TYPE_INFO, "[OrientalMT 2] > Lungimea mesajului trebuie sã fie între 30 ºi 120 de caractere.")
        else:
            self.Close()
            self.questionDialog.Close()
            self.ReportLogin.Hide()
            event.QuestButtonClick(constInfo.ReportLogin)
            constInfo.ReportEntered = report
           
    def __GonderButonunuOnaylamadim(self):
        self.Close()
        self.questionDialog.Close()
       
    def __ReportSend_FunctionsEND(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã închizi fereastra de report?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.__PencereyiKapatMesaji))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.__PencereyiKapatMesajiOnaylamadim))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def __PencereyiKapatMesaji(self):
        self.Close()
        self.questionDialog.Close()
        self.ReportLogin.Hide()
        self.KurallarOpen.Hide()
       
    def __PencereyiKapatMesajiOnaylamadim(self):
        self.Close()
        self.questionDialog.Close()
   
    def __Kurallar(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã deschizi regulamentul?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.__KurallarPenceresiniAc))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.__KurallarPenceresiniKapa))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def __KurallarPenceresiniAc(self):
        self.KurallarOpen = ui.BoardWithTitleBar()
        self.KurallarOpen.SetSize(370, 375)
        self.KurallarOpen.SetCenterPosition()
        self.KurallarOpen.AddFlag('float')
        self.KurallarOpen.SetTitleName('Regulament')
        self.KurallarOpen.SetCloseEvent(self.__Kurallar_END)
        self.KurallarOpen.Show()
        self.ReportLogin.Hide()
        self.comp2 = Component()
       
        self.send = self.comp2.Button(self.KurallarOpen, 'Înapoi', ' ', 98, 310, self.ReportWindowOpens, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.kapat = self.comp2.Button(self.KurallarOpen, 'Închide', ' ', 98, 340, self.WindowEND, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.text1 = self.comp2.TextLine(self.KurallarOpen, '1-) Numele nu trebuie sã conþinã cuvinte obscene.', 17, 45, self.comp.RGB(255, 255, 255))
        self.text2 = self.comp2.TextLine(self.KurallarOpen, '2-) Fãrã nick-uri gen GMxTWIX sau orice nume de acest tip.', 17, 59, self.comp.RGB(255, 255, 255))
        self.text3 = self.comp2.TextLine(self.KurallarOpen, '3-) Nu cereþi iteme - se pedepseºte cu mute 12 ore.', 17, 74, self.comp.RGB(255, 255, 255))
        self.text4 = self.comp2.TextLine(self.KurallarOpen, '4-) Modul serverului este unul de tip pvm-hard.', 17, 89, self.comp.RGB(255, 255, 255))
        self.text5 = self.comp2.TextLine(self.KurallarOpen, '5-) Nu adresa cuvinte obscene celorlalþi jucãtori.', 17, 104, self.comp.RGB(255, 255, 255))  
        self.text6 = self.comp2.TextLine(self.KurallarOpen, '6-) Nu abuzaþi de modul de joc LIBER.', 17, 119, self.comp.RGB(255, 255, 255))
        self.text7 = self.comp2.TextLine(self.KurallarOpen, '7-) Bugurile se raporteazã în panoul de repot (ESC).', 17, 134, self.comp.RGB(255, 255, 255))
        self.text8 = self.comp2.TextLine(self.KurallarOpen, '8-) Nu daþi datele de logare nimãnui.', 17, 149, self.comp.RGB(255, 255, 255))
        self.text9 = self.comp2.TextLine(self.KurallarOpen, '9-) Nu abuzaþi de buguri.', 17, 164, self.comp.RGB(255, 255, 255))
        self.text10 = self.comp2.TextLine(self.KurallarOpen, '10-) Respectaþi/faceþi cu stricteþe ce vã cere GM-ul.', 17, 179, self.comp.RGB(255, 255, 255))
        self.text11 = self.comp2.TextLine(self.KurallarOpen, '', 17, 194, self.comp.RGB(255, 255, 255))
        self.text12 = self.comp2.TextLine(self.KurallarOpen, 'Vã mulþumim pentru cã v-aþi fãcut timp sã citiþi regulamentul nostru.', 17, 209, self.comp.RGB(255, 255, 255))
        self.text13 = self.comp2.TextLine(self.KurallarOpen, 'Respectã acest regulament ºi nu vei avea probleme.', 17, 224, self.comp.RGB(255, 255, 255))
        self.text14 = self.comp2.TextLine(self.KurallarOpen, '', 17, 239, self.comp.RGB(255, 255, 255))
        self.text15 = self.comp2.TextLine(self.KurallarOpen, '', 17, 254, self.comp.RGB(255, 255, 255))
        self.text16 = self.comp2.TextLine(self.KurallarOpen, 'Viziteazã -> www.orientalmt2.com.', 17, 269, self.comp.RGB(255, 255, 255))
   
    def __KurallarPenceresiniKapa(self):
        self.Close()
        self.questionDialog.Close()
   
    def __Kurallar_END(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã închizi fereastra?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.__PencereyiKapatMesaji))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.__PencereyiKapatMesajiOnaylamadim))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def __PencereyiKapatMesaji(self):
        self.Close()
        self.questionDialog.Close()
        self.ReportLogin.Hide()
        self.KurallarOpen.Hide()
       
    def __PencereyiKapatMesajiOnaylamadim(self):
        self.Close()
        self.questionDialog.Close()
       
    def WindowEND(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã închizi fereastra?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.__PencereyiKapatMesaji))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.__PencereyiKapatMesajiOnaylamadim))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def __PencereyiKapatMesaji(self):
        self.Close()
        self.questionDialog.Close()
        self.ReportLogin.Hide()
        self.KurallarOpen.Hide()
       
    def __PencereyiKapatMesajiOnaylamadim(self):
        self.Close()
        self.questionDialog.Close()

    def ReportWindowOpens(self):
        import app
        self.Close()
        self.questionDialog.Close()
        self.ReportLogin = ui.BoardWithTitleBar()
        self.ReportLogin.SetSize(400, 300)
        self.ReportLogin.SetCenterPosition()
        self.ReportLogin.AddFlag('float')
        self.ReportLogin.SetTitleName('Fereastrã de report')
        self.ReportLogin.SetCloseEvent(self.__ReportSend_FunctionsEND)
        self.ReportLogin.Show()
        self.KurallarOpen.Hide()
        self.comp = Component()

        self.send = self.comp.Button(self.ReportLogin, 'Trimite', '', 112, 202, self.__ReportSend_Functions, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.kurallar = self.comp.Button(self.ReportLogin, 'Reguli', '', 112, 232, self.__Kurallar, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.kapat = self.comp.Button(self.ReportLogin, 'Închide', ' ', 112, 262, self.WindowEND, 'd:/ymir work/ui/public/XLarge_Button_01.sub', 'd:/ymir work/ui/public/XLarge_Button_02.sub', 'd:/ymir work/ui/public/XLarge_Button_03.sub')
        self.slotbar_reports, self.report = self.comp.EditLine2(self.ReportLogin, '', 76, 105, 250, 75, 305)
        self.text = self.comp.TextLine(self.ReportLogin, 'Orice bug gãsit sau orice jucãtor care încalcã regulamentul, te rog', 75, 45, self.comp.RGB(255, 255, 255))
        self.text2 = self.comp.TextLine(self.ReportLogin, 'sã faci un raport în spaþiul liber de mai jos.', 75, 59, self.comp.RGB(255, 255, 255))
        self.text3 = self.comp.TextLine(self.ReportLogin, 'Scrie mesajul care vrei sã fie trimis cãtre Echipã:', 95, 80, self.comp.RGB(255, 255, 255))

    def __ReportSend_Functions(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã trimiþi acest mesaj?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.__GonderButonunuOnayladim))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.__GonderButonunuOnaylamadim))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def __GonderButonunuOnayladim(self):
        import event
        report = self.report.GetText()
        if report == "":
            self.Close()
            self.questionDialog.Close()
            import chat
            chat.AppendChat(chat.CHAT_TYPE_INFO, "[OrientalMT 2] > Nu poþi anula trimiterea mesajului.")
        elif len(report) < 30:
            self.Close()
            self.questionDialog.Close()
            import chat
            chat.AppendChat(chat.CHAT_TYPE_INFO, "[OrientalMT 2] > Lungimea mesajului trebuie sã fie între 30 ºi 120 de caractere.")
        else:
            self.Close()
            self.questionDialog.Close()
            self.ReportLogin.Hide()
            event.QuestButtonClick(constInfo.ReportLogin)
            constInfo.ReportEntered = report
           
    def __GonderButonunuOnaylamadim(self):
        self.Close()
        self.questionDialog.Close()

    def __ReportSend_FunctionsEND(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Eºti sigur cã vrei sã închizi fereastra de report?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.__PencereyiKapatMesaji))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.__PencereyiKapatMesajiOnaylamadim))
        questionDialog.Open()
        self.questionDialog = questionDialog
       
    def __PencereyiKapatMesaji(self):
        self.Close()
        self.questionDialog.Close()
        self.ReportLogin.Hide()
        self.KurallarOpen.Hide()
       
    def __PencereyiKapatMesajiOnaylamadim(self):
        self.Close()
        self.questionDialog.Close()

    def ReportWindowEnd(self):
        self.Close()
        self.questionDialog.Close()




Bu kodlara bakın değişecek kısımlar belli text kısımlarını değiştir alsana türkçe
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri