Tipologie server: PvP
*Resursă folosită: Martysama 5.7
*ServerFiles utilizat: Martysama 5.7
*Syserr: -
Poză:
Cod: Selectaţi tot
SELECTCHARACTERWINDOW.PY:
import uiScriptLocale
import app
ROOT_PATH = "d:/ymir work/ui/public/"
LOCALE_PATH = uiScriptLocale.SELECT_PATH
BOARD_X = SCREEN_WIDTH * (65) / 800
BOARD_Y = SCREEN_HEIGHT * (220) / 600
BOARD_ITEM_ADD_POSITION = -40
if app.ENABLE_WOLFMAN_CHARACTER:
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) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
"image" : "locale/tr/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",
},
{
"name" : "name_wolfman",
"type" : "image",
"x" : BOARD_X - 27,
"y" : BOARD_Y - 174 + 25,
"image" : LOCALE_PATH+"name_wolfman.sub",
},
## Character Board
{
"name" : "character_board",
"type" : "thinboard",
"x" : BOARD_X,
"y" : BOARD_Y,
"width" : 208,
"height" : 363 + BOARD_ITEM_ADD_POSITION,
"children" :
(
## Empire Flag
{
"name" : "EmpireFlag_A",
"type" : "expanded_image",
"x" : 21,
"y" : 12,
"x_scale" : 0.5,
"y_scale" : 0.5,
"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
},
{
"name" : "EmpireFlag_B",
"type" : "expanded_image",
"x" : 21,
"y" : 12,
"x_scale" : 0.5,
"y_scale" : 0.5,
"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
},
{
"name" : "EmpireFlag_C",
"type" : "expanded_image",
"x" : 21,
"y" : 12,
"x_scale" : 0.5,
"y_scale" : 0.5,
"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
},
{
"name" : "EmpireNameSlot",
"type" : "image",
"x" : 100,
"y" : 12,
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
"children" :
(
{
"name" : "EmpireName",
"type" : "text",
"x" : 0,
"y" : 0,
"text" : uiScriptLocale.SELECT_EMPIRE_NAME,
"all_align" : "center",
},
),
},
{
"name" : "GuildNameSlot",
"type" : "image",
"x" : 100,
"y" : 33,
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
"children" :
(
{
"name" : "GuildName",
"type" : "text",
"x" : 0,
"y" : 0,
"text" : uiScriptLocale.SELECT_NO_GUILD,
"all_align" : "center",
},
),
},
{
"name" : "character_name",
"type" : "text",
"x" : 17,
"y" : 124 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_NAME,
"children" :
(
{
"name" : "character_name_slot",
"type" : "image",
"x" : 43,
"y" : -2,
"image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
},
{
"name" : "character_name_value",
"type" : "text",
"x" : 43 + 130/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_level",
"type" : "text",
"x" : 17,
"y" : 50 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_LEVEL,
"children" :
(
{
"name" : "character_level_slot",
"type" : "image",
"x" : 43,
"y" : -2,
"image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
},
{
"name" : "character_level_value",
"type" : "text",
"x" : 43 + 130/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_play_time",
"type" : "text",
"x" : 17,
"y" : 76 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_PLAYTIME,
"children" :
(
{
"name" : "character_play_time_slot",
"type" : "image",
"x" : 83,
"y" : -2,
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
},
{
"name" : "character_play_time_value",
"type" : "text",
"x" : 83 + 91/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_hth",
"type" : "text",
"x" : 17,
"y" : 102 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_HP,
"children" :
(
{
"name" : "gauge_hth",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_int",
"type" : "text",
"x" : 17,
"y" : 128 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_SP,
"children" :
(
{
"name" : "gauge_int",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_str",
"type" : "text",
"x" : 17,
"y" : 154 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_ATT_GRADE,
"children" :
(
{
"name" : "gauge_str",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_dex",
"type" : "text",
"x" : 17,
"y" : 180 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_DEX_GRADE,
"children" :
(
{
"name" : "gauge_dex",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
## Buttons
{
"name" : "start_button",
"type" : "button",
"x" : 14,
"y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_SELECT,
"text_height" : 6,
"default_image" : ROOT_PATH + "XLarge_Button_01.sub",
"over_image" : ROOT_PATH + "XLarge_Button_02.sub",
"down_image" : ROOT_PATH + "XLarge_Button_03.sub",
},
{
"name" : "create_button",
"type" : "button",
"x" : 14,
"y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_CREATE,
"text_height" : 6,
"default_image" : ROOT_PATH + "XLarge_Button_01.sub",
"over_image" : ROOT_PATH + "XLarge_Button_02.sub",
"down_image" : ROOT_PATH + "XLarge_Button_03.sub",
},
{
"name" : "exit_button",
"type" : "button",
"x" : 105,
"y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_EXIT,
"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" : "delete_button",
"type" : "button",
"x" : 14,
"y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_DELETE,
"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 - 22*3) / 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 * (580 - 22) / 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",
},
),
}
else:
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) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
"image" : "locale/tr/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" : 363 + BOARD_ITEM_ADD_POSITION,
"children" :
(
## Empire Flag
{
"name" : "EmpireFlag_A",
"type" : "expanded_image",
"x" : 21,
"y" : 12,
"x_scale" : 0.5,
"y_scale" : 0.5,
"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
},
{
"name" : "EmpireFlag_B",
"type" : "expanded_image",
"x" : 21,
"y" : 12,
"x_scale" : 0.5,
"y_scale" : 0.5,
"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
},
{
"name" : "EmpireFlag_C",
"type" : "expanded_image",
"x" : 21,
"y" : 12,
"x_scale" : 0.5,
"y_scale" : 0.5,
"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
},
{
"name" : "EmpireNameSlot",
"type" : "image",
"x" : 100,
"y" : 12,
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
"children" :
(
{
"name" : "EmpireName",
"type" : "text",
"x" : 0,
"y" : 0,
"text" : uiScriptLocale.SELECT_EMPIRE_NAME,
"all_align" : "center",
},
),
},
{
"name" : "GuildNameSlot",
"type" : "image",
"x" : 100,
"y" : 33,
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
"children" :
(
{
"name" : "GuildName",
"type" : "text",
"x" : 0,
"y" : 0,
"text" : uiScriptLocale.SELECT_NO_GUILD,
"all_align" : "center",
},
),
},
{
"name" : "character_name",
"type" : "text",
"x" : 17,
"y" : 124 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_NAME,
"children" :
(
{
"name" : "character_name_slot",
"type" : "image",
"x" : 43,
"y" : -2,
"image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
},
{
"name" : "character_name_value",
"type" : "text",
"x" : 43 + 130/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_level",
"type" : "text",
"x" : 17,
"y" : 50 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_LEVEL,
"children" :
(
{
"name" : "character_level_slot",
"type" : "image",
"x" : 43,
"y" : -2,
"image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
},
{
"name" : "character_level_value",
"type" : "text",
"x" : 43 + 130/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_play_time",
"type" : "text",
"x" : 17,
"y" : 76 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_PLAYTIME,
"children" :
(
{
"name" : "character_play_time_slot",
"type" : "image",
"x" : 83,
"y" : -2,
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
},
{
"name" : "character_play_time_value",
"type" : "text",
"x" : 83 + 91/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_hth",
"type" : "text",
"x" : 17,
"y" : 102 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_HP,
"children" :
(
{
"name" : "gauge_hth",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_int",
"type" : "text",
"x" : 17,
"y" : 128 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_SP,
"children" :
(
{
"name" : "gauge_int",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_str",
"type" : "text",
"x" : 17,
"y" : 154 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_ATT_GRADE,
"children" :
(
{
"name" : "gauge_str",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
{
"name" : "character_dex",
"type" : "text",
"x" : 17,
"y" : 180 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_DEX_GRADE,
"children" :
(
{
"name" : "gauge_dex",
"type" : "gauge",
"x" : 30,
"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" : 134 + 39/2,
"y" : 0,
"text" : "",
"text_horizontal_align" : "center",
},
),
},
## Buttons
{
"name" : "start_button",
"type" : "button",
"x" : 14,
"y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_SELECT,
"text_height" : 6,
"default_image" : ROOT_PATH + "XLarge_Button_01.sub",
"over_image" : ROOT_PATH + "XLarge_Button_02.sub",
"down_image" : ROOT_PATH + "XLarge_Button_03.sub",
},
{
"name" : "create_button",
"type" : "button",
"x" : 14,
"y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_CREATE,
"text_height" : 6,
"default_image" : ROOT_PATH + "XLarge_Button_01.sub",
"over_image" : ROOT_PATH + "XLarge_Button_02.sub",
"down_image" : ROOT_PATH + "XLarge_Button_03.sub",
},
{
"name" : "exit_button",
"type" : "button",
"x" : 105,
"y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_EXIT,
"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" : "delete_button",
"type" : "button",
"x" : 14,
"y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
"text" : uiScriptLocale.SELECT_DELETE,
"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 - 22*3) / 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 * (580 - 22) / 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",
},
),
}
Cod: Selectaţi tot
CREATECHARACTERWINDOW.PY:
import uiScriptLocale
import app
ROOT_PATH = "d:/ymir work/ui/public/"
LOCALE_PATH = "locale/tr/ui/select/"
BOARD_X = SCREEN_WIDTH * (65) / 800
BOARD_Y = SCREEN_HEIGHT * (215) / 600
PLUS_BUTTON_WIDTH = 20
TEMPORARY_HEIGHT = 24 + 5
if app.ENABLE_WOLFMAN_CHARACTER:
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/tr/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",
},
{
"name" : "name_wolfman",
"type" : "image",
"x" : BOARD_X - 27,
"y" : BOARD_Y - 174 + 25,
"image" : LOCALE_PATH+"name_wolfman.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" : 15,
"y" : 138,
"text" : uiScriptLocale.CREATE_HP,
"children" :
(
{
"name" : "hth_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "red",
},
{
"name" : "hth_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "hth_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"name" : "int",
"type" : "text",
"x" : 15,
"y" : 157,
"text" : uiScriptLocale.CREATE_SP,
"children" :
(
{
"name" : "int_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "pink",
},
{
"name" : "int_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "int_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"name" : "str",
"type" : "text",
"x" : 15,
"y" : 176,
"text" : uiScriptLocale.CREATE_ATT_GRADE,
"children" :
(
{
"name" : "str_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "purple",
},
{
"name" : "str_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "str_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"name" : "dex",
"type" : "text",
"x" : 15,
"y" : 195,
"text" : uiScriptLocale.CREATE_DEX_GRADE,
"children" :
(
{
"name" : "dex_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "blue",
},
{
"name" : "dex_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "dex_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"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" : 43,
"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_04.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" : 43,
"y" : 247,
"text" : uiScriptLocale.CREATE_SEX,
"text_horizontal_align" : "center",
},
{
"name" : "gender_button_01",
"type" : "radio_button",
"x" : 79,
"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" : 139,
"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" : 43,
"y" : 270,
"text" : uiScriptLocale.CREATE_SHAPE,
"text_horizontal_align" : "center",
},
{
"name" : "shape_button_01",
"type" : "radio_button",
"x" : 79,
"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" : 139,
"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 - 22*3) / 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 * (580 - 22) / 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",
},
),
}
else:
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/tr/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" : 15,
"y" : 138,
"text" : uiScriptLocale.CREATE_HP,
"children" :
(
{
"name" : "hth_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "red",
},
{
"name" : "hth_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "hth_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"name" : "int",
"type" : "text",
"x" : 15,
"y" : 157,
"text" : uiScriptLocale.CREATE_SP,
"children" :
(
{
"name" : "int_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "pink",
},
{
"name" : "int_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "int_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"name" : "str",
"type" : "text",
"x" : 15,
"y" : 176,
"text" : uiScriptLocale.CREATE_ATT_GRADE,
"children" :
(
{
"name" : "str_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "purple",
},
{
"name" : "str_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "str_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"name" : "dex",
"type" : "text",
"x" : 15,
"y" : 195,
"text" : uiScriptLocale.CREATE_DEX_GRADE,
"children" :
(
{
"name" : "dex_gauge",
"type" : "gauge",
"x" : 30,
"y" : 4,
"width" : 100 + PLUS_BUTTON_WIDTH,
"color" : "blue",
},
{
"name" : "dex_slot",
"type" : "slotbar",
"x" : 137 + PLUS_BUTTON_WIDTH,
"y" : -1,
"width" : 24,
"height" : 16,
"children" :
(
{
"name" : "dex_value",
"type" : "text",
"x" : 0,
"y" : 1,
"all_align" : "center",
"text" : "99",
},
),
},
),
},
{
"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" : 43,
"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_04.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" : 43,
"y" : 247,
"text" : uiScriptLocale.CREATE_SEX,
"text_horizontal_align" : "center",
},
{
"name" : "gender_button_01",
"type" : "radio_button",
"x" : 79,
"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" : 139,
"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" : 43,
"y" : 270,
"text" : uiScriptLocale.CREATE_SHAPE,
"text_horizontal_align" : "center",
},
{
"name" : "shape_button_01",
"type" : "radio_button",
"x" : 79,
"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" : 139,
"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 - 22*3) / 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 * (580 - 22) / 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",
},
),
}



