Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import uiScriptLocale
- ROOT_PATH = "d:/ymir work/ui/public/"
- LOCALE_PATH = uiScriptLocale.SELECT_PATH
- JEX_RESOURCE_IMGS = "locale/ro/ui/interface_alexu_works/selecteaza_caracter/"
- ALEXU = "locale/ro/ui/interface_alexu_works/interfata_alexu/select_caracter/"
- BOARD_X = SCREEN_WIDTH * (65) / 800
- BOARD_Y = SCREEN_HEIGHT * (220) / 600
- BOARD_ITEM_ADD_POSITION = -40
- window = {
- "name" : "SelectCharacterWindow",
- "x" : 0,
- "y" : 0,
- "width" : SCREEN_WIDTH,
- "height" : SCREEN_HEIGHT,
- "children" :
- (
- ## Board
- {
- "name" : "BackGround", "type" : "expanded_image", "x" : 0, "y" : 0,
- "x_scale" : float(SCREEN_WIDTH) / 1280.0,
- "y_scale" : float(SCREEN_HEIGHT) / 720.0,
- "image" : "locale/ro/ui/interface_alexu_works/selecteaza_caracter/bg.tga",
- },
- ## Nume
- {
- "name" : "name_warrior",
- "type" : "image",
- "x" :(SCREEN_WIDTH / 2) + (180),
- "y" : BOARD_Y + 100,
- "image" : JEX_RESOURCE_IMGS+"g.tga",
- },
- {
- "name" : "name_assassin",
- "type" : "image",
- "x" :(SCREEN_WIDTH / 2) + (180),
- "y" : BOARD_Y + 100,
- "image" : JEX_RESOURCE_IMGS+"n.tga",
- },
- {
- "name" : "name_sura",
- "type" : "image",
- "x" :(SCREEN_WIDTH / 2) + (180),
- "y" : BOARD_Y + 100,
- "image" : JEX_RESOURCE_IMGS+"s.tga",
- },
- {
- "name" : "name_shaman",
- "type" : "image",
- "x" :(SCREEN_WIDTH / 2) + (180),
- "y" : BOARD_Y + 100,
- "image" : JEX_RESOURCE_IMGS+"c.tga",
- },
- {
- "name" : "start_button",
- "type" : "button",
- "x" : -413,
- "y" : 290,
- "horizontal_align" : "center",
- "vertical_align" : "center",
- #"text" : "",
- #"text_height" : 6,
- "default_image" : JEX_RESOURCE_IMGS + "start.tga",
- "over_image" : JEX_RESOURCE_IMGS + "start1.tga",
- "down_image" : JEX_RESOURCE_IMGS + "start2.tga",
- },
- {
- "name" : "create_button",
- "type" : "button",
- "x" : 400,
- "y" : 685,
- "horizontal_align" : "center",
- #"text" : uiScriptLocale.SELECT_CREATE,
- #"text_height" : 6,
- "default_image" : JEX_RESOURCE_IMGS + "create.tga",
- "over_image" : JEX_RESOURCE_IMGS + "create2.tga",
- "down_image" : JEX_RESOURCE_IMGS + "create1.tga",
- },
- ## Butoane
- {
- "name" : "exit_button",
- "type" : "button",
- "x" : 500,
- "y" : 685,
- "horizontal_align" : "center",
- #"text" : uiScriptLocale.SELECT_EXIT,
- "default_image" : JEX_RESOURCE_IMGS + "close.tga",
- "over_image" : JEX_RESOURCE_IMGS + "close1.tga",
- "down_image" : JEX_RESOURCE_IMGS + "close2.tga",
- },
- {
- "name" : "delete_button",
- "type" : "button",
- "x" : 600,
- "y" : 685,
- "horizontal_align" : "center",
- #"text" : uiScriptLocale.SELECT_DELETE,
- "default_image" : JEX_RESOURCE_IMGS + "delete.tga",
- "over_image" : JEX_RESOURCE_IMGS + "delete1.tga",
- "down_image" : JEX_RESOURCE_IMGS + "delete2.tga",
- },
- {
- "name" : "alexu_detalii",
- "type" : "image",
- "x" : -100,
- "y" : -30,
- "horizontal_align" : "center",
- "vertical_align" : "center",
- #"text" : uiScriptLocale.SELECT_DELETE,
- "image" : JEX_RESOURCE_IMGS + "alexu.tga",
- },
- {
- "name" : "alexu_select_char",
- "type" : "text",
- "x" : -480,
- "y" : -315,
- "horizontal_align" : "center",
- "vertical_align" : "center",
- "fontname" : "Tahoma:23",
- "text" : "Selectare Character",
- },
- ## Caracter Board
- {
- "name" : "character_board",
- "type" : "image",
- "x" : -407,
- "y" : -25,
- "horizontal_align" : "center",
- "vertical_align" : "center",
- "image" : JEX_RESOURCE_IMGS + "select.tga",
- "children" :
- (
- ## Steaguri regate
- {
- "name" : "EmpireFlag_A",
- "type" : "image",
- "x" : 95,
- "y" : 80,
- #"x_scale" : 0.9,
- #"y_scale" : 0.9,
- "image" : JEX_RESOURCE_IMGS + "hypnos.tga",
- },
- {
- "name" : "EmpireFlag_C",
- "type" : "image",
- "x" : 95,
- "y" : 80,
- #"x_scale" : 0.9,
- #"y_scale" : 0.9,
- "image" : JEX_RESOURCE_IMGS + "hyperion.tga",
- },
- {
- "name" : "EmpireNameSlot",
- "type" : "image",
- "x" : 162,
- "y" : 166,
- "children" :
- (
- {
- "name" : "EmpireName",
- "type" : "text",
- "x" : 0,
- "y" : 0,
- "text" : uiScriptLocale.SELECT_EMPIRE_NAME,
- "all_align" : "center",
- },
- ),
- },
- {
- "name" : "GuildNameSlot",
- "type" : "text",
- "x" : 170,
- "y" : 340,
- "text" : "",
- "children" :
- (
- {
- "name" : "GuildName_slot",
- "type" : "image",
- "x" : 43,
- "y" : -2,
- },
- {
- "name" : "GuildName",
- "type" : "text",
- "x" : 0,
- "y" : 0,
- "fontname" : "Tahoma:23",
- "text" : uiScriptLocale.SELECT_NO_GUILD,
- "all_align" : "center",
- },
- ),
- },
- {
- "name" : "character_name",
- "type" : "text",
- "x" : 70,
- "y" : 200,
- "text" : "|cffff0000",
- "children" :
- (
- {
- "name" : "character_name_slot",
- "type" : "image",
- "x" : 43,
- "y" : -2,
- },
- {
- "name" : "character_name_value",
- "type" : "text",
- "x" : 36 + 130/2,
- "y" : 0,
- "fontname" : "Tahoma:23",
- "text" : "|cffff0000",
- "text_horizontal_align" : "center",
- },
- ),
- },
- {
- "name" : "character_level",
- "type" : "text",
- "x" : 90,
- "y" : 240,
- "text" : "",
- "children" :
- (
- {
- "name" : "character_level_slot",
- "type" : "image",
- "x" : 43,
- "y" : -2,
- },
- {
- "name" : "alexu_kyoura",
- "type" : "text",
- "x" : 36 + 65/2,
- "y" : 0,
- "fontname" : "Tahoma:19",
- "text" : "Nivel ",
- "text_horizontal_align" : "center",
- },
- {
- "name" : "character_level_value",
- "type" : "text",
- "x" : 36 + 130/2,
- "y" : 0,
- "fontname" : "Tahoma:19",
- "text" : "Nivel : ",
- "text_horizontal_align" : "center",
- },
- ),
- },
- {
- "name" : "character_play_time",
- "type" : "text",
- "x" : 30,
- "y" : 290,
- "text" : "",
- "children" :
- (
- {
- "name" : "character_play_time_slot",
- "type" : "image",
- "x" : 83,
- "y" : -2,
- },
- {
- "name" : "alexu_kyoura",
- "type" : "text",
- "x" : 96 + 85/2,
- "y" : -25,
- "fontname" : "Tahoma:19",
- "text" : "Minute Jucate",
- "text_horizontal_align" : "center",
- },
- {
- "name" : "character_play_time_value",
- "type" : "text",
- "x" : 96 + 90/2,
- "y" : 0,
- "fontname" : "Tahoma:19",
- "text" : "",
- "text_horizontal_align" : "center",
- },
- ),
- },
- {
- "name" : "character_hth",
- "type" : "text",
- "x" : 340,
- "y" : 75,
- "text" : "",
- "children" :
- (
- {
- "name" : "gauge_hth",
- "type" : "gauge",
- "x" : 16,
- "y" : 4,
- "width" : 100,
- "color" : "red",
- },
- {
- "name" : "character_hth_slot",
- "type" : "image",
- "x" : 134,
- "y" : -2,
- #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
- },
- {
- "name" : "character_hth_value",
- "type" : "text",
- "x" : 9999,
- "y" : 9999,
- "text" : "",
- "text_horizontal_align" : "center",
- },
- ),
- },
- {
- "name" : "character_int",
- "type" : "text",
- "x" : 340,
- "y" : 120,
- "text" : "",
- "children" :
- (
- {
- "name" : "gauge_int",
- "type" : "gauge",
- "x" : 16,
- "y" : 4,
- "width" : 100,
- "color" : "pink",
- },
- {
- "name" : "character_int_slot",
- "type" : "image",
- "x" : 134,
- "y" : -2,
- #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
- },
- {
- "name" : "character_int_value",
- "type" : "text",
- "x" : 9999,
- "y" : 9999,
- "text" : "",
- "text_horizontal_align" : "center",
- },
- ),
- },
- {
- "name" : "character_str",
- "type" : "text",
- "x" : 340,
- "y" : 165,
- "text" : "",
- "children" :
- (
- {
- "name" : "gauge_str",
- "type" : "gauge",
- "x" : 16,
- "y" : 4,
- "width" : 100,
- "color" : "purple",
- },
- {
- "name" : "character_str_slot",
- "type" : "image",
- "x" : 134,
- "y" : -2,
- #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
- },
- {
- "name" : "character_str_value",
- "type" : "text",
- "x" : 9999,
- "y" : 9999,
- "text" : "",
- "text_horizontal_align" : "center",
- },
- ),
- },
- {
- "name" : "character_dex",
- "type" : "text",
- "x" : 340,
- "y" : 215,
- "text" : "",
- "children" :
- (
- {
- "name" : "gauge_dex",
- "type" : "gauge",
- "x" : 16,
- "y" : 4,
- "width" : 100,
- "color" : "blue",
- },
- {
- "name" : "character_dex_slot",
- "type" : "image",
- "x" : 134,
- "y" : -2,
- #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
- },
- {
- "name" : "character_dex_value",
- "type" : "text",
- "x" : 9999,
- "y" : 9999,
- "text" : "",
- "text_horizontal_align" : "center",
- },
- ),
- },
- ),
- },
- ## Butoane
- {
- "name" : "left_button",
- "type" : "button",
- "x" : SCREEN_WIDTH * (450 - 22*3) / 950,
- "y" : SCREEN_HEIGHT * (505) / 700,
- "default_image" : ALEXU + "left.tga",
- "over_image" : ALEXU + "left.tga",
- "down_image" : ALEXU + "left.tga",
- },
- {
- "name" : "right_button",
- "type" : "button",
- "x" : SCREEN_WIDTH * (580 - 22) / 845,
- "y" : SCREEN_HEIGHT * (505) / 700,
- "default_image" : ALEXU + "right.tga",
- "over_image" : ALEXU + "right.tga",
- "down_image" : ALEXU + "right.tga",
- },
- ),
- }
Advertisement
Add Comment
Please, Sign In to add comment