import uiScriptLocale IMG_DIR = "d:/ymir work/ui/game/gameoption/" TITLE_IMAGE_TEXT_X = 5 TITLE_IMAGE_TEXT_Y = 4 OPTION_START_X = 17 SLIDER_POSITION_X = 50 SLIDER_START_Y = 40 BUTTON_START_Y = 33 BUTTON_NEXT_Y = 20 RADIO_BUTTON_RANGE_X = 65 TOGGLE_BUTTON_RANGE_X = 65 RADIO_BUTTON_TEXT_X = 25 TOGGLE_BUTTON_TEXT_X = 20 SMALL_OPTION_HEIGHT = 65 NORMAL_OPTION_HEIGHT = 80 SLIDER_OPTION_HEIGHT = 65 window = { "name" : "GameOptionDialog", # Dont touch these lines! "style" : (), "x" : 171, "y" : 3, "width" : 300, "height" : 324, # Dont touch these lines! "children" : ( { "name" : "block_mode_window", "type" : "window", "x" : 0, "y" : 0, "width":304, "height":SMALL_OPTION_HEIGHT, "children": ( { "name" : "pvp_mode", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_pvp", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.OPTION_PVPMODE, }, ), }, { "name" : "pvp_peace", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.OPTION_PVPMODE_PEACE, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "pvp_revenge", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.OPTION_PVPMODE_REVENGE, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "pvp_guild", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*2, "y" : 33, "text" : uiScriptLocale.OPTION_PVPMODE_GUILD, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "pvp_free", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*3, "y" : 33, "text" : uiScriptLocale.OPTION_PVPMODE_FREE, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, ), }, { "name" : "block_mode_window", "type" : "window", "x" : 0, "y" : SMALL_OPTION_HEIGHT, "width":304, "height":NORMAL_OPTION_HEIGHT, "children": ( { "name" : "block_mode_title_img", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_block", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.OPTION_BLOCK, }, ), }, { "name" : "block_exchange_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.OPTION_BLOCK_EXCHANGE, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, { "name" : "block_party_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.OPTION_BLOCK_PARTY, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, { "name" : "block_guild_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*2, "y" : 33, "text" : uiScriptLocale.OPTION_BLOCK_GUILD, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, { "name" : "block_whisper_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*0, "y" : 33+20, "text" : uiScriptLocale.OPTION_BLOCK_WHISPER, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, { "name" : "block_friend_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*1, "y" : 33+20, "text" : uiScriptLocale.OPTION_BLOCK_FRIEND, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, { "name" : "block_party_request_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*2, "y" : 33+20, "text" : uiScriptLocale.OPTION_BLOCK_PARTY_REQUEST, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, ), }, { "name" : "quest_letter_window", "type" : "window", "x" : 0, "y" : SMALL_OPTION_HEIGHT+NORMAL_OPTION_HEIGHT, "width":304, "height":SMALL_OPTION_HEIGHT, "children": ( { "name" : "quest_letter_title_img", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_quest", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.GAMEOPTION_QUEST_LETTER, }, ), }, { "name" : "show_letter", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.GAMEOPTION_SHOW, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "hide_letter", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.GAMEOPTION_HIDE, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, ), }, { "name" : "chat_window", "type" : "window", "x" : 0, "y" : SMALL_OPTION_HEIGHT+NORMAL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT, "width":304, "height":SMALL_OPTION_HEIGHT, "children": ( { "name" : "chat_mode_title_img", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_chat", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.OPTION_VIEW_CHAT, }, ), }, { "name" : "view_chat_on_button", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.OPTION_VIEW_CHAT_ON, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "view_chat_off_button", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.GAMEOPTION_HIDE, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, ), }, { "name" : "country_window", "type" : "window", "x" : 0, "y" : SMALL_OPTION_HEIGHT+NORMAL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT, "width":304, "height":SMALL_OPTION_HEIGHT, "children": ( { "name" : "country_mode_title_img", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_country", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.GAMEOPTION_COUNTRY_FLAG, }, ), }, { "name" : "country_flag_on", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.GAMEOPTION_SHOW, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "country_flag_off", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.GAMEOPTION_HIDE, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, ), }, { "name" : "name_color_window", "type" : "window", "x" : 0, "y" : SMALL_OPTION_HEIGHT+NORMAL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT, "width":304, "height":SMALL_OPTION_HEIGHT, "children": ( { "name" : "name_color_title_img", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_name_color", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.OPTION_NAME_COLOR, }, ), }, { "name" : "name_color_normal", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.OPTION_NAME_COLOR_NORMAL, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "name_color_empire", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.OPTION_NAME_COLOR_EMPIRE, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, ), }, { "name" : "target_board_window", "type" : "window", "x" : 0, "y" : SMALL_OPTION_HEIGHT+NORMAL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT, "width":304, "height":SMALL_OPTION_HEIGHT, "children": ( { "name" : "target_board_title_img", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_target_board", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.OPTION_TARGET_BOARD, }, ), }, { "name" : "target_board_view", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.OPTION_TARGET_BOARD_VIEW, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, { "name" : "target_board_no_view", "type" : "radio_button", "x" : OPTION_START_X+RADIO_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.OPTION_TARGET_BOARD_NO_VIEW, "text_x" : RADIO_BUTTON_TEXT_X, "default_image" : IMG_DIR + "radio_unselected.tga", "over_image" : IMG_DIR + "radio_unselected.tga", "down_image" : IMG_DIR + "radio_selected.tga", }, ), }, { "name" : "mob_ai_window", "type" : "window", "x" : 0, "y" : SMALL_OPTION_HEIGHT+NORMAL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT+SMALL_OPTION_HEIGHT, "width":304, "height":SMALL_OPTION_HEIGHT, "children": ( { "name" : "mob_ai_title_img", "type" : "expanded_image", "x" : 0, "y" : 0, "image" : IMG_DIR+"option_title.tga", "children": ( { "name" : "title_mob_ai", "type" : "text", "x" : TITLE_IMAGE_TEXT_X, "y" : TITLE_IMAGE_TEXT_Y, "text_horizontal_align":"left", "text" : uiScriptLocale.OPTION_MOB_INFO, }, ), }, { "name" : "show_mob_level_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*0, "y" : 33, "text" : uiScriptLocale.OPTION_MOB_INFO_LEVEL, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, { "name" : "show_mob_AI_flag_button", "type" : "toggle_button", "x" : OPTION_START_X+TOGGLE_BUTTON_RANGE_X*1, "y" : 33, "text" : uiScriptLocale.OPTION_MOB_INFO_AGGR, "text_x" : TOGGLE_BUTTON_TEXT_X, "default_image" : IMG_DIR + "toggle_unselected.tga", "over_image" : IMG_DIR + "toggle_unselected.tga", "down_image" : IMG_DIR + "toggle_selected.tga", }, ), }, ), }