import net import ui import app import chrmgr import constInfo import record import gameInfo class BossEkran(ui.ScriptWindow): def __init__(self): ui.ScriptWindow.__init__(self) self.__Initialize() self.__Load() def __del__(self): ui.ScriptWindow.__del__(self) print " -------------------------------------- DELETE GAME OPTION DIALOG" def __Initialize(self): self.titleBar = 0 def Destroy(self): self.ClearDictionary() self.__Initialize() print " -------------------------------------- DESTROY GAME OPTION DIALOG" def __Load_LoadScript(self, fileName): try: pyScriptLoader = ui.PythonScriptLoader() pyScriptLoader.LoadScriptFile(self, fileName) except: import exception exception.Abort("OptionDialog.__Load_LoadScript") def __Load_BindObject(self): try: GetObject = self.GetChild self.titleBar = GetObject("titlebar") self.sbosstakip = GetObject("bosstrack") self.sbosssiralama = GetObject("bosssiralama") except: import exception exception.Abort("OptionDialog.__Load_BindObject") def __Load(self): self.__Load_LoadScript("UIScript/bossekran.py") self.__Load_BindObject() self.SetCenterPosition() self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close) self.sbosstakip.SAFE_SetEvent(self.bosstrack) self.sbosssiralama.SAFE_SetEvent(self.bosssiralama) def bosstrack(self): constInfo.OPEN_BOSS_TRACKING = 1 def bosssiralama(self): if not constInfo.ibne1: import gameInfo gameInfo.atakan_BOSS=1 constInfo.ibne1 = 1 return else: chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.FAILURE_SIRALAMA) def OnPressEscapeKey(self): self.Close() return True def Show(self): ui.ScriptWindow.Show(self) def Close(self): self.Hide def __NotifyChatLine(self, text): chat.AppendChat(chat.CHAT_TYPE_INFO, text)