noisiv 1
noisiv
Manwe Work 1
Manwe Work
Scarlet 1
Scarlet
Bvural41 1
Bvural41
mavzermete 1
mavzermete
Hikaye Ekle

[C++ / Python] Official Elemental World Haritası (Ölüm Eklentisi)

  • Konuyu başlatan Konuyu başlatan olkan41
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 12
  • Görüntüleme Görüntüleme 2K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Thank you so much for this! Can you please update the download link for uiCommon and uiScript?
UiCommon


Kod:
if app.ENABLE_ELEMENTAL_WORLD:
    class QuestionDialogElemental(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_elemental_map.py")
            self.board = self.GetChild("board")
            self.textLine = self.GetChild("message")
            self.acceptButton = self.GetChild("accept")
        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 SetAcceptEvent(self, event):
            self.acceptButton.SetEvent(event)
        def SetText(self, text):
            self.textLine.SetText(text)
        def SetAcceptText(self, text):
            self.acceptButton.SetText(text)
        if app.ENABLE_EXTEND_INVEN_SYSTEM:
            def GetTextSize(self):
                if self.textLine:
                    return self.textLine.GetTextSize()
                return (0,0)
            def GetLineHeight(self):
                if self.textLine:
                    return self.textLine.GetLineHeight()
                return 0
            def SetLineHeight(self, Height):
                self.textLine.SetLineHeight(Height)
            def GetTextLineCount(self):
                return self.textLine.GetTextLineCount()


UiScript File
 

Ekli dosyalar

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