def SetPasswordEditLineFocus(self): if locale.IsEUROPE(): if self.idEditLine != None: #0000862: [M2EU] ·Î±×ÀÎâ ÆËŸ÷ ¿¡·¯: ÁŸ·áœÃ žÕÀú None Œ³Á€µÊ self.idEditLine.SetText("") self.idEditLine.SetFocus( ) #0000685: [M2EU] ŸÆÀ̵ð/ºñ¹Ð¹øÈ£ À¯Ãß °¡ŽÉ ¹ö±× ŒöÁ€: ¹«Á¶°Ç ŸÆÀ̵ð·Î Æ÷Ä¿œº°¡ °¡°Ô žžµçŽÙ if self.pwdEditLine != None: #0000862: [M2EU] ·Î±×ÀÎâ ÆËŸ÷ ¿¡·¯: ÁŸ·áœÃ žÕÀú None Œ³Á€µÊ self.pwdEditLine.SetText("") else: if self.pwdEditLine != None: self.pwdEditLine.SetFocus()
def SetPasswordEditLineFocus(self): if locale.IsEUROPE(): if self.idEditLine != None: #0000862: [M2EU] 로그인창 팝업 에러: 종료시 먼저 None 설정됨 self.idEditLine.SetText("") self.idEditLine.SetFocus( ) #0000685: [M2EU] 아이디/비밀번호 유추 가능 버그 수정: 무조건 아이디로 포커스가 가게 만든다 if self.pwdEditLine != None: #0000862: [M2EU] 로그인창 팝업 에러: 종료시 먼저 None 설정됨 self.pwdEditLine.SetText("") else: if self.pwdEditLine != None: self.pwdEditLine.SetFocus()
def __init__(self, stream): print "NEW LOGO WINDOW ----------------------------------------------------------------------------" ui.ScriptWindow.__init__(self) net.SetPhaseWindow(net.PHASE_WINDOW_LOGO, self) self.stream = stream self.playingVideo = 0 self.bNeedUpdate = TRUE self.nextLogoIndex = 0 if (locale.IsEUROPE() or locale.IsARABIC()) and (not locale.IsCHEONMA() and not locale.IsWE_KOREA()): self.videoList = ["gf.mpg", "ymir.wmv"] else: self.videoList = ["ymir.wmv"]
def __OpenServerBoard(self): loadRegionID, loadServerID, loadChannelID = self.__LoadChannelInfo() serverIndex = self.__ServerIDToServerIndex(loadRegionID, loadServerID) channelIndex = self.__ChannelIDToChannelIndex(loadChannelID) # RUNUP_MATRIX_AUTH if IsRunupMatrixAuth(): self.matrixQuizBoard.Hide() # RUNUP_MATRIX_AUTH_END # NEWCIBN_PASSPOD_AUTH if IsNEWCIBNPassPodAuth(): self.passpodBoard.Hide() # NEWCIBN_PASSPOD_AUTH_END self.serverList.SelectItem(serverIndex) if locale.IsEUROPE(): self.channelList.SelectItem( app.GetRandom(0, self.channelList.GetItemCount())) else: if channelIndex >= 0: self.channelList.SelectItem(channelIndex) ## Show/Hide 코드에 문제가 있어서 임시 - [levites] self.serverBoard.SetPosition(self.xServerBoard, self.yServerBoard) self.serverBoard.Show() self.connectBoard.Hide() self.loginBoard.Hide() if self.virtualKeyboard: self.virtualKeyboard.Hide() if app.loggined and not SKIP_LOGIN_PHASE_SUPPORT_CHANNEL: self.serverList.SelectItem(self.loginnedServer - 1) self.channelList.SelectItem(self.loginnedChannel - 1) self.__OnClickSelectServerButton()
import item import player import chat import grp import uiScriptLocale import uiRefine import uiAttachMetin import uiPickMoney import uiCommon import uiPrivateShopBuilder # 개인상점 열동안 ItemMove 방지 import locale import constInfo import ime import uiToolTip if locale.IsEUROPE() and app.GetLocalePath() != "locale/sg" or locale.IsYMIR( ) or locale.IsJAPAN(): ITEM_MALL_BUTTON_ENABLE = TRUE else: ITEM_MALL_BUTTON_ENABLE = FALSE ITEM_FLAG_APPLICABLE = 1 << 14 COSTUME_START_INDEX = 109 COSTUME_SLOT_COUNT = 3 class CostumeWindow(ui.ScriptWindow): def __init__(self, wndInventory): import exception
channelDict[cidx] = channel cidx += 1 region["channel"] = channelDict retRegion0[ridx] = region retAuthAddrDict[ridx] = auth retMarkAddrDict[ridx * 10] = mark ridx += 1 return retRegion0, retAuthAddrDict, retMarkAddrDict app.ServerName = None if (locale.IsEUROPE() and app.GetLocalePath() == "locale/vn"): STATE_NONE = "..." STATE_DICT = {0: "....", 1: "NORM", 2: "BUSY", 3: "FULL"} SERVER01_CHANNEL_DICT = { 1: { "key": 11, "name": "CH1 ", "ip": "121.160.9.68", "tcp_port": 13002, "udp_port": 13002, "state": STATE_NONE, }, }
SHOW_LIMIT_SUPPORT_SKILL_LIST = [] HIDE_SUPPORT_SKILL_POINT = FALSE if locale.IsYMIR(): SHOW_LIMIT_SUPPORT_SKILL_LIST = [ 121, 122, 123, 124, 126, 127, 129, 128, 131, 137, 138, 139, 140, 141, 142 ] if not locale.IsCHEONMA(): HIDE_SUPPORT_SKILL_POINT = TRUE SHOW_LIMIT_SUPPORT_SKILL_LIST = [ 121, 122, 123, 124, 126, 127, 129, 128, 131, 137, 138, 139, 140, 141, 142 ] elif locale.IsJAPAN() or ( locale.IsEUROPE() and app.GetLocalePath() != "locale/ca") and ( locale.IsEUROPE() and app.GetLocalePath() != "locale/br"): HIDE_SUPPORT_SKILL_POINT = TRUE SHOW_LIMIT_SUPPORT_SKILL_LIST = [ 121, 122, 123, 124, 126, 127, 129, 128, 131, 137, 138, 139, 140 ] else: HIDE_SUPPORT_SKILL_POINT = TRUE FACE_IMAGE_DICT = { playerSettingModule.RACE_WARRIOR_M: "icon/face/warrior_m.tga", playerSettingModule.RACE_WARRIOR_W: "icon/face/warrior_w.tga", playerSettingModule.RACE_ASSASSIN_M: "icon/face/assassin_m.tga", playerSettingModule.RACE_ASSASSIN_W: "icon/face/assassin_w.tga", playerSettingModule.RACE_SURA_M: "icon/face/sura_m.tga", playerSettingModule.RACE_SURA_W: "icon/face/sura_w.tga",
import net import app import ime import locale import colorInfo import constInfo import systemSetting ENABLE_CHAT_COMMAND = TRUE ENABLE_LAST_SENTENCE_STACK = TRUE ENABLE_INSULT_CHECK = TRUE if locale.IsHONGKONG(): ENABLE_LAST_SENTENCE_STACK = TRUE if locale.IsEUROPE(): ENABLE_CHAT_COMMAND = FALSE if locale.IsCANADA(): ENABLE_LAST_SENTENCE_STACK = FALSE chatInputSetList = [] def InsertChatInputSetWindow(wnd): global chatInputSetList chatInputSetList.append(wnd) def RefreshChatMode(): global chatInputSetList
def Open(self): print "OPEN LOADING WINDOW -------------------------------------------------------------------------------" #app.HideCursor() try: pyScrLoader = ui.PythonScriptLoader() if locale.IsYMIR() or locale.IsWE_KOREA() or locale.IsCANADA() or locale.IsBRAZIL() or locale.IsEUROPE(): pyScrLoader.LoadScriptFile(self, uiScriptLocale.LOCALE_UISCRIPT_PATH + "LoadingWindow.py") else: pyScrLoader.LoadScriptFile(self, "UIScript/LoadingWindow.py") except: import exception exception.Abort("LodingWindow.Open - LoadScriptFile Error") try: self.loadingImage=self.GetChild("BackGround") self.errMsg=self.GetChild("ErrorMessage") self.loadingGage=self.GetChild("FullGage") except: import exception exception.Abort("LodingWindow.Open - LoadScriptFile Error") self.errMsg.Hide() if locale.IsHONGKONG(): imgFileNameDict = { 0 : app.GetLocalePath() + "/ui/loading/loading0.sub", 1 : app.GetLocalePath() + "/ui/loading/loading1.sub", 2 : app.GetLocalePath() + "/ui/loading/loading2.sub", 3 : app.GetLocalePath() + "/ui/loading/loading3.sub", 4 : app.GetLocalePath() + "/ui/loading/loading4.sub", 5 : app.GetLocalePath() + "/ui/loading/loading5.sub", 6 : app.GetLocalePath() + "/ui/loading/loading6.sub" } elif locale.IsCIBN10(): imgFileNameDict = { 0 : app.GetLocalePath() + "/ui/loading/loading0.jpg", 1 : app.GetLocalePath() + "/ui/loading/loading1.jpg", 2 : app.GetLocalePath() + "/ui/loading/loading2.jpg", 3 : app.GetLocalePath() + "/ui/loading/loading3.jpg", 4 : app.GetLocalePath() + "/ui/loading/loading4.jpg", 5 : app.GetLocalePath() + "/ui/loading/loading5.jpg", 6 : app.GetLocalePath() + "/ui/loading/loading6.jpg", 7 : app.GetLocalePath() + "/ui/loading/loading7.jpg", } elif locale.IsYMIR() or locale.IsWE_KOREA() or locale.IsCANADA() or locale.IsBRAZIL() or locale.IsEUROPE() or locale.IsJAPAN(): imgFileNameDict = { 0 : uiScriptLocale.LOCALE_UISCRIPT_PATH + "loading/loading0.sub", 1 : uiScriptLocale.LOCALE_UISCRIPT_PATH + "loading/loading1.sub", 2 : uiScriptLocale.LOCALE_UISCRIPT_PATH + "loading/loading2.sub", 3 : uiScriptLocale.LOCALE_UISCRIPT_PATH + "loading/loading3.sub", } elif constInfo.SUB2_LOADING_ENABLE: imgFileNameDict = { 0 : "d:/ymir work/uiloading/background_loading_warrior.sub", 1 : "d:/ymir work/uiloading/background_loading_assassin.sub", 2 : "d:/ymir work/uiloading/background_loading_shaman.sub", 3 : "d:/ymir work/uiloading/background_loading_sura.sub", 4 : "d:/ymir work/uiloading/background_loading_assassin2.sub", 5 : "d:/ymir work/uiloading/background_loading_sura2.sub", 6 : "d:/ymir work/uiloading/background_loading_assassin3.sub", 7 : "d:/ymir work/uiloading/background_loading_assassin3.sub", } else: imgFileNameDict = { 0 : "d:/ymir work/ui/intro/pattern/background_loading_warrior.jpg", 1 : "d:/ymir work/ui/intro/pattern/background_loading_assassin.jpg", 2 : "d:/ymir work/ui/intro/pattern/background_loading_shaman.jpg", } try: imgFileName = imgFileNameDict[app.GetRandom(0, len(imgFileNameDict) - 1)] self.loadingImage.LoadImage(imgFileName) except: print "LoadingWindow.Open.LoadImage - %s File Load Error" % (imgFileName) self.loadingImage.Hide() width = float(wndMgr.GetScreenWidth()) / float(self.loadingImage.GetWidth()) height = float(wndMgr.GetScreenHeight()) / float(self.loadingImage.GetHeight()) self.loadingImage.SetScale(width, height) self.loadingGage.SetPercentage(2, 100) self.Show() chrSlot=self.stream.GetCharacterSlot() net.SendSelectCharacterPacket(chrSlot) app.SetFrameSkip(0)