import uiScriptLocale ROOT_PATH = "d:/ymir work/ui/public/" LOCALE_PATH = "locale/ae/ui/select/" BOARD_X = SCREEN_WIDTH * (800-200) / 800 BOARD_Y = SCREEN_HEIGHT * (215) / 600 PLUS_BUTTON_WIDTH = 20 TEMPORARY_HEIGHT = 24 + 5 window = { "name" : "CreateCharacterWindow", "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) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0, "image" : "locale/ae/ui/select.sub", }, ## Name { "name" : "name_warrior", "type" : "image", "x" : BOARD_X - 27, "y" : BOARD_Y - 174 + 25, "image" : LOCALE_PATH+"name_warrior.sub", }, { "name" : "name_assassin", "type" : "image", "x" : BOARD_X - 27, "y" : BOARD_Y - 174 + 25, "image" : LOCALE_PATH+"name_assassin.sub", }, { "name" : "name_sura", "type" : "image", "x" : BOARD_X - 27, "y" : BOARD_Y - 174 + 25, "image" : LOCALE_PATH+"name_sura.sub", }, { "name" : "name_shaman", "type" : "image", "x" : BOARD_X - 27, "y" : BOARD_Y - 174 + 25, "image" : LOCALE_PATH+"name_shaman.sub", }, ## Character Board { "name" : "character_board", "type" : "thinboard", "x" : BOARD_X, "y" : BOARD_Y, "width" : 208, "height" : 300 + TEMPORARY_HEIGHT, "children" : ( { "name" : "text_board", "type" : "bar", "x" : 8, "y" : 10, "width" : 189, "height" : 122, "children" : ( { "name" : "prev_button", "type" : "button", "x" : 95, "y" : 95, "text" : uiScriptLocale.CREATE_PREV, "default_image" : ROOT_PATH + "Small_Button_01.sub", "over_image" : ROOT_PATH + "Small_Button_02.sub", "down_image" : ROOT_PATH + "Small_Button_03.sub", }, { "name" : "next_button", "type" : "button", "x" : 140, "y" : 95, "text" : uiScriptLocale.CREATE_NEXT, "default_image" : ROOT_PATH + "Small_Button_01.sub", "over_image" : ROOT_PATH + "Small_Button_02.sub", "down_image" : ROOT_PATH + "Small_Button_03.sub", }, { "name" : "right_line", "type" : "line", "x" : 189-1, "y" : -1, "width" : 0, "height" : 122, "color" : 0xffAAA6A1, }, { "name" : "bottom_line", "type" : "line", "x" : 0, "y" : 122-1, "width" : 189, "height" : 0, "color" : 0xffAAA6A1, }, { "name" : "left_line", "type" : "line", "x" : 0, "y" : 0, "width" : 0, "height" : 122-1, "color" : 0xff2A2521, }, { "name" : "top_line", "type" : "line", "x" : 0, "y" : 0, "width" : 189, "height" : 0, "color" : 0xff2A2521, }, ), }, { "name" : "hth", "type" : "text", "x" : 10, "y" : 138, "text" : uiScriptLocale.CREATE_HP, "children" : ( { "name" : "hth_gauge", "type" : "gauge", "x" : 39, "y" : 4, "width" : 100 + PLUS_BUTTON_WIDTH, "color" : "red", }, { "name" : "hth_slot", "type" : "slotbar", "x" : 143 + PLUS_BUTTON_WIDTH, "y" : -1, "width" : 24, "height" : 16, }, { "name" : "hth_value", "type" : "text", "x" : 145 + 30, "y" : 1, "text_horizontal_align" : "center", "text" : "00", }, ), }, { "name" : "int", "type" : "text", "x" : 10, "y" : 157, "text" : uiScriptLocale.CREATE_SP, "children" : ( { "name" : "int_gauge", "type" : "gauge", "x" : 39, "y" : 4, "width" : 100 + PLUS_BUTTON_WIDTH, "color" : "pink", }, { "name" : "int_slot", "type" : "slotbar", "x" : 143 + PLUS_BUTTON_WIDTH, "y" : -1, "width" : 24, "height" : 16, }, { "name" : "int_value", "type" : "text", "x" : 145 + 30, "y" : 1, "text_horizontal_align" : "center", "text" : "00", }, ), }, { "name" : "str", "type" : "text", "x" : 10, "y" : 176, "text" : uiScriptLocale.CREATE_ATT_GRADE, "children" : ( { "name" : "str_gauge", "type" : "gauge", "x" : 39, "y" : 4, "width" : 100 + PLUS_BUTTON_WIDTH, "color" : "purple", }, { "name" : "str_slot", "type" : "slotbar", "x" : 143 + PLUS_BUTTON_WIDTH, "y" : -1, "width" : 24, "height" : 16, }, { "name" : "str_value", "type" : "text", "x" : 145 + 30, "y" : 1, "text_horizontal_align" : "center", "text" : "00", }, ), }, { "name" : "dex", "type" : "text", "x" : 10, "y" : 195, "text" : uiScriptLocale.CREATE_DEX_GRADE, "children" : ( { "name" : "dex_gauge", "type" : "gauge", "x" : 39, "y" : 4, "width" : 100 + PLUS_BUTTON_WIDTH, "color" : "blue", }, { "name" : "dex_slot", "type" : "slotbar", "x" : 143 + PLUS_BUTTON_WIDTH, "y" : -1, "width" : 24, "height" : 16, }, { "name" : "dex_value", "type" : "text", "x" : 145 + 30, "y" : 1, "text_horizontal_align" : "center", "text" : "00", }, ), }, { "name" : "hth_button", "type" : "button", "x" : 184, "y" : 139, "default_image" : "d:/ymir work/ui/game/windows/btn_plus_up.sub", "over_image" : "d:/ymir work/ui/game/windows/btn_plus_over.sub", "down_image" : "d:/ymir work/ui/game/windows/btn_plus_down.sub", }, { "name" : "int_button", "type" : "button", "x" : 184, "y" : 158, "default_image" : "d:/ymir work/ui/game/windows/btn_plus_up.sub", "over_image" : "d:/ymir work/ui/game/windows/btn_plus_over.sub", "down_image" : "d:/ymir work/ui/game/windows/btn_plus_down.sub", }, { "name" : "str_button", "type" : "button", "x" : 184, "y" : 177, "default_image" : "d:/ymir work/ui/game/windows/btn_plus_up.sub", "over_image" : "d:/ymir work/ui/game/windows/btn_plus_over.sub", "down_image" : "d:/ymir work/ui/game/windows/btn_plus_down.sub", }, { "name" : "dex_button", "type" : "button", "x" : 184, "y" : 196, "default_image" : "d:/ymir work/ui/game/windows/btn_plus_up.sub", "over_image" : "d:/ymir work/ui/game/windows/btn_plus_over.sub", "down_image" : "d:/ymir work/ui/game/windows/btn_plus_down.sub", }, { "name" : "character_name", "type" : "text", "x" : 29, "y" : 218, "text" : uiScriptLocale.CREATE_NAME, "text_horizontal_align" : "center", "children" : ( { "name" : "character_name_slot", "type" : "image", "x" : 40 - 1, "y" : -2, "image" : "d:/ymir work/ui/public/parameter_slot_05.sub", }, { "name" : "character_name_value", "type" : "editline", "x" : 40 - 1 + 3, "y" : 0, "input_limit" : 12, "width" : 90, "height" : 20, }, ), }, { "name" : "character_gender", "type" : "text", "x" : 30, "y" : 247, "text" : uiScriptLocale.CREATE_SEX, "text_horizontal_align" : "center", }, { "name" : "gender_button_01", "type" : "radio_button", "x" : 65, "y" : 247, "text" : uiScriptLocale.CREATE_MAN, "default_image" : ROOT_PATH + "Middle_Button_01.sub", "over_image" : ROOT_PATH + "Middle_Button_02.sub", "down_image" : ROOT_PATH + "Middle_Button_03.sub", }, { "name" : "gender_button_02", "type" : "radio_button", "x" : 130, "y" : 247, "text" : uiScriptLocale.CREATE_WOMAN, "default_image" : ROOT_PATH + "Middle_Button_01.sub", "over_image" : ROOT_PATH + "Middle_Button_02.sub", "down_image" : ROOT_PATH + "Middle_Button_03.sub", }, { "name" : "character_shape", "type" : "text", "x" : 30, "y" : 270, "text" : uiScriptLocale.CREATE_SHAPE, "text_horizontal_align" : "center", }, { "name" : "shape_button_01", "type" : "radio_button", "x" : 65, "y" : 239 + TEMPORARY_HEIGHT, "text" : "1", "default_image" : ROOT_PATH + "Middle_Button_01.sub", "over_image" : ROOT_PATH + "Middle_Button_02.sub", "down_image" : ROOT_PATH + "Middle_Button_03.sub", }, { "name" : "shape_button_02", "type" : "radio_button", "x" : 130, "y" : 239 + TEMPORARY_HEIGHT, "text" : "2", "default_image" : ROOT_PATH + "Middle_Button_01.sub", "over_image" : ROOT_PATH + "Middle_Button_02.sub", "down_image" : ROOT_PATH + "Middle_Button_03.sub", }, { "name" : "create_button", "type" : "button", "x" : 11, "y" : 265 + TEMPORARY_HEIGHT, "text" : uiScriptLocale.CREATE_CREATE, "default_image" : ROOT_PATH + "Large_Button_01.sub", "over_image" : ROOT_PATH + "Large_Button_02.sub", "down_image" : ROOT_PATH + "Large_Button_03.sub", }, { "name" : "cancel_button", "type" : "button", "x" : 109, "y" : 265 + TEMPORARY_HEIGHT, "text" : uiScriptLocale.CANCEL, "default_image" : ROOT_PATH + "Large_Button_01.sub", "over_image" : ROOT_PATH + "Large_Button_02.sub", "down_image" : ROOT_PATH + "Large_Button_03.sub", }, ), }, ## Buttons { "name" : "left_button", "type" : "button", "x" : SCREEN_WIDTH * (450 - 140) / 800, "y" : SCREEN_HEIGHT * (505) / 600, "default_image" : "d:/ymir work/ui/intro/select/dragon_left_button_01.sub", "over_image" : "d:/ymir work/ui/intro/select/dragon_left_button_02.sub", "down_image" : "d:/ymir work/ui/intro/select/dragon_left_button_03.sub", }, { "name" : "right_button", "type" : "button", "x" : SCREEN_WIDTH * (450 - 320) / 800, "y" : SCREEN_HEIGHT * (505) / 600, "default_image" : "d:/ymir work/ui/intro/select/dragon_right_button_01.sub", "over_image" : "d:/ymir work/ui/intro/select/dragon_right_button_02.sub", "down_image" : "d:/ymir work/ui/intro/select/dragon_right_button_03.sub", }, ), }