예제 #1
0
 def UpdateFileList(self, mode):
     SearchName = str(self.PickSearchItemEditLine.GetText())
     SelectedIndex = self.PickfileListBox.GetSelectedItem()
     self.__RefreshFileList()
     try:
         lines = open(app.GetLocalePath() + "/item_list.txt",
                      "r").readlines()
     except IOError:
         OpenLog.DebugPrint(
             "Load Itemlist Error, you have so set the IDs manually")
         self.Close()
     for line in lines:
         tokens = str(line).split("\t")
         Index = str(tokens[0])
         try:
             Itemname = item.GetItemName(item.SelectItem(int(Index)))
         except Exception:
             continue
         if mode == 1:
             if Index and str(Itemname) != "":
                 self.PickfileListBox.AppendItem(
                     OpenLib.Item(Index + "  " + Itemname))
         elif mode == 2:
             if str(Itemname).find(str(SearchName)) != -1:
                 self.PickfileListBox.AppendItem(
                     OpenLib.Item(Index + "  " + Itemname))
         elif mode == 3:
             if str(Itemname) == str(
                     SelectedIndex.GetText().split("  ")[1]):
                 ItemValue = Index.split("  ")[0]
                 self.CreateItemDialog.UpdateItem(int(ItemValue))
                 self.Close()
                 break
예제 #2
0
    def LoadGameRules(self):
        # chat.AppendChat(chat.CHAT_TYPE_DEBUG,app.GetLocalePath())
        try:
            chat.AppendChat(chat.CHAT_TYPE_DEBUG,
                            app.GetLocalePath() + "/textfile/rules.txt")
            lines = pack_open(app.GetLocalePath() + "/textfile/rules.txt",
                              "r").readlines()
        except IOError:
            import dbg
            dbg.LogBox("LoadRulesError")
            app.Abort()

        i = 0
        for line in lines:
            tokens = line[:-1].split("\t")
            if len(tokens) == 2:
                if tokens[0] == "TITLE":
                    self.rulesListBox.InsertItem(i, tokens[1], True)
                else:
                    self.rulesListBox.InsertItem(i, tokens[1], False)
            else:
                self.rulesListBox.InsertItem(i, "", False)
            i = i + 1
예제 #3
0
    def __LoadDialog(self):
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "UIScript/RemoteShopDialog.py")
        except:
            import exception
            exception.Abort("RemoteShopDialog.__LoadDialog")

        REMOTE_FILE_NAME = "{}/remote_shop_names.txt".format(
            app.GetLocalePath())
        try:
            ShopData = pack_open(REMOTE_FILE_NAME, "r").readlines()
        except IOError:
            import dbg
            dbg.LogBox("Can not read: ({})".format(REMOTE_FILE_NAME))
            app.Abort()

        cnt = len(ShopData)

        self.ParentBoard = self.GetChild("RemoteShopBoard")
        self.ChildBoard = self.GetChild("BlackBoard")
        self.GetChild("RemoteShopTitle").SetCloseEvent(
            ui.__mem_func__(self.Close))

        DlgWidht = 190
        BlackBoardHeight = 23*cnt + 5*(cnt-1) + 13
        DlgHeight = BlackBoardHeight + 75

        self.AcceptBtn = ui.MakeButton(self.ParentBoard, 13, DlgHeight - 33, "", "d:/ymir work/ui/public/",
                                       "middle_button_01.sub", "middle_button_02.sub", "middle_button_03.sub")
        self.AcceptBtn.SetText(localeInfo.UI_ACCEPT)
        self.AcceptBtn.SetEvent(ui.__mem_func__(self.AcceptButton))
        self.CloseBtn = ui.MakeButton(self.ParentBoard, DlgWidht - 73, DlgHeight - 33, "",
                                      "d:/ymir work/ui/public/", "middle_button_01.sub", "middle_button_02.sub", "middle_button_03.sub")
        self.CloseBtn.SetText(localeInfo.UI_CLOSE)
        self.CloseBtn.SetEvent(ui.__mem_func__(self.Close))

        self.ShopList = []
        for i in range(cnt):
            btn = ui.MakeButton(self.ChildBoard, 8, 6 + i*28, "", "d:/ymir work/ui/game/myshop_deco/",
                                "select_btn_01.sub", "select_btn_02.sub", "select_btn_03.sub")
            btn.SetText(ShopData[i])
            btn.SetEvent(ui.__mem_func__(self.__SelectShop), i)
            self.ShopList.append(btn)

        self.ParentBoard.SetSize(DlgWidht, DlgHeight)
        self.ChildBoard.SetSize(DlgWidht - 26, BlackBoardHeight)
        self.SetSize(DlgWidht, DlgHeight)

        self.UpdateRect()
예제 #4
0
def LoadLocaleData():
    if IsYMIR():
        import net
        SERVER = "�赵 ����"
        if SERVER == net.GetServerInfo()[:len(SERVER)]:
            app.SetCHEONMA(0)
            app.LoadLocaleData("locale/we_korea")
            constInfo.ADD_DEF_BONUS_ENABLE = 0
        else:
            app.SetCHEONMA(1)
            app.LoadLocaleData("locale/ymir")
            constInfo.ADD_DEF_BONUS_ENABLE = 1
    else:
        app.LoadLocaleData(app.GetLocalePath())
예제 #5
0
	def __LoadWindow(self):
		try:
			pyScrLoader = ui.PythonScriptLoader()
			pyScrLoader.LoadScriptFile(self, "uiscript/PetInformationWindow.py")
		except:
			import exception
			exception.Abort("PetInformationWindow.LoadWindow.LoadObject")
			
		try:
			self.feedwind = uipetfeed.PetFeedWindow()
			self.board = self.GetChild("board")
			self.boardclose = self.GetChild("CloseButton")
			
			self.slotimgpet = self.GetChild("UpBringing_Pet_Slot")
			self.evolname = self.GetChild("EvolName")
			self.petname = self.GetChild("PetName")
			
			self.expwind = self.GetChild("UpBringing_Pet_EXP_Gauge_Board")
			self.tooltipexp = []
			for i in range(0,4):
				self.tooltipexp.append(self.TextToolTip(15*i))
				self.tooltipexp[i].Hide()
			
			self.petlifeg = self.GetChild("LifeGauge")
			
			self.petlevel = self.GetChild("LevelValue")
			self.petexpa = self.GetChild("UpBringing_Pet_EXPGauge_01")
			self.petexpb = self.GetChild("UpBringing_Pet_EXPGauge_02")
			self.petexpc = self.GetChild("UpBringing_Pet_EXPGauge_03")
			self.petexpd = self.GetChild("UpBringing_Pet_EXPGauge_04")
			self.petexpe = self.GetChild("UpBringing_Pet_EXPGauge_05")
			self.petexppages = []			
			self.petexppages.append(self.petexpa)
			self.petexppages.append(self.petexpb)
			self.petexppages.append(self.petexpc)
			self.petexppages.append(self.petexpd)
			self.petexppages.append(self.petexpe)
			
			for exp in self.petexppages:
				exp.SetSize(0, 0)
				#exp.Hide()
				
			
			
			
			
			self.petages = self.GetChild("AgeValue")
			
			self.petdur = self.GetChild("LifeTextValue")
			
			#gaugehp
			
			self.nutribtn = self.GetChild("FeedLifeTimeButton")
			self.sviluppobtn = self.GetChild("FeedEvolButton")
			self.itemexp = self.GetChild("FeedExpButton")
			
			self.pethp = self.GetChild("HpValue")
			self.petdef = self.GetChild("DefValue")
			self.petsp = self.GetChild("SpValue")
			
			self.petskill0 = self.GetChild("PetSkillSlot0")
			
			
			
			
			
			
			
			#self.petskill0.SetPetSkillSlot(0, 2, 10)
			#self.petskill0.SetPetSkillSlot(1, 11, 10)
			#self.petskill0.SetPetSkillSlot(2, 5, 10)
			self.petskill0.SetSlot(0, 2, 32, 32, petskill.GetEmptySkill())
			self.petskill0.SetSlot(1, 2, 32, 32, petskill.GetEmptySkill())
			self.petskill0.SetSlot(2, 2, 32, 32, petskill.GetEmptySkill())
			#self.petskill0.SetCoverButton(0)
			#self.petskill0.SetCoverButton(1)
			#self.petskill0.SetCoverButton(2)
			#self.petskill0.SetAlwaysRenderCoverButton(0, TRUE)
			#self.petskill0.SetAlwaysRenderCoverButton(1, TRUE)
			#self.petskill0.SetAlwaysRenderCoverButton(2, TRUE)
			self.petskill0.SetSelectItemSlotEvent(ui.__mem_func__(self.UseSkill))
			self.petskill0.SetUseSlotEvent(ui.__mem_func__(self.UseSkill))
			self.petskill0.SetOverInItemEvent(ui.__mem_func__(self.PetSkillTooltipShow))
			self.petskill0.SetOverOutItemEvent(ui.__mem_func__(self.PetSkillTooltipHide))	
			
			
			
			self.SetDefaultInfo()
			
			self.arrytooltip = [ [-1,-1], [-1,-1], [-1,-1]]
			PET_FILE_NAME = "%s/pet_skill.txt" % app.GetLocalePath()
			PET_FILE_SKILL = "%s/pet_skill_bonus.txt" % app.GetLocalePath()
			self.linespet = pack_open(PET_FILE_NAME, "r").readlines()
			self.linespetskill = pack_open(PET_FILE_SKILL, "r").readlines()
			self.SkillTooltip = uiToolTip.ToolTip(180)
			
			
			#Event
			self.boardclose.SetEvent(ui.__mem_func__(self.Close,))
			self.nutribtn.SetToggleDownEvent(lambda arg=0,arg1=1: self.OpenFeedBox(arg,arg1))
			self.nutribtn.SetToggleUpEvent(lambda arg=1,arg1=0: self.OpenFeedBox(arg,arg1))
			self.itemexp.SetToggleDownEvent(lambda arg=0,arg1=3: self.OpenFeedBox(arg,arg1))
			self.itemexp.SetToggleUpEvent(lambda arg=1,arg1=0: self.OpenFeedBox(arg,arg1))
			self.sviluppobtn.SetToggleDownEvent(lambda arg=0: self.evolution(arg))
			self.sviluppobtn.SetToggleUpEvent(lambda arg=1: self.evolution(arg))
			
			
		except:
			import exception
			exception.Abort("PetInformationWindow.LoadWindow.BindObject")
예제 #6
0
	except IOError:
		import dbg
		dbg.LogBox("LoadUIScriptLocaleError(%(srcFileName)s)" % locals())
		app.Abort()

	for line in lines:
		tokens = line[:-1].split("\t")
		
		if len(tokens) >= 2:
			localeDict[tokens[0]] = tokens[1]			
			
		else:
			print len(tokens), lines.index(line), line


if "locale/ymir" == app.GetLocalePath():

	LOCALE_UISCRIPT_PATH	= "locale/ymir_ui/"

	WINDOWS_PATH	= "d:/ymir work/ui/game/949_windows/"
	SELECT_PATH		= "d:/ymir work/ui/intro/949_select/"
	GUILD_PATH		= "d:/ymir work/ui/game/949_guild/"
	EMPIRE_PATH		= "d:/ymir work/ui/intro/949_empire/"
	MAPNAME_PATH		= "locale/ymir_ui/mapname/"
	LOGIN_PATH		= "d:/ymir work/ui/intro/949_login/"

	JOBDESC_WARRIOR_PATH	= "locale/ymir/desc_warrior.txt"
	JOBDESC_ASSASSIN_PATH	= "locale/ymir/desc_assassin.txt"
	JOBDESC_SURA_PATH		= "locale/ymir/desc_sura.txt"
	JOBDESC_SHAMAN_PATH		= "locale/ymir/desc_shaman.txt"
예제 #7
0
def IsTAIWAN():
    return "locale/taiwan" == app.GetLocalePath()
예제 #8
0
def IsYMIR():
    return "locale/ymir" == app.GetLocalePath()
예제 #9
0
def IsWE_KOREA():
    return "locale/we_korea" == app.GetLocalePath()
예제 #10
0
MAP_NUSLUCK = "MAP_NUSLUCK"  # �ӽ�
MAP_TREE2 = "MAP_TREE2"

BLEND_POTION_NO_TIME = "BLEND_POTION_NO_TIME"
BLEND_POTION_NO_INFO = "BLEND_POTION_NO_INFO"

GUILD_HEADQUARTER = "Main Building"
GUILD_FACILITY = "Facility"
GUILD_OBJECT = "Object"
GUILD_MEMBER_COUNT_INFINITY = "INFINITY"

LOGIN_FAILURE_WEB_BLOCK = "BLOCK_LOGIN(WEB)"
LOGIN_FAILURE_BLOCK_LOGIN = "******"
CHANNEL_NOTIFY_FULL = "CHANNEL_NOTIFY_FULL"

GUILD_BUILDING_LIST_TXT = app.GetLocalePath() + "/GuildBuildingList.txt"

GUILD_MARK_MIN_LEVEL = "3"
GUILD_MARK_NOT_ENOUGH_LEVEL = "��巹�� 3�̻� ���� �����մϴ�."

ERROR_MARK_UPLOAD_NEED_RECONNECT = "UploadMark: Reconnect to game"
ERROR_MARK_CHECK_NEED_RECONNECT = "CheckMark: Reconnect to game"

VIRTUAL_KEY_ALPHABET_LOWERS = r"[1234567890]/qwertyuiop\=asdfghjkl;`'zxcvbnm.,"
VIRTUAL_KEY_ALPHABET_UPPERS = r'{1234567890}?QWERTYUIOP|+ASDFGHJKL:~"ZXCVBNM<>'
VIRTUAL_KEY_SYMBOLS = '!@#$%^&*()_+|{}:"<>?~'
VIRTUAL_KEY_NUMBERS = "1234567890-=\[];',./`"
VIRTUAL_KEY_SYMBOLS_BR = '!@#$%^&*()_+|{}:"<>?~����������������'

__IS_ARABIC = "locale/ae" == app.GetLocalePath()
LOGIN_FAILURE_WRONG_SOCIALID = "ASDF"
예제 #11
0
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
예제 #12
0
						},
					),
				},

				{
					"name" : "gamemastermark",
					"type" : "expanded_image",
					"style" : ("attach",),

					"x" : 206,
					"y" : 6,

					"x_scale" : 0.2,
					"y_scale" : 0.2,

					"image" : app.GetLocalePath() + "/effect/ymirred.tga",
				},

				## Button
				{
					"name" : "ignorebutton",
					"type" : "toggle_button",

					"x" : 145,
					"y" : 10,

					"text" : uiScriptLocale.WHISPER_BAN,

					"default_image" : "d:/ymir work/ui/public/small_thin_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/small_thin_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/small_thin_button_03.sub",
예제 #13
0
            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,
        },
    }
예제 #14
0
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",
예제 #15
0
    def Open(self):
        print "OPEN LOADING WINDOW -------------------------------------------------------------------------------"

        #app.HideCursor()

        try:
            pyScrLoader = ui.PythonScriptLoader()

            if localeInfo.IsYMIR() or localeInfo.IsWE_KOREA(
            ) or localeInfo.IsCANADA() or localeInfo.IsBRAZIL(
            ) or localeInfo.IsEUROPE() or localeInfo.IsJAPAN():
                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")
            self.tipTextLine = self.GetChild("tipTextLine")
        except:
            import exception
            exception.Abort("LodingWindow.Open - LoadScriptFile Error")

        self.errMsg.Hide()

        if localeInfo.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 localeInfo.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 localeInfo.IsYMIR() or localeInfo.IsWE_KOREA(
        ) or localeInfo.IsCANADA() or localeInfo.IsBRAZIL(
        ) or localeInfo.IsEUROPE() or localeInfo.IsJAPAN():
            imgFileNameDict = {
                0: "yamato_load/loading01.jpg",
            }
        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()

        self.tipTextLine.SetText(settinginfo.GetTipText())

        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()
        GFHhg54GHGhh45GHGH.SendSelectCharacterPacket(chrSlot)

        app.SetFrameSkip(0)
예제 #16
0
BLEND_POTION_NO_TIME = "BLEND_POTION_NO_TIME"
BLEND_POTION_NO_INFO = "BLEND_POTION_NO_INFO"

APP_TITLE = "METIN2"

GUILD_HEADQUARTER = "Main Building"
GUILD_FACILITY = "Facility"
GUILD_OBJECT = "Object"
GUILD_MEMBER_COUNT_INFINITY = "INFINITY"

LOGIN_FAILURE_WEB_BLOCK = "BLOCK_LOGIN(WEB)"
LOGIN_FAILURE_BLOCK_LOGIN = "******"
CHANNEL_NOTIFY_FULL = "CHANNEL_NOTIFY_FULL"

GUILD_BUILDING_LIST_TXT = app.GetLocalePath() + "/GuildBuildingList.txt"

GUILD_MARK_MIN_LEVEL = "3"
GUILD_MARK_NOT_ENOUGH_LEVEL = "��巹�� 3�̻� ���� �����մϴ�."

ERROR_MARK_UPLOAD_NEED_RECONNECT = "UploadMark: Reconnect to game"
ERROR_MARK_CHECK_NEED_RECONNECT = "CheckMark: Reconnect to game"

VIRTUAL_KEY_ALPHABET_LOWERS = r"[1234567890]/qwertyuiop\=asdfghjkl;`'zxcvbnm.,"
VIRTUAL_KEY_ALPHABET_UPPERS = r'{1234567890}?QWERTYUIOP|+ASDFGHJKL:~"ZXCVBNM<>'
VIRTUAL_KEY_SYMBOLS = '!@#$%^&*()_+|{}:"<>?~'
VIRTUAL_KEY_NUMBERS = "1234567890-=\[];',./`"
VIRTUAL_KEY_SYMBOLS_BR = '!@#$%^&*()_+|{}:"<>?~����������������'

__IS_ENGLISH = "ENGLISH" == app.GetLocaleServiceName()
__IS_HONGKONG = "HONGKONG" == app.GetLocaleServiceName()
예제 #17
0
            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 (localeInfo.IsEUROPE() and app.GetLocalePath() == "locale/tr"):

    STATE_DICT = {
        #4 : "|cFFFF0000|hINCHIS",
        0: "|cFFFF0000|hINCHIS",
        1: "|cff00ff00|hNORMAL",
        2: "|cff00ff00|hFULL",
        3: "|cff00ff00|hBusi"
    }

    SERVER01_CHANNEL_DICT = {
        1: {
            "key": 11,
            "name": "CH1",
            "ip": SERVER_IP,
            "tcp_port": CH1_PORT,
예제 #18
0
    __IS_TURKCE = "1"
    if __IS_TURKCE:
        __IS_TURKCE = TRUE

    if 12580 > 15477:
        print "is Updating..."


class Game_Test:
    print "--------------------------------------- GAME ~ PRINT"


__IS_TURKCE = "TURKCE" == app.GetLocaleServiceName()
__IS_ENGLISH = "ENGLISH" == app.GetLocaleServiceName()
__IS_EUROPE = "EUROPE" == app.GetLocaleServiceName()
__IS_CANADA = "locale/ca" == app.GetLocalePath()

if __IS_CANADA:
    __IS_EUROPE = TRUE


def SNA(text):
    def f(x):
        return text

    return f


def SA(text):
    def f(x):
        return text % x
예제 #19
0
def LoadLocaleData():
    app.LoadLocaleData(app.GetLocalePath())
예제 #20
0
def IsJAPAN():
    return "locale/japan" == app.GetLocalePath()
예제 #21
0
import localeInfo
import uiToolTip
import constInfo
import emotion
import chr

SHOW_ONLY_ACTIVE_SKILL = False
SHOW_LIMIT_SUPPORT_SKILL_LIST = []
HIDE_SUPPORT_SKILL_POINT = False

if localeInfo.IsYMIR():
	SHOW_LIMIT_SUPPORT_SKILL_LIST = [121, 122, 123, 124, 126, 127, 129, 128, 131, 137, 138, 139, 140,141,142]
	if not localeInfo.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 localeInfo.IsJAPAN() or   (localeInfo.IsEUROPE() and app.GetLocalePath() != "locale/ca") and (localeInfo.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",
	playerSettingModule.RACE_SHAMAN_M	: "icon/face/shaman_m.tga",
	playerSettingModule.RACE_SHAMAN_W	: "icon/face/shaman_w.tga",
}
예제 #22
0
def IsNEWCIBN():
    return "locale/newcibn" == app.GetLocalePath()
예제 #23
0
import app

AUTOBAN_QUIZ_ANSWER = "ANSWER"
AUTOBAN_QUIZ_REFRESH = "REFRESH"
AUTOBAN_QUIZ_REST_TIME = "REST_TIME"
OPTION_SHADOW = "SHADOW"
CODEPAGE = str(app.GetDefaultCodePage())
name = app.GetLocalePath()

def LoadLanguageLocaleFile(srcFileName, localeDict):
	localeDict["CUBE_INFO_TITLE"] = "Recipe"
	localeDict["CUBE_REQUIRE_MATERIAL"] = "Requirements"
	localeDict["CUBE_REQUIRE_MATERIAL_OR"] = "or"
	
	#srcRealFileName = "{0}{1}".format("locale/{0}/{1}/".format(app.MAIN_LOCALE_LANGUAGE, app.GetLanguage()), srcFileName)
	srcRealFileName = "%s/%s" % (name, srcFileName)
	try:
		lines = pack_open(srcRealFileName, "r").readlines()
	except IOError:
		import dbg
		dbg.LogBox("LoadUIScriptLocaleError(%(srcRealFileName)s)" % locals())
		app.Abort()

	for line in lines:
		tokens = line[:-1].split("\t")
		if len(tokens) >= 2:
			localeDict[tokens[0]] = tokens[1]			
		else:
			print len(tokens), lines.index(line), line
			
LOCALE_UISCRIPT_PATH = "%s/ui/" % (name)