def Open(self): self.__LoadBoardDialog("pongo_work/characterwindow/select/selectcharacterwindow.py") self.__LoadQuestionDialog("uiscript/questiondialog.py") playerSettingModule.LoadGameData("INIT") self.InitCharacterBoard() self.btnStart.Enable() self.btnCreate.Enable() self.btnDelete.Enable() self.dlgBoard.Show() self.SetWindowName("SelectCharacterWindow") self.Show() if musicInfo.selectMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/"+musicInfo.selectMusic) app.SetCenterPosition(0.0, 0.0, 0.0) app.SetCamera(1550.0, 15.0, 180.0, 95.0) self.isLoad = 1 self.Refresh() if self.stream.isAutoSelect: self.SelectSlot(self.stream.GetCharacterSlot()) self.StartGame() self.selected = 0 app.ShowCursor()
def CreateCharacter(self): if -1 != self.reservingRaceIndex: return textName = self.editCharacterName.GetText() if False == self.__CheckCreateCharacter(textName): return if musicInfo.selectMusic != "": snd.FadeLimitOutMusic("BGM/"+musicInfo.selectMusic, systemSetting.GetMusicVolume()*0.05) self.DisableWindow() chr_id = self.__GetSlotChrID(self.gender, self.slot) chr.SelectInstance(chr_id) self.reservingRaceIndex = chr.GetRace() self.reservingShapeIndex = self.shapeList[self.gender][self.slot] self.reservingStartTime = app.GetTime() for eachSlot in xrange(SLOT_COUNT[self.gender]): sel_id = self.__GetSlotChrID(self.gender, eachSlot) chr.SelectInstance(sel_id) if eachSlot == self.slot: chr.PushOnceMotion(chr.MOTION_INTRO_SELECTED) else: chr.PushOnceMotion(chr.MOTION_INTRO_NOT_SELECTED)
def Open(self): #print "OPEN EMPIRE WINDOW ----------------------------------------------------------------------------" self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight()) self.SetWindowName("SelectEmpireWindow") self.Show() if not self.__LoadScript(uiScriptLocale.LOCALE_UISCRIPT_PATH + "New_SelectEmpireWindow.py"): dbg.TraceError("SelectEmpireWindow.Open - __LoadScript Error") return self.OnSelectEmpire(self.empireID) self.__CreateButtons() self.__CreateDescriptionBox() app.ShowCursor() if musicInfo.selectMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/" + musicInfo.selectMusic) self.toolTip = uiToolTip.ToolTip() self.toolTip.ClearToolTip() self.ShowToolTip = False
def __Load(self): self.__Load_LoadScript("uiscript/systemoptiondialog.py") self.__Load_BindObject() self.SetCenterPosition() self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close)) self.ctrlMusicVolume.SetSliderPos(float( systemSetting.GetMusicVolume())) self.ctrlMusicVolume.SetEvent(ui.__mem_func__( self.OnChangeMusicVolume)) self.ctrlSoundVolume.SetSliderPos( float(systemSetting.GetSoundVolume()) / 5.0) self.ctrlSoundVolume.SetEvent(ui.__mem_func__( self.OnChangeSoundVolume)) # self.ctrlShadowQuality.SetSliderPos(float(systemSetting.GetShadowLevel()) / 5.0) # self.ctrlShadowQuality.SetEvent(ui.__mem_func__(self.OnChangeShadowQuality)) self.changeMusicButton.SAFE_SetEvent(self.__OnClickChangeMusicButton) self.cameraModeButtonList[0].SAFE_SetEvent( self.__OnClickCameraModeShortButton) self.cameraModeButtonList[1].SAFE_SetEvent( self.__OnClickCameraModeLongButton) self.fogModeButtonList[0].SAFE_SetEvent( self.__OnClickFogModeLevel0Button) self.fogModeButtonList[1].SAFE_SetEvent( self.__OnClickFogModeLevel1Button) self.fogModeButtonList[2].SAFE_SetEvent( self.__OnClickFogModeLevel2Button) self.tilingModeButtonList[0].SAFE_SetEvent( self.__OnClickTilingModeCPUButton) self.tilingModeButtonList[1].SAFE_SetEvent( self.__OnClickTilingModeGPUButton) self.tilingApplyButton.SAFE_SetEvent(self.__OnClickTilingApplyButton) self.__SetCurTilingMode() self.__ClickRadioButton(self.fogModeButtonList, constInfo.GET_FOG_LEVEL_INDEX()) self.__ClickRadioButton(self.cameraModeButtonList, constInfo.GET_CAMERA_MAX_DISTANCE_INDEX()) if musicInfo.fieldMusic == musicInfo.METIN2THEMA: self.selectMusicFile.SetText(uiSelectMusic.DEFAULT_THEMA) else: self.selectMusicFile.SetText( musicInfo.fieldMusic[:MUSIC_FILENAME_MAX_LEN])
def Open(self): self.loginFailureMsgDict={ "ALREADY" : localeInfo.LOGIN_FAILURE_ALREAY, "NOID" : localeInfo.LOGIN_FAILURE_NOT_EXIST_ID, "WRONGPWD" : localeInfo.LOGIN_FAILURE_WRONG_PASSWORD, "FULL" : localeInfo.LOGIN_FAILURE_TOO_MANY_USER, "SHUTDOWN" : localeInfo.LOGIN_FAILURE_SHUTDOWN, "REPAIR" : localeInfo.LOGIN_FAILURE_REPAIR_ID, "BLOCK" : localeInfo.LOGIN_FAILURE_BLOCK_ID, "WRONGMAT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER, "QUIT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER_TRIPLE, "BESAMEKEY" : localeInfo.LOGIN_FAILURE_BE_SAME_KEY, "NOTAVAIL" : localeInfo.LOGIN_FAILURE_NOT_AVAIL, "NOBILL" : localeInfo.LOGIN_FAILURE_NOBILL, "BLKLOGIN" : localeInfo.LOGIN_FAILURE_BLOCK_LOGIN, "WEBBLK" : localeInfo.LOGIN_FAILURE_WEB_BLOCK, } self.loginFailureFuncDict = { "WRONGPWD" : localeInfo.LOGIN_FAILURE_WRONG_PASSWORD, "WRONGMAT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER, "QUIT" : app.Exit, } self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight()) self.SetWindowName("LoginWindow") self.__LoadScript(uiScriptLocale.LOCALE_UISCRIPT_PATH + "LoginWindow.py") if musicInfo.loginMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/" + musicInfo.loginMusic) snd.SetSoundVolume(systemSetting.GetSoundVolume()) ime.AddExceptKey(91) ime.AddExceptKey(93) self.SetChannel("CH1") self.idEditLine.SetFocus() self.pressKey() for aID in xrange(0, 4): if get_reg("%d_id" % aID): self.accountText[aID].SetText("%s" % binascii.a2b_base64("%s" % get_reg("%d_id" % aID))) self.Show() app.ShowCursor()
def StartGame(self): if self.sendedChangeNamePacket: return if self.changeNameFlag: self.OpenChangeNameDialog() return if -1 != self.startIndex: return if musicInfo.selectMusic != "": snd.FadeLimitOutMusic("BGM/" + musicInfo.selectMusic, systemSetting.GetMusicVolume() * 0.05) self.btnStart.SetUp() self.btnCreate.SetUp() self.btnDelete.SetUp() self.btnExit.SetUp() self.btnLeft.SetUp() self.btnRight.SetUp() self.btnStart.Disable() self.btnCreate.Disable() self.btnDelete.Disable() self.btnExit.Disable() self.btnLeft.Disable() self.btnRight.Disable() self.dlgQuestion.Hide() self.stream.SetCharacterSlot(self.slot) self.startIndex = self.slot self.startReservingTime = app.GetTime() for i in xrange(self.SLOT_COUNT): if FALSE == chr.HasInstance(i): continue chr.SelectInstance(i) if i == self.slot: self.slot = self.slot chr.PushOnceMotion(chr.MOTION_INTRO_SELECTED, 0.1) continue chr.PushOnceMotion(chr.MOTION_INTRO_NOT_SELECTED, 0.1)
def Open(self): if not self.__LoadBoardDialog(uiScriptLocale.LOCALE_UISCRIPT_PATH + "selectcharacterwindow.py"): import dbg dbg.TraceError("SelectCharacterWindow.Open - __LoadScript Error") return if not self.__LoadQuestionDialog("uiscript/questiondialog.py"): return playerSettingModule.LoadGameData("INIT") self.InitCharacterBoard() self.btnStart.Enable() self.btnCreate.Enable() self.btnDelete.Enable() self.btnExit.Enable() self.btnLeft.Enable() self.btnRight.Enable() self.dlgBoard.Show() self.SetWindowName("SelectCharacterWindow") self.Show() if self.slot >= 0: self.SelectSlot(self.slot) if musicInfo.selectMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/" + musicInfo.selectMusic) app.SetCenterPosition(0.0, 0.0, 0.0) app.SetCamera(1550.0, 15.0, 180.0, 95.0) self.isLoad = 1 self.Refresh() if self.stream.isAutoSelect: chrSlot = self.stream.GetCharacterSlot() self.SelectSlot(chrSlot) self.StartGame() self.HideAllFlag() self.SetEmpire(net.GetEmpireID()) app.ShowCursor()
def OnUpdate(self): chr.Update() self.ToolTipProgress() if self.SelectEmpire: self.SelectEmpire = False self.stream.SetReselectEmpirePhase() self.Hide() if self.MotionStart and app.GetTime() - self.MotionTime >= 2.0: self.MotionStart = False ##기존 사용 그대로 들구옴## #print " Start Game " chrSlot = self.stream.GetCharacterSlot() #print "chrSlot = %s" % chrSlot if musicInfo.selectMusic != "": snd.FadeLimitOutMusic("BGM/" + musicInfo.selectMusic, systemSetting.GetMusicVolume() * 0.05) net.DirectEnter(chrSlot) playTime = net.GetAccountCharacterSlotDataInteger( chrSlot, net.ACCOUNT_CHARACTER_SLOT_PLAYTIME) import player player.SetPlayTime(playTime) import chat chat.Clear() (xposEventSet, yposEventSet) = self.textBoard.GetGlobalPosition() event.UpdateEventSet(self.descIndex, xposEventSet + 7, -(yposEventSet + 7)) self.descriptionBox.SetIndex(self.descIndex) for i in xrange(self.LEN_STATPOINT): self.GaugeList[i].SetPercentage(self.curGauge[i], 1.0)
def Open(self): ServerStateChecker.Create(self) print "LOGIN WINDOW OPEN ----------------------------------------------------------------------------" self.loginFailureMsgDict={ #"DEFAULT" : localeInfo.LOGIN_FAILURE_UNKNOWN, "ALREADY" : localeInfo.LOGIN_FAILURE_ALREAY, "NOID" : localeInfo.LOGIN_FAILURE_NOT_EXIST_ID, "WRONGPWD" : localeInfo.LOGIN_FAILURE_WRONG_PASSWORD, "FULL" : localeInfo.LOGIN_FAILURE_TOO_MANY_USER, "SHUTDOWN" : localeInfo.LOGIN_FAILURE_SHUTDOWN, "REPAIR" : localeInfo.LOGIN_FAILURE_REPAIR_ID, "BLOCK" : localeInfo.LOGIN_FAILURE_BLOCK_ID, "WRONGMAT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER, "QUIT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER_TRIPLE, "BESAMEKEY" : localeInfo.LOGIN_FAILURE_BE_SAME_KEY, "NOTAVAIL" : localeInfo.LOGIN_FAILURE_NOT_AVAIL, "NOBILL" : localeInfo.LOGIN_FAILURE_NOBILL, "BLKLOGIN" : localeInfo.LOGIN_FAILURE_BLOCK_LOGIN, "WEBBLK" : localeInfo.LOGIN_FAILURE_WEB_BLOCK, "BADSCLID" : localeInfo.LOGIN_FAILURE_WRONG_SOCIALID, "AGELIMIT" : localeInfo.LOGIN_FAILURE_SHUTDOWN_TIME, } self.loginFailureFuncDict = { "WRONGPWD" : self.__DisconnectAndInputPassword, "WRONGMAT" : self.__DisconnectAndInputMatrix, "QUIT" : app.Exit, } self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight()) self.SetWindowName("LoginWindow") if not self.__LoadScript(uiScriptLocale.LOCALE_UISCRIPT_PATH + "LoginWindow.py"): dbg.TraceError("LoginWindow.Open - __LoadScript Error") return self.__LoadLoginInfo("loginInfo.xml") if app.loggined: self.loginFailureFuncDict = { "WRONGPWD" : app.Exit, "WRONGMAT" : app.Exit, "QUIT" : app.Exit, } if musicInfo.loginMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/"+musicInfo.loginMusic) snd.SetSoundVolume(systemSetting.GetSoundVolume()) # pevent key "[" "]" ime.AddExceptKey(91) ime.AddExceptKey(93) self.Show() global SKIP_LOGIN_PHASE if SKIP_LOGIN_PHASE: if self.isStartError: self.connectBoard.Hide() self.loginBoard.Hide() self.serverBoard.Hide() self.PopupNotifyMessage(localeInfo.LOGIN_CONNECT_FAILURE, self.__ExitGame) return if self.loginInfo: self.serverBoard.Hide() else: self.__RefreshServerList() self.__OpenServerBoard() else: connectingIP = self.stream.GetConnectAddr() if connectingIP: if app.USE_OPENID and not app.OPENID_TEST : self.__RefreshServerList() self.__OpenServerBoard() else: self.__OpenLoginBoard() if IsFullBackImage(): self.GetChild("bg1").Hide() self.GetChild("bg2").Show() else: self.__RefreshServerList() self.__OpenServerBoard() app.ShowCursor()
def Open(self): print "OPEN CREATE WINDOW ----------------------------------------------------------------------------" playerSettingModule.LoadGameData("INIT") self.reservingRaceIndex = -1 self.reservingShapeIndex = -1 self.reservingStartTime = 0 self.stat = [0, 0, 0, 0] self.gender = 0 self.slot = -1 # self.instanceIDs = [] if app.ENABLE_WOLFMAN_CHARACTER: self.shapeList = [ [0, 0, 0, 0, 0], [0, 0, 0, 0]] else: self.shapeList = [ [0, 0, 0, 0], [0, 0, 0, 0]] self.descIndex = 0 try: dlgBoard = ui.ScriptWindow() pythonScriptLoader = ui.PythonScriptLoader() pythonScriptLoader.LoadScriptFile(dlgBoard, uiScriptLocale.LOCALE_UISCRIPT_PATH + "createcharacterwindow.py") except: import exception exception.Abort("CreateCharacterWindow.Open.LoadObject") try: getChild = dlgBoard.GetChild self.NameList = {} self.NameList[MAN] = [] self.NameList[MAN].append(getChild("name_warrior")) self.NameList[MAN].append(getChild("name_assassin")) self.NameList[MAN].append(getChild("name_sura")) self.NameList[MAN].append(getChild("name_shaman")) if app.ENABLE_WOLFMAN_CHARACTER: self.NameList[MAN].append(getChild("name_wolfman")) self.NameList[WOMAN] = [] self.NameList[WOMAN].append(getChild("name_warrior")) self.NameList[WOMAN].append(getChild("name_assassin")) self.NameList[WOMAN].append(getChild("name_sura")) self.NameList[WOMAN].append(getChild("name_shaman")) self.GaugeList = [] self.GaugeList.append(getChild("hth_gauge")) self.GaugeList.append(getChild("int_gauge")) self.GaugeList.append(getChild("str_gauge")) self.GaugeList.append(getChild("dex_gauge")) self.btnCreate = getChild("create_button") self.btnCancel = getChild("cancel_button") self.btnPrev = getChild("prev_button") self.btnNext = getChild("next_button") self.btnLeft = getChild("left_button") self.btnRight = getChild("right_button") self.textBoard = getChild("text_board") self.genderButtonList = [] self.genderButtonList.append(getChild("gender_button_01")) self.genderButtonList.append(getChild("gender_button_02")) self.shapeButtonList = [] self.shapeButtonList.append(getChild("shape_button_01")) self.shapeButtonList.append(getChild("shape_button_02")) self.editCharacterName = getChild("character_name_value") self.statValue = [] self.statValue.append(getChild("hth_value")) self.statValue.append(getChild("int_value")) self.statValue.append(getChild("str_value")) self.statValue.append(getChild("dex_value")) getChild("hth_button").ShowToolTip = lambda arg=self.STAT_CON: self.OverInStatButton(arg) getChild("hth_button").HideToolTip = lambda arg=self.STAT_CON: self.OverOutStatButton() getChild("int_button").ShowToolTip = lambda arg=self.STAT_INT: self.OverInStatButton(arg) getChild("int_button").HideToolTip = lambda arg=self.STAT_INT: self.OverOutStatButton() getChild("str_button").ShowToolTip = lambda arg=self.STAT_STR: self.OverInStatButton(arg) getChild("str_button").HideToolTip = lambda arg=self.STAT_STR: self.OverOutStatButton() getChild("dex_button").ShowToolTip = lambda arg=self.STAT_DEX: self.OverInStatButton(arg) getChild("dex_button").HideToolTip = lambda arg=self.STAT_DEX: self.OverOutStatButton() getChild("hth_button").Hide() getChild("int_button").Hide() getChild("str_button").Hide() getChild("dex_button").Hide() self.backGround = getChild("BackGround") except: import exception exception.Abort("CreateCharacterWindow.Open.BindObject") self.btnCreate.SetEvent(ui.__mem_func__(self.CreateCharacter)) self.btnCancel.SetEvent(ui.__mem_func__(self.CancelCreate)) self.btnPrev.SetEvent(ui.__mem_func__(self.PrevDescriptionPage)) self.btnNext.SetEvent(ui.__mem_func__(self.NextDescriptionPage)) self.btnLeft.SetEvent(ui.__mem_func__(self.__DecreaseSlotIndex)) self.btnRight.SetEvent(ui.__mem_func__(self.__IncreaseSlotIndex)) self.genderButtonList[0].SetEvent(ui.__mem_func__(self.__SelectGender), MAN) self.genderButtonList[1].SetEvent(ui.__mem_func__(self.__SelectGender), WOMAN) self.shapeButtonList[0].SetEvent(ui.__mem_func__(self.__SelectShape), SHAPE0) self.shapeButtonList[1].SetEvent(ui.__mem_func__(self.__SelectShape), SHAPE1) self.editCharacterName.SetReturnEvent(ui.__mem_func__(self.CreateCharacter)) self.editCharacterName.SetEscapeEvent(ui.__mem_func__(self.CancelCreate)) self.dlgBoard = dlgBoard self.curRotation = [] + self.SLOT_ROTATION[self.gender] self.destRotation = [] + self.SLOT_ROTATION[self.gender] self.curNameAlpha = [0.0, 0.0, 0.0, 0.0, 0.0] self.destNameAlpha = [0.0, 0.0, 0.0, 0.0, 0.0] self.curGauge = [0.0, 0.0, 0.0, 0.0] self.destGauge = [0.0, 0.0, 0.0, 0.0] self.descriptionBox = self.DescriptionBox() self.descriptionBox.Show() self.chrRenderer = self.CharacterRenderer() self.chrRenderer.SetParent(self.backGround) self.chrRenderer.Show() self.toolTip = uiToolTip.ToolTip() self.toolTip.ClearToolTip() self.editCharacterName.SetText("") self.EnableWindow() self.__SelectSlot(0) app.SetCamera(500.0, 10.0, 180.0, 95.0) self.__MakeCharacter(MAN, 0, playerSettingModule.RACE_WARRIOR_M) self.__MakeCharacter(MAN, 1, playerSettingModule.RACE_ASSASSIN_M) self.__MakeCharacter(MAN, 2, playerSettingModule.RACE_SURA_M) self.__MakeCharacter(MAN, 3, playerSettingModule.RACE_SHAMAN_M) if app.ENABLE_WOLFMAN_CHARACTER: self.__MakeCharacter(MAN, 4, playerSettingModule.RACE_WOLFMAN_M) self.__MakeCharacter(WOMAN, 0, playerSettingModule.RACE_WARRIOR_W) self.__MakeCharacter(WOMAN, 1, playerSettingModule.RACE_ASSASSIN_W) self.__MakeCharacter(WOMAN, 2, playerSettingModule.RACE_SURA_W) self.__MakeCharacter(WOMAN, 3, playerSettingModule.RACE_SHAMAN_W) self.__SelectGender(app.GetRandom(MAN, WOMAN)) self.__SelectShape(0) self.__SelectSlot(app.GetRandom(0, SLOT_COUNT[self.gender]-1)) self.dlgBoard.Show() self.Show() if musicInfo.createMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/"+musicInfo.createMusic) app.ShowCursor()
def Open(self): playerSettingModule.LoadGameData("INIT") self.reservingRaceIndex = -1 self.reservingShapeIndex = -1 self.reservingStartTime = 0 self.gender = 0 self.slot = -1 self.shape = 0 try: dlgBoard = ui.ScriptWindow() pythonScriptLoader = ui.PythonScriptLoader() pythonScriptLoader.LoadScriptFile( dlgBoard, "pongo_work/characterwindow/create/createcharacterwindow.py") except: import exception exception.Abort("CreateCharacterWindow.Open.LoadObject") try: getChild = dlgBoard.GetChild self.btnCreate = getChild("create_button") self.btnExit = getChild("exit_button") self.editCharacterName = getChild("name") self.genderButton = [] self.genderButton.append(getChild("gender_man")) self.genderButton.append(getChild("gender_woman")) self.char = [] self.char.append(getChild("char1")) self.char.append(getChild("char2")) self.char.append(getChild("char3")) self.char.append(getChild("char4")) self.shapeButton = [] self.shapeButton.append(getChild("shape1")) self.shapeButton.append(getChild("shape2")) self.backGround = getChild("BackGround") except: import exception exception.Abort("CreateCharacterWindow.Open.BindObject") self.btnCreate.SetEvent(ui.__mem_func__(self.CreateCharacter)) self.btnExit.SetEvent(ui.__mem_func__(self.CancelCreate)) self.genderButton[0].SetEvent(ui.__mem_func__(self.__SelectGender), MAN) self.genderButton[1].SetEvent(ui.__mem_func__(self.__SelectGender), WOMAN) self.editCharacterName.SetText("") self.editCharacterName.SetReturnEvent( ui.__mem_func__(self.CreateCharacter)) self.editCharacterName.SetEscapeEvent( ui.__mem_func__(self.CancelCreate)) self.chrRenderer = self.CharacterRenderer() self.chrRenderer.SetParent(self.backGround) self.chrRenderer.Show() self.dlgBoard = dlgBoard self.characters = { 0: [ playerSettingModule.RACE_WARRIOR_M, playerSettingModule.RACE_ASSASSIN_M, playerSettingModule.RACE_SURA_M, playerSettingModule.RACE_SHAMAN_M ], 1: [ playerSettingModule.RACE_WARRIOR_W, playerSettingModule.RACE_ASSASSIN_W, playerSettingModule.RACE_SURA_W, playerSettingModule.RACE_SHAMAN_W ] } self.char[0].SetEvent(ui.__mem_func__(self.__SelectSlot), 0) self.char[1].SetEvent(ui.__mem_func__(self.__SelectSlot), 1) self.char[2].SetEvent(ui.__mem_func__(self.__SelectSlot), 2) self.char[3].SetEvent(ui.__mem_func__(self.__SelectSlot), 3) self.shapeButton[0].SetEvent(ui.__mem_func__(self.__SelectShape), 0) self.shapeButton[1].SetEvent(ui.__mem_func__(self.__SelectShape), 1) self.EnableWindow() self.__SelectSlot(app.GetRandom(0, 3)) app.SetCamera(500.0, 10.0, 180.0, 95.0) self.__SelectGender(0) self.__SelectShape(0) self.Show() self.dlgBoard.Show() if musicInfo.createMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/" + musicInfo.createMusic) app.ShowCursor()
def __LoadDialog(self): global NO_MOBILE try: pyScriptLoader = ui.PythonScriptLoader() if MOBILE: pyScriptLoader.LoadScriptFile(self, "uiscript/optiondialog_formobile.py") else: pyScriptLoader.LoadScriptFile(self, "uiscript/optiondialog.py") except: import exception exception.Abort("OptionDialog.__LoadDialog.LoadObject") try: GetObject = self.GetChild self.titleBar = GetObject("titlebar") self.ctrlMusicVolume = GetObject("music_volume_controller") self.ctrlSoundVolume = GetObject("sound_volume_controller") self.nameColorModeButtonList.append(GetObject("name_color_normal")) self.nameColorModeButtonList.append(GetObject("name_color_empire")) self.viewTargetBoardButtonList.append(GetObject("target_board_no_view")) self.viewTargetBoardButtonList.append(GetObject("target_board_view")) self.cameraModeButtonList.append(GetObject("camera_short")) self.cameraModeButtonList.append(GetObject("camera_long")) self.fogModeButtonList.append(GetObject("fog_level0")) self.fogModeButtonList.append(GetObject("fog_level1")) self.fogModeButtonList.append(GetObject("fog_level2")) self.pvpModeButtonDict[player.PK_MODE_PEACE] = GetObject("pvp_peace") self.pvpModeButtonDict[player.PK_MODE_REVENGE] = GetObject("pvp_revenge") self.pvpModeButtonDict[player.PK_MODE_GUILD] = GetObject("pvp_guild") self.pvpModeButtonDict[player.PK_MODE_FREE] = GetObject("pvp_free") self.blockButtonList.append(GetObject("block_exchange_button")) self.blockButtonList.append(GetObject("block_party_button")) self.blockButtonList.append(GetObject("block_guild_button")) self.blockButtonList.append(GetObject("block_whisper_button")) self.blockButtonList.append(GetObject("block_friend_button")) if MOBILE: self.inputMobileButton = GetObject("input_mobile_button") self.deleteMobileButton = GetObject("delete_mobile_button") except: import exception exception.Abort("OptionDialog.__LoadDialog.BindObject") self.SetCenterPosition() self.ctrlMusicVolume.SetSliderPos(float(systemSetting.GetMusicVolume())) self.ctrlSoundVolume.SetSliderPos(float(systemSetting.GetSoundVolume()) / 5.0) self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close)) self.ctrlMusicVolume.SetEvent(ui.__mem_func__(self.OnChangeMusicVolume)) self.ctrlSoundVolume.SetEvent(ui.__mem_func__(self.OnChangeSoundVolume)) self.nameColorModeButtonList[0].SAFE_SetEvent(self.__OnClickNameColorModeNormalButton) self.nameColorModeButtonList[1].SAFE_SetEvent(self.__OnClickNameColorModeEmpireButton) self.viewTargetBoardButtonList[0].SAFE_SetEvent(self.__OnClickTargetBoardViewButton) self.viewTargetBoardButtonList[1].SAFE_SetEvent(self.__OnClickTargetBoardNoViewButton) self.cameraModeButtonList[0].SAFE_SetEvent(self.__OnClickCameraModeShortButton) self.cameraModeButtonList[1].SAFE_SetEvent(self.__OnClickCameraModeLongButton) self.pvpModeButtonDict[player.PK_MODE_PEACE].SAFE_SetEvent(self.__OnClickPvPModePeaceButton) self.pvpModeButtonDict[player.PK_MODE_REVENGE].SAFE_SetEvent(self.__OnClickPvPModeRevengeButton) self.pvpModeButtonDict[player.PK_MODE_GUILD].SAFE_SetEvent(self.__OnClickPvPModeGuildButton) self.pvpModeButtonDict[player.PK_MODE_FREE].SAFE_SetEvent(self.__OnClickPvPModeFreeButton) self.fogModeButtonList[0].SAFE_SetEvent(self.__OnClickFogModeLevel0Button) self.fogModeButtonList[1].SAFE_SetEvent(self.__OnClickFogModeLevel1Button) self.fogModeButtonList[2].SAFE_SetEvent(self.__OnClickFogModeLevel2Button) self.blockButtonList[0].SetToggleUpEvent(self.__OnClickBlockExchangeButton) self.blockButtonList[1].SetToggleUpEvent(self.__OnClickBlockPartyButton) self.blockButtonList[2].SetToggleUpEvent(self.__OnClickBlockGuildButton) self.blockButtonList[3].SetToggleUpEvent(self.__OnClickBlockWhisperButton) self.blockButtonList[4].SetToggleUpEvent(self.__OnClickBlockFriendButton) self.blockButtonList[0].SetToggleDownEvent(self.__OnClickBlockExchangeButton) self.blockButtonList[1].SetToggleDownEvent(self.__OnClickBlockPartyButton) self.blockButtonList[2].SetToggleDownEvent(self.__OnClickBlockGuildButton) self.blockButtonList[3].SetToggleDownEvent(self.__OnClickBlockWhisperButton) self.blockButtonList[4].SetToggleDownEvent(self.__OnClickBlockFriendButton) self.__ClickRadioButton(self.fogModeButtonList, constInfo.GET_FOG_LEVEL_INDEX()) self.__ClickRadioButton(self.cameraModeButtonList, constInfo.GET_CAMERA_MAX_DISTANCE_INDEX()) self.__ClickRadioButton(self.nameColorModeButtonList, constInfo.GET_CHRNAME_COLOR_INDEX()) self.__ClickRadioButton(self.viewTargetBoardButtonList, constInfo.GET_VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD()) self.__SetPeacePKMode() if MOBILE: self.inputMobileButton.SetEvent(ui.__mem_func__(self.__OnChangeMobilePhoneNumber)) self.deleteMobileButton.SetEvent(ui.__mem_func__(self.__OnDeleteMobilePhoneNumber))
def Open(self): ServerStateChecker.Create(self) print "LOGIN WINDOW OPEN ----------------------------------------------------------------------------" self.loginFailureMsgDict={ "ALREADY" : localeInfo.LOGIN_FAILURE_ALREAY, "NOID" : localeInfo.LOGIN_FAILURE_NOT_EXIST_ID, "WRONGPWD" : localeInfo.LOGIN_FAILURE_WRONG_PASSWORD, "FULL" : localeInfo.LOGIN_FAILURE_TOO_MANY_USER, "SHUTDOWN" : localeInfo.LOGIN_FAILURE_SHUTDOWN, "REPAIR" : localeInfo.LOGIN_FAILURE_REPAIR_ID, "BLOCK" : localeInfo.LOGIN_FAILURE_BLOCK_ID, "REBOOT" : localeInfo.LOGIN_CONNECT_REBOOT, "PWCHANGE" : localeInfo.LOGIN_CONNECT_PWCHANGE, "SBLOCK" : localeInfo.LOGIN_CONNECT_UBLOCK, "BOT" : localeInfo.LOGIN_CONNECT_BOT, "WRONGMAT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER, "QUIT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER_TRIPLE, "BESAMEKEY" : localeInfo.LOGIN_FAILURE_BE_SAME_KEY, "NOTAVAIL" : localeInfo.LOGIN_FAILURE_NOT_AVAIL, "NOBILL" : localeInfo.LOGIN_FAILURE_NOBILL, "BLKLOGIN" : localeInfo.LOGIN_FAILURE_BLOCK_LOGIN, "WEBBLK" : localeInfo.LOGIN_FAILURE_WEB_BLOCK, "HWID" : localeInfo.LOGIN_FAILURE_HWID_BLOCK, } self.loginFailureFuncDict = { "WRONGPWD" : localeInfo.LOGIN_FAILURE_WRONG_PASSWORD, "WRONGMAT" : localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER, "QUIT" : app.Exit, } if app.NEW_CLIENT_VERSION_CHECK: self.loginFailureMsgDict["WRONGVER"] = localeInfo.LOGIN_FAILURE_WRONG_VERSION self.loginFailureFuncDict["WRONGVER"] = app.Exit self.__RequestServerStateList() self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight()) self.SetWindowName("LoginWindow") self.__LoadScript("tbx/ui/loginwindow.py") for i in xrange(4): self.CreateChannel(i) self.CheckAccount() if systemSetting.IsForcedRules() != RULES_VALUE: self.OpenRulesBoard() if musicInfo.loginMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/" + musicInfo.loginMusic) snd.SetSoundVolume(systemSetting.GetSoundVolume()) ime.AddExceptKey(91) ime.AddExceptKey(93) self.SetChannel(0) self.InitWithCMD() self.Show() app.ShowCursor()
def Open(self): #print "##---------------------------------------- NEW INTRO SELECT OPEN" playerSettingModule.LoadGameData("INIT") dlgBoard = ui.ScriptWindow() self.dlgBoard = dlgBoard pythonScriptLoader = ui.PythonScriptLoader( ) #uiScriptLocale.LOCALE_UISCRIPT_PATH = locale/ymir_ui/ pythonScriptLoader.LoadScriptFile( self.dlgBoard, uiScriptLocale.LOCALE_UISCRIPT_PATH + "New_SelectCharacterWindow.py") getChild = self.dlgBoard.GetChild ##Background## self.backGroundDict = { net.EMPIRE_B: "d:/ymir work/ui/intro/empire/background/empire_chunjo.sub", net.EMPIRE_C: "d:/ymir work/ui/intro/empire/background/empire_jinno.sub", } self.backGround = getChild("BackGround") ##한문## self.NameList = [] self.NameList.append(getChild("name_warrior")) self.NameList.append(getChild("name_assassin")) self.NameList.append(getChild("name_sura")) self.NameList.append(getChild("name_shaman")) self.NameList.append(getChild("name_wolfman")) ##Empire Flag## self.empireName = getChild("EmpireName") self.flagDict = { net.EMPIRE_B: "d:/ymir work/ui/intro/empire/empireflag_b.sub", net.EMPIRE_C: "d:/ymir work/ui/intro/empire/empireflag_c.sub", } self.flag = getChild("EmpireFlag") ##Button List## self.btnStart = getChild("start_button") self.btnCreate = getChild("create_button") self.btnDelete = getChild("delete_button") self.btnExit = getChild("exit_button") ##Face Image## self.FaceImage = [] self.FaceImage.append(getChild("CharacterFace_0")) self.FaceImage.append(getChild("CharacterFace_1")) self.FaceImage.append(getChild("CharacterFace_2")) self.FaceImage.append(getChild("CharacterFace_3")) self.FaceImage.append(getChild("CharacterFace_4")) ##Select Character List## self.CharacterButtonList = [] self.CharacterButtonList.append(getChild("CharacterSlot_0")) self.CharacterButtonList.append(getChild("CharacterSlot_1")) self.CharacterButtonList.append(getChild("CharacterSlot_2")) self.CharacterButtonList.append(getChild("CharacterSlot_3")) self.CharacterButtonList.append(getChild("CharacterSlot_4")) ##ToolTip : GuildName, PlayTime## getChild("CharacterSlot_0" ).ShowToolTip = lambda arg=0: self.OverInToolTip(arg) getChild("CharacterSlot_0").HideToolTip = lambda: self.OverOutToolTip() getChild("CharacterSlot_1" ).ShowToolTip = lambda arg=1: self.OverInToolTip(arg) getChild("CharacterSlot_1").HideToolTip = lambda: self.OverOutToolTip() getChild("CharacterSlot_2" ).ShowToolTip = lambda arg=2: self.OverInToolTip(arg) getChild("CharacterSlot_2").HideToolTip = lambda: self.OverOutToolTip() getChild("CharacterSlot_3" ).ShowToolTip = lambda arg=3: self.OverInToolTip(arg) getChild("CharacterSlot_3").HideToolTip = lambda: self.OverOutToolTip() getChild("CharacterSlot_4" ).ShowToolTip = lambda arg=4: self.OverInToolTip(arg) getChild("CharacterSlot_4").HideToolTip = lambda: self.OverOutToolTip() ## ToolTip etc : Create, Delete, Start, Exit, Prev, Next ## getChild( "create_button" ).ShowToolTip = lambda arg=uiScriptLocale.SELECT_CREATE: self.OverInToolTipETC( arg) getChild("create_button").HideToolTip = lambda: self.OverOutToolTip() getChild( "delete_button" ).ShowToolTip = lambda arg=uiScriptLocale.SELECT_DELETE: self.OverInToolTipETC( arg) getChild("delete_button").HideToolTip = lambda: self.OverOutToolTip() getChild( "start_button" ).ShowToolTip = lambda arg=uiScriptLocale.SELECT_SELECT: self.OverInToolTipETC( arg) getChild("start_button").HideToolTip = lambda: self.OverOutToolTip() getChild( "exit_button" ).ShowToolTip = lambda arg=uiScriptLocale.SELECT_EXIT: self.OverInToolTipETC( arg) getChild("exit_button").HideToolTip = lambda: self.OverOutToolTip() getChild( "prev_button" ).ShowToolTip = lambda arg=uiScriptLocale.CREATE_PREV: self.OverInToolTipETC( arg) getChild("prev_button").HideToolTip = lambda: self.OverOutToolTip() getChild( "next_button" ).ShowToolTip = lambda arg=uiScriptLocale.CREATE_NEXT: self.OverInToolTipETC( arg) getChild("next_button").HideToolTip = lambda: self.OverOutToolTip() ##StatPoint Value## self.statValue = [] self.statValue.append(getChild("hth_value")) self.statValue.append(getChild("int_value")) self.statValue.append(getChild("str_value")) self.statValue.append(getChild("dex_value")) ##Gauge UI## self.GaugeList = [] self.GaugeList.append(getChild("hth_gauge")) self.GaugeList.append(getChild("int_gauge")) self.GaugeList.append(getChild("str_gauge")) self.GaugeList.append(getChild("dex_gauge")) ##Text## self.textBoard = getChild("text_board") self.btnPrev = getChild("prev_button") self.btnNext = getChild("next_button") ##DescFace## self.discFace = getChild("DiscFace") self.raceNameText = getChild("raceName_Text") ##MyID## #self.descPhaseText = getChild("desc_phase_text") self.myID = getChild("my_id") self.myID.SetText("---") ##Button Event## self.btnStart.SetEvent(ui.__mem_func__(self.StartGameButton)) self.btnCreate.SetEvent(ui.__mem_func__(self.CreateCharacterButton)) self.btnExit.SetEvent(ui.__mem_func__(self.ExitButton)) self.btnDelete.SetEvent(ui.__mem_func__(self.InputPrivateCode)) ##Select MyCharacter## self.CharacterButtonList[0].SetEvent( ui.__mem_func__(self.SelectButton), 0) self.CharacterButtonList[1].SetEvent( ui.__mem_func__(self.SelectButton), 1) self.CharacterButtonList[2].SetEvent( ui.__mem_func__(self.SelectButton), 2) self.CharacterButtonList[3].SetEvent( ui.__mem_func__(self.SelectButton), 3) self.CharacterButtonList[4].SetEvent( ui.__mem_func__(self.SelectButton), 4) self.FaceImage[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 0) self.FaceImage[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 1) self.FaceImage[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 2) self.FaceImage[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 3) self.FaceImage[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 4) self.FaceImage[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 0) self.FaceImage[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 1) self.FaceImage[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 2) self.FaceImage[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 3) self.FaceImage[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 4) self.FaceImage[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 0) self.FaceImage[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 1) self.FaceImage[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 2) self.FaceImage[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 3) self.FaceImage[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 4) ##Job Description## self.btnPrev.SetEvent(ui.__mem_func__(self.PrevDescriptionPage)) self.btnNext.SetEvent(ui.__mem_func__(self.NextDescriptionPage)) ##MyCharacter CLASS## self.mycharacters = MyCharacters(self) self.mycharacters.LoadCharacterData() if not self.mycharacters.GetMyCharacterCount(): self.stream.SetCharacterSlot(self.mycharacters.GetEmptySlot()) self.SelectEmpire = True ##Job Description Box## self.descriptionBox = self.DescriptionBox() self.descriptionBox.Show() ##Tool Tip(Guild Name, PlayTime)## self.toolTip = uiToolTip.ToolTip() self.toolTip.ClearToolTip() self.dlgBoard.Show() self.Show() ##Empire Flag & Background Setting## my_empire = net.GetEmpireID() self.SetEmpire(my_empire) app.ShowCursor() if musicInfo.selectMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/" + musicInfo.selectMusic) ##Character Render## self.chrRenderer = self.CharacterRenderer() self.chrRenderer.SetParent(self.backGround) self.chrRenderer.Show()
def Open(self): #print "##---------------------------------------- NEW INTRO CREATE OPEN" playerSettingModule.LoadGameData("INIT") ## Func Open UI Loading START ## dlgBoard = ui.ScriptWindow() self.dlgBoard = dlgBoard pythonScriptLoader = ui.PythonScriptLoader()#uiScriptLocale.LOCALE_UISCRIPT_PATH = locale/ymir_ui/ pythonScriptLoader.LoadScriptFile( self.dlgBoard, uiScriptLocale.LOCALE_UISCRIPT_PATH + "New_CreateCharacterWindow.py" ) getChild = self.dlgBoard.GetChild ## HanMoon ## self.NameList = [] self.NameList.append(getChild("name_warrior")) self.NameList.append(getChild("name_assassin")) self.NameList.append(getChild("name_sura")) self.NameList.append(getChild("name_shaman")) self.NameList.append(getChild("name_wolfman")) ## Text ## self.textBoard = getChild("text_board") self.btnPrev = getChild("prev_button") self.btnNext = getChild("next_button") ## Select Job Button List Append ## self.JobList = [] self.JobList.append(getChild("WARRIOR")) self.JobList.append(getChild("ASSASSIN")) self.JobList.append(getChild("SURA")) self.JobList.append(getChild("SHAMAN")) self.JobList.append(getChild("WOLFMAN")) if localeInfo.IsARABIC(): for button in self.JobList : button.LeftRightReverse() ## Image Click Name & Face(Left Button) ## self.SelectBtnNameList = [] self.SelectBtnNameList.append(getChild("name_warrior_small")) self.SelectBtnNameList.append(getChild("name_assassin_small")) self.SelectBtnNameList.append(getChild("name_sura_small")) self.SelectBtnNameList.append(getChild("name_shaman_small")) self.SelectBtnNameList.append(getChild("name_wolfman_small")) self.SelectBtnFaceList = [] self.SelectBtnFaceList.append(getChild("CharacterFace_0")) self.SelectBtnFaceList.append(getChild("CharacterFace_1")) self.SelectBtnFaceList.append(getChild("CharacterFace_2")) self.SelectBtnFaceList.append(getChild("CharacterFace_3")) self.SelectBtnFaceList.append(getChild("CharacterFace_4")) ## Select SEX Button List Append ## self.genderButtonList = [] self.genderButtonList.append(getChild("gender_button_01")) self.genderButtonList.append(getChild("gender_button_02")) ## Select Shape Button List Append ## self.shapeButtonList = [] self.shapeButtonList.append(getChild("shape_button_01")) self.shapeButtonList.append(getChild("shape_button_02")) ## StatPoint Value ## self.statValue = [] self.statValue.append(getChild("hth_value")) self.statValue.append(getChild("int_value")) self.statValue.append(getChild("str_value")) self.statValue.append(getChild("dex_value")) ## Gauge UI ## self.GaugeList = [] self.GaugeList.append(getChild("hth_gauge")) self.GaugeList.append(getChild("int_gauge")) self.GaugeList.append(getChild("str_gauge")) self.GaugeList.append(getChild("dex_gauge")) ## Create or Cancel ## self.btnCreate = getChild("create_button") self.btnCancel = getChild("cancel_button") ## Empire Flag ## self.empireName = getChild("EmpireName") self.flagDict = { net.EMPIRE_B : "d:/ymir work/ui/intro/empire/empireflag_b.sub", net.EMPIRE_C : "d:/ymir work/ui/intro/empire/empireflag_c.sub", } self.flag = getChild("EmpireFlag") self.discFace = getChild("DiscFace") self.raceNameText = getChild("raceName_Text") ## ID Character Name ## self.editCharacterName = getChild("character_name_value") ## Background ## Note : Default : Sinsu self.backGroundDict = { net.EMPIRE_B : "d:/ymir work/ui/intro/empire/background/empire_chunjo.sub", net.EMPIRE_C : "d:/ymir work/ui/intro/empire/background/empire_jinno.sub", } self.backGround = getChild("BackGround") ## INIT Job Sex ## self.JobSex = {} self.JobSex[0] = app.GetRandom(MAN, WOMAN) ## WARRIOR ## self.JobSex[1] = app.GetRandom(MAN, WOMAN) ## ASSASSIN ## self.JobSex[2] = app.GetRandom(MAN, WOMAN) ## SURA ## self.JobSex[3] = app.GetRandom(MAN, WOMAN) ## SHAMAN ## self.JobSex[4] = MAN ## WOLFMAN ## ##Tool Tip## self.toolTip = uiToolTip.ToolTip() self.toolTip.ClearToolTip() self.editCharacterName.SetText("") self.EnableWindow() ## Select Job Button List Start Event ## self.JobList[0].SetEvent(ui.__mem_func__(self.SelectJob), 0) self.JobList[1].SetEvent(ui.__mem_func__(self.SelectJob), 1) self.JobList[2].SetEvent(ui.__mem_func__(self.SelectJob), 2) self.JobList[3].SetEvent(ui.__mem_func__(self.SelectJob), 3) self.JobList[4].SetEvent(ui.__mem_func__(self.SelectJob), 4) ## Select Sex Button List Start Event ## self.genderButtonList[MAN].SetEvent(ui.__mem_func__(self.SelectGender), MAN) self.genderButtonList[WOMAN].SetEvent(ui.__mem_func__(self.SelectGender), WOMAN) ## Select Shape Button List Start Event ## self.shapeButtonList[0].SetEvent(ui.__mem_func__(self.SelectShape), 0) self.shapeButtonList[1].SetEvent(ui.__mem_func__(self.SelectShape), 1) ## Create or Cancel ## self.btnCreate.SetEvent(ui.__mem_func__(self.CreateCharacterButton)) self.btnCancel.SetEvent(ui.__mem_func__(self.CancelButton)) ## Job Description ## self.btnPrev.SetEvent(ui.__mem_func__(self.PrevDescriptionPage)) self.btnNext.SetEvent(ui.__mem_func__(self.NextDescriptionPage)) self.editCharacterName.SetReturnEvent(ui.__mem_func__(self.CreateCharacterButton)) self.editCharacterName.SetEscapeEvent(ui.__mem_func__(self.CancelButton)) ## Image Click Face & Name ## self.SelectBtnNameList[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 0) self.SelectBtnNameList[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 1) self.SelectBtnNameList[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 2) self.SelectBtnNameList[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 3) self.SelectBtnNameList[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 4) self.SelectBtnNameList[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 0) self.SelectBtnNameList[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 1) self.SelectBtnNameList[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 2) self.SelectBtnNameList[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 3) self.SelectBtnNameList[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 4) self.SelectBtnNameList[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 0) self.SelectBtnNameList[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 1) self.SelectBtnNameList[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 2) self.SelectBtnNameList[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 3) self.SelectBtnNameList[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 4) self.SelectBtnFaceList[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 0) self.SelectBtnFaceList[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 1) self.SelectBtnFaceList[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 2) self.SelectBtnFaceList[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 3) self.SelectBtnFaceList[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_click", 4) self.SelectBtnFaceList[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 0) self.SelectBtnFaceList[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 1) self.SelectBtnFaceList[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 2) self.SelectBtnFaceList[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 3) self.SelectBtnFaceList[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 4) self.SelectBtnFaceList[0].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 0) self.SelectBtnFaceList[1].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 1) self.SelectBtnFaceList[2].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 2) self.SelectBtnFaceList[3].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 3) self.SelectBtnFaceList[4].SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 4) ## Tooltip ## getChild("WARRIOR").ShowToolTip = lambda arg = self.M2JOBLIST[0] : self.OverInToolTip(arg) getChild("WARRIOR").HideToolTip = lambda : self.OverOutToolTip() getChild("ASSASSIN").ShowToolTip = lambda arg = self.M2JOBLIST[1] : self.OverInToolTip(arg) getChild("ASSASSIN").HideToolTip = lambda : self.OverOutToolTip() getChild("SURA").ShowToolTip = lambda arg = self.M2JOBLIST[2] : self.OverInToolTip(arg) getChild("SURA").HideToolTip = lambda : self.OverOutToolTip() getChild("SHAMAN").ShowToolTip = lambda arg = self.M2JOBLIST[3] : self.OverInToolTip(arg) getChild("SHAMAN").HideToolTip = lambda : self.OverOutToolTip() getChild("WOLFMAN").ShowToolTip = lambda arg = self.M2JOBLIST[4] : self.OverInToolTip(arg) getChild("WOLFMAN").HideToolTip = lambda : self.OverOutToolTip() getChild("gender_button_01").ShowToolTip = lambda arg = uiScriptLocale.CREATE_MAN : self.OverInToolTip(arg) getChild("gender_button_01").HideToolTip = lambda : self.OverOutToolTip() getChild("gender_button_02").ShowToolTip = lambda arg = uiScriptLocale.CREATE_WOMAN : self.OverInToolTip(arg) getChild("gender_button_02").HideToolTip = lambda : self.OverOutToolTip() getChild("shape_button_01").ShowToolTip = lambda arg = uiScriptLocale.CREATE_SHAPE + "1": self.OverInToolTip(arg) getChild("shape_button_01").HideToolTip = lambda : self.OverOutToolTip() getChild("shape_button_02").ShowToolTip = lambda arg = uiScriptLocale.CREATE_SHAPE + "2" : self.OverInToolTip(arg) getChild("shape_button_02").HideToolTip = lambda : self.OverOutToolTip() getChild("prev_button").ShowToolTip = lambda arg = uiScriptLocale.CREATE_PREV : self.OverInToolTip(arg) getChild("prev_button").HideToolTip = lambda : self.OverOutToolTip() getChild("next_button").ShowToolTip = lambda arg = uiScriptLocale.CREATE_NEXT : self.OverInToolTip(arg) getChild("next_button").HideToolTip = lambda : self.OverOutToolTip() getChild("create_button").ShowToolTip = lambda arg = uiScriptLocale.CREATE_CREATE : self.OverInToolTip(arg) getChild("create_button").HideToolTip = lambda : self.OverOutToolTip() getChild("cancel_button").ShowToolTip = lambda arg = uiScriptLocale.CANCEL : self.OverInToolTip(arg) getChild("cancel_button").HideToolTip = lambda : self.OverOutToolTip() ## Func Open UI Loading END## ## Func Open Make Character & Render START## ## Flag Setting ## my_empire = net.GetEmpireID() self.SetEmpire(my_empire) #Job Description Box self.descriptionBox = self.DescriptionBox() self.descriptionBox.Show() ##Character Render## self.chrRenderer = self.CharacterRenderer() self.chrRenderer.SetParent(self.backGround) self.chrRenderer.Show() ## Make Character ## self.MakeCharacter(playerSettingModule.RACE_WARRIOR_M) self.MakeCharacter(playerSettingModule.RACE_ASSASSIN_M) self.MakeCharacter(playerSettingModule.RACE_SURA_M) self.MakeCharacter(playerSettingModule.RACE_SHAMAN_M) self.MakeCharacter(playerSettingModule.RACE_WARRIOR_W) self.MakeCharacter(playerSettingModule.RACE_ASSASSIN_W) self.MakeCharacter(playerSettingModule.RACE_SURA_W) self.MakeCharacter(playerSettingModule.RACE_SHAMAN_W) self.MakeCharacter(playerSettingModule.RACE_WOLFMAN_M) self.dlgBoard.Show() self.Show() app.ShowCursor() if musicInfo.createMusic != "": snd.SetMusicVolume(systemSetting.GetMusicVolume()) snd.FadeInMusic("BGM/"+musicInfo.createMusic) ##Default Setting## self.SelectJob(app.GetRandom(0, self.LEN_JOBLIST - 1))