import localeInfo import app PATTERN_PATH = "d:/ymir work/ui/pattern/" ROOT_PATH = "d:/ymir work/ui/public/" CHATTING_PATH = "d:/ymir work/ui/chat/" WINDOW_WIDTH = 254 WINDOW_HEIGHT = 525 PATTERN_WINDOW_WIDTH = 232 PATTERN_WINDOW_HEIGHT = WINDOW_HEIGHT-70 PATTERN_X_COUNT = (PATTERN_WINDOW_WIDTH - 32) / 16 PATTERN_Y_COUNT = (PATTERN_WINDOW_HEIGHT - 32) / 16 window = { "name" : "ChatSettingWindow", "style" : ("movable", "float", "animate",), "x" : SCREEN_WIDTH / 2 - WINDOW_WIDTH / 2, "y" : SCREEN_HEIGHT / 2 - WINDOW_HEIGHT / 2, "width" : WINDOW_WIDTH, "height" : WINDOW_HEIGHT, "children" : ( { "name" : "board", "type" : "board_with_titlebar", "style" : ("attach",), "x" : 0, "y" : 0, "width" : WINDOW_WIDTH, "height" : WINDOW_HEIGHT, "title" : localeInfo.CHATTING_SETTING_TITLE, "children" : ( ## Base pattern { "name" : "base_pattern", "type" : "window", "style" : ("attach", "ltr",), "x" : 10, "y" : 32, "width" : PATTERN_WINDOW_WIDTH, "height" :PATTERN_WINDOW_HEIGHT, "children" : ( ## LeftTop 1 { "name" : "pattern_left_top_img", "type" : "image", "style" : ("ltr",), "x" : 0, "y" : 0, "image" : PATTERN_PATH + "border_A_left_top.tga", }, ## RightTop 2 { "name" : "pattern_right_top_img", "type" : "image", "style" : ("ltr",), "x" : PATTERN_WINDOW_WIDTH - 16, "y" : 0, "image" : PATTERN_PATH + "border_A_right_top.tga", }, ## LeftBottom 3 { "name" : "pattern_left_bottom_img", "type" : "image", "style" : ("ltr",), "x" : 0, "y" : PATTERN_WINDOW_HEIGHT - 16, "image" : PATTERN_PATH + "border_A_left_bottom.tga", }, ## RightBottom 4 { "name" : "pattern_right_bottom_img", "type" : "image", "style" : ("ltr",), "x" : PATTERN_WINDOW_WIDTH - 16, "y" : PATTERN_WINDOW_HEIGHT - 16, "image" : PATTERN_PATH + "border_A_right_bottom.tga", }, ## TopCenterImg 5 { "name" : "pattern_top_cetner_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 16, "y" : 0, "image" : PATTERN_PATH + "border_A_top.tga", "rect" : (0.0, 0.0, PATTERN_X_COUNT, 0), }, ## LeftCenterImg 6 { "name" : "pattern_left_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 0, "y" : 16, "image" : PATTERN_PATH + "border_A_left.tga", "rect" : (0.0, 0.0, 0, PATTERN_Y_COUNT), }, ## RightCenterImg 7 { "name" : "pattern_right_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : PATTERN_WINDOW_WIDTH - 16, "y" : 16, "image" : PATTERN_PATH + "border_A_right.tga", "rect" : (0.0, 0.0, 0, PATTERN_Y_COUNT), }, ## BottomCenterImg 8 { "name" : "pattern_bottom_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 16, "y" : PATTERN_WINDOW_HEIGHT - 16, "image" : PATTERN_PATH + "border_A_bottom.tga", "rect" : (0.0, 0.0, PATTERN_X_COUNT, 0), }, ## CenterImg { "name" : "pattern_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 16, "y" : 16, "image" : PATTERN_PATH + "border_A_center.tga", "rect" : (0.0, 0.0, PATTERN_X_COUNT, PATTERN_Y_COUNT), }, ), }, # BIG IMAGE STEP - 28 # SMALL IMAGE STEP - 18 { "name" : "chatting_setting_menu_bg", "type" : "image", "x" : 15, "y" : 37,"image" : CHATTING_PATH + "chattingoption_menu_bg.sub", "children" :({ "name" : "chatting_setting", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_TITLE, "all_align" : "center" },), }, { "name" : "chatting_setting_talking_bg", "type" : "image", "x" : 18, "y" : 65,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_list", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_LIST, "all_align":"center" },), }, { "name" : "chatting_setting_talking_bg", "type" : "image", "x" : 18, "y" : 83,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_talking", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_TALKING, "all_align":"center" },), }, { "name" : "chatting_setting_party_bg", "type" : "image", "x" : 18, "y" : 101, "image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_party", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_PARTY, "all_align":"center" },), }, { "name" : "chatting_setting_guild_bg", "type" : "image", "x" : 18, "y" : 119,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_guild", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_GUILD, "all_align":"center" },), }, { "name" : "chatting_setting_shout_bg", "type" : "image", "x" : 18, "y" : 137,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_shout", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_SHOUT, "all_align":"center" },), }, { "name" : "chatting_setting_info_bg", "type" : "image", "x" : 18, "y" : 155,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_info", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_SYSTEM, "all_align":"center" },), }, { "name" : "chatting_setting_notice_bg", "type" : "image", "x" : 18, "y" : 173,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_notice", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_NOTICE, "all_align":"center" },), }, # ------- LANGUAGE --------# { "name" : "lang_setting_menu_bg", "type" : "image", "x" : 15, "y" : 194,"image" : CHATTING_PATH + "chattingoption_menu_bg.sub", "children" :({ "name" : "lang_setting", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_LANGUAGE_CUR % "none", "all_align" : "center" },), }, { "name" : "filter_setting_lang_bg", "type" : "image", "x" : 18, "y" : 222,"image" : CHATTING_PATH + "chattingoption_sub_small_1_bg.sub", "children" :({ "name" : "filter_setting_lang", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_LANGUAGE_ONOFF, "all_align":"center" },), }, ## Filter Button { "name" : "filter_button", "type" : "toggle_button", "x" : 18+75+5, "y" : 222, "default_image" : "d:/ymir work/ui/public/xsmall_button_01.sub", "over_image" : "d:/ymir work/ui/public/xsmall_button_02.sub", "down_image" : "d:/ymir work/ui/public/xsmall_button_03.sub", "text":localeInfo.CHATTING_SETTING_LANGUAGE_OFF, }, { "name" : "lang1_setting_lang_bg", "type" : "image", "x" : 18, "y" : 240,"image" : CHATTING_PATH + "chattingoption_sub_small_1_bg.sub", "children" :({ "name" : "lang1_setting_lang", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_LANGUAGE % 1, "all_align":"center" },), }, { "name" : "lang2_setting_lang_bg", "type" : "image", "x" : 18, "y" : 258,"image" : CHATTING_PATH + "chattingoption_sub_small_1_bg.sub", "children" :({ "name" : "lang2_setting_lang", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_LANGUAGE % 2, "all_align":"center" },), }, { "name" : "lang3_setting_lang_bg", "type" : "image", "x" : 18, "y" : 276,"image" : CHATTING_PATH + "chattingoption_sub_small_1_bg.sub", "children" :({ "name" : "lang3_setting_lang", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_LANGUAGE % 3, "all_align":"center" },), }, # ------- DICE --------# { "name" : "dice_setting_menu_bg", "type" : "image", "x" : 15, "y" : 297,"image" : "d:/ymir work/ui/chat/chattingoption_menu_bg.sub", "children" :({ "name" : "dice_setting", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_DICE_SETTING, "all_align":"center" },), }, { "name" : "chatting_setting_dice_bg", "type" : "image", "x" : 18, "y" : 325,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_dice", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_DICE, "all_align":"center" },), }, # ------- ITEM SETTING --------# { "name" : "system_setting_menu_bg", "type" : "image", "x" : 15, "y" : 346,"image" : "d:/ymir work/ui/chat/chattingoption_menu_bg.sub", "children" :({ "name" : "system_setting", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_DETAIL, "all_align":"center" },), }, { "name" : "chatting_setting_exp_bg", "type" : "image", "x" : 18, "y" : 374,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_exp", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_EXP, "all_align":"center" },), }, { "name" : "chatting_setting_item_bg", "type" : "image", "x" : 18, "y" : 392,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_item", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_ITEM, "all_align":"center" },), }, { "name" : "chatting_setting_gold_bg", "type" : "image", "x" : 18, "y" : 410,"image" : CHATTING_PATH + "chattingoption_sub_large_bg.sub", "children" :({ "name" : "chatting_setting_gold", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_GOLD, "all_align":"center" },), }, # ------- CHAT NAME SETTING --------# { "name" : "name_setting_menu_bg", "type" : "image", "x" : 15, "y" : 431,"image" : "d:/ymir work/ui/chat/chattingoption_menu_bg.sub", "children" :({ "name" : "system_setting", "type" : "text", "x" : 0, "y" : 0, "text" : localeInfo.CHATTING_SETTING_TABNAME, "all_align":"center" },), }, { "name" : "name_setting_slotbar", "type" : "slotbar", "x" : 15, "y" : 459,"width":120,"height":17, "children" :({ "name" : "name_editline", "type" : "editline", "x" : 3, "y" : 2, "width":120, "height":17,"input_limit":6, },), }, ## NameButton { "name" : "name_button", "type" : "button", "x" : 15+120+5, "y" : 459, "default_image" : CHATTING_PATH + "chattingoption_enter_btn_01.sub", "over_image" : CHATTING_PATH + "chattingoption_enter_btn_02.sub", "down_image" : CHATTING_PATH + "chattingoption_enter_btn_03.sub", }, ## ResetButton { "name" : "reset_button", "type" : "button", "x" : 10, "y" : WINDOW_HEIGHT - 31, "default_image" : CHATTING_PATH + "chattingoption_bottom_button_01.sub", "over_image" : CHATTING_PATH + "chattingoption_bottom_button_02.sub", "down_image" : CHATTING_PATH + "chattingoption_bottom_button_03.sub", "text" : localeInfo.CHATTING_SETTING_CLEAR, }, ## SaveButton { "name" : "save_button", "type" : "button", "x" : 88, "y" : WINDOW_HEIGHT - 31, "default_image" : CHATTING_PATH + "chattingoption_bottom_button_01.sub", "over_image" : CHATTING_PATH + "chattingoption_bottom_button_02.sub", "down_image" : CHATTING_PATH + "chattingoption_bottom_button_03.sub", "text" : localeInfo.CHATTING_SETTING_SAVE, }, ## CancelButton { "name" : "cancel_button", "type" : "button", "x" : 166, "y" : WINDOW_HEIGHT - 31, "default_image" : CHATTING_PATH + "chattingoption_bottom_button_01.sub", "over_image" : CHATTING_PATH + "chattingoption_bottom_button_02.sub", "down_image" : CHATTING_PATH + "chattingoption_bottom_button_03.sub", "text" : localeInfo.CHATTING_SETTING_CANCLE, }, ), }, ), }