import net import chat import app import event import ui import localeInfo import chrmgr import background import chr import systemSetting import player class a99lonca(ui.ScriptWindow): def __init__(self): ui.ScriptWindow.__init__(self) self.__Initialize() self.__Ekran() def __del__(self): ui.ScriptWindow.__del__(self) def __Initialize(self): self.titleBar = 0 self.kabulet = [] self.a99reddet = [] self.secimiyaptim = None def __Ekran(self): A99PYUK = ui.PythonScriptLoader() A99PYUK.LoadScriptFile(self, "uiscript/a99lonca.py") a99obje = self.GetChild self.titleBar = a99obje("TitleBar") self.kabulet = a99obje("kabulett") self.a99reddet = a99obje("reddet") self.secimiyaptim = a99obje("new_board") self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close)) self.kabulet.SetEvent(ui.__mem_func__(self.kabulettt)) self.a99reddet.SetEvent(ui.__mem_func__(self._a99reddet)) def kabulettt(self): self.secimiyaptim.Hide() def _a99reddet(self): self.Close() return TRUE def OnPressEscapeKey(self): self.Close() return TRUE def Show(self): self.__Ekran ui.ScriptWindow.Show(self) def Close(self): self.Hide() def Open(self): self.Show()