Jump to content

select probblem help


Recommended Posts

On 2/28/2017 at 1:08 PM, [007]DawisHU said:

locale_** selectwindow.py and reconfig X + Y coords to the right place

 

thank you for your reply

but exist selectcharacterwindow.py

import localeInfo
import uiScriptLocale
ROOT_PATH = "d:/ymir work/ui/public/"
LOCALE_PATH = uiScriptLocale.SELECT_PATH

BOARD_X = SCREEN_WIDTH * (25) / 800
BOARD_Y = SCREEN_HEIGHT * (156) / 600

PLUS_BUTTON_WIDTH = 20
TEMPORARY_HEIGHT = 30
BOARD_ITEM_ADD_POSITION = -40

X_GAP = 11
Y_GAP = 12

NAME_X = 18
NAME_Y = 84
NAME_SCALE_X = 0.65
NAME_SCALE_Y = 0.65

FLAG_SCALE_X = 0.45
FLAG_SCALE_Y = 0.45

SHADOW_SCALE_X = 3.0 * SCREEN_WIDTH  / 800.0
SHADOW_SCALE_Y = 2.0 * SCREEN_HEIGHT / 600.0

STAT_GAUGE_X = X_GAP + 3
STAT_GAUGE_Y = 286
STAT_GAUGE_BAR_X = 40
STAT_GAUGE_BAR_WIDTH = 105
STAT_GAUGE_GAP = 18
STAT_GAUGE_TEXT_WIDTH = 21
STAT_GAUGE_TEXT_HEIGHT = 13

THINBOARD_GOLD_HEIGHT = 364
THINBOARD_CIRCLE_LEFT_WIDTH = 175
THINBOARD_CIRCLE_RIGHT_WIDTH = 180
THINBOARD_CIRCLE_RIGHT_HEIGHT = 270

DESC_FACE_X = 4
DESC_FACE_Y = -23

FACE_X = 7
FACE_Y = 4
SELECT_BTN_X = X_GAP + 4
SELECT_BTN_Y = 10
SELECT_BTN_GAP = 44

window = {
    "name" : "New_SelectCharacterWindow",
    "x" : 0,
    "y" : 0,
    "width" : SCREEN_WIDTH,
    "height" : SCREEN_HEIGHT,
    "children"    :
    (
        {
            "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_PATH + "empire/background/empire_sinsu.sub",
        },
        {
            "name" : "BackGround2",
            "type" : "expanded_image",
            "x" : 0,
            "y" : 0,
            "x_scale" : float(SCREEN_WIDTH) / 1024.0,
            "y_scale" : float(SCREEN_HEIGHT) / 768.0,
            "image" : LOCALE_PATH + "empire/background/empire_chunjo.sub",
        },
        {
            "name" : "BackGround3",
            "type" : "expanded_image",
            "x" : 0,
            "y" : 0,
            "x_scale" : float(SCREEN_WIDTH) / 1024.0,
            "y_scale" : float(SCREEN_HEIGHT) / 768.0,
            "image" : LOCALE_PATH + "empire/background/empire_jinno.sub",
        },
        {
            "name" : "desc_phase",
            "type" : "image",
            "x" : 0,
            "y" : BOARD_Y - NAME_Y - 45,
            "image" : ROOT_PATH + "public_intro_btn/descPhase_btn.sub",
            "children" :
            (
                {
                    "name" : "my_id", "type" : "text",
                    "x" : 18, "y" : 7, "r" : 0.7843, "g" : 0.7843, "b" : 0.7843,
                    "text" : "",
                    "fontsize" : "LARGE",
                },
            ),
        },
        {
            "name" : "name_warrior",
            "type" : "expanded_image", 
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_warrior.sub",
        },
        {
            "name" : "name_assassin",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_assassin.sub",
        },
        {
            "name" : "name_sura",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_sura.sub",
        },
        {
            "name" : "name_shaman",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_shaman.sub",
        },
        {
            "name" : "name_wolf",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_wolf.sub",
        },
        {
            "name" : "Shadow",
            "type" : "expanded_image",
            "x" : SCREEN_WIDTH/2 - (64)*SHADOW_SCALE_X,
            "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0 - (88)*SHADOW_SCALE_Y/2.0, 
            "x_scale" : SHADOW_SCALE_X, "y_scale" : SHADOW_SCALE_Y,
            "image" : LOCALE_PATH + "shadow/shadow.tga",
        },
        {
            "name" : "character_board",
            "type" : "thinboard_gold",
            "x" : BOARD_X,
            "y" : BOARD_Y,
            "width" : THINBOARD_CIRCLE_LEFT_WIDTH + (X_GAP * 2) + 1,
            "height" : 305,
            "children" :
            (
                {
                    "name" : "EmpireNameSlot",
                    "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : Y_GAP,
                    "width" : THINBOARD_CIRCLE_LEFT_WIDTH,
                    "height" : 42,
                    "children" :
                    (
                        {
                            "name" : "EmpireFlag_A",
                            "type" : "expanded_image",
                            "x" : 4,
                            "y" : 3,
                            "x_scale" : FLAG_SCALE_X,
                            "y_scale" : FLAG_SCALE_Y,
                            "image" : LOCALE_PATH + "empire/empireflag_a.sub"
                        },
                        {
                            "name" : "EmpireFlag_B",
                            "type" : "expanded_image",
                            "x" : 4,
                            "y" : 3,
                            "x_scale" : FLAG_SCALE_X,
                            "y_scale" : FLAG_SCALE_Y,
                            "image" : LOCALE_PATH + "empire/empireflag_b.sub"
                        },
                        {
                            "name" : "EmpireFlag_C",
                            "type" : "expanded_image",
                            "x" : 4,
                            "y" : 3,
                            "x_scale" : FLAG_SCALE_X,
                            "y_scale" : FLAG_SCALE_Y,
                            "image" : LOCALE_PATH + "empire/empireflag_c.sub"
                        },
                        {
                            "name" : "EmpireName",
                            "type" : "text",
                            "x" : 29,
                            "y" : 0,
                            "text" : uiScriptLocale.SELECT_EMPIRE_NAME,
                            "fontsize" : "LARGE",
                            "all_align" : "center",
                        },
                    ),
                },
                {
                    "name" : "SelectJobSlot",
                    "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : 61,
                    "width" : THINBOARD_CIRCLE_LEFT_WIDTH,
                    "height" : 231,
                    "children" :
                    (
                        {
                            "name" : "NoneButton_0",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_1",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_2",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*2,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_3", 
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*3,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_4",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*4,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "CharacterSlot_0",
                            "type" : "radio_button", 
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_1",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_2",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*2,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_3",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*3,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_4",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*4,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterFace_0",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_1",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_2",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*2 - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_3",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*3 - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_4",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*4 - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                    ),
                },
            ),
        },
        {
            "name" : "select_thinboard2",
            "type" : "thinboard_gold", 
            "x" : BOARD_X,
            "y" : BOARD_Y + 305 + 3,
            "width" : THINBOARD_CIRCLE_LEFT_WIDTH + (X_GAP * 2) + 1,
            "height" : (Y_GAP * 2) + 27,
            "children" : 
            (
                {
                    "name" : "create_button",
                    "type" : "button",
                    "x" : X_GAP + 4, "y" : Y_GAP,
                    "default_image" : ROOT_PATH + "public_intro_btn/plus_btn_01.sub",
                    "over_image" : ROOT_PATH + "public_intro_btn/plus_btn_02.sub",
                    "down_image" : ROOT_PATH + "public_intro_btn/plus_btn_03.sub",
                },
                
                {
                    "name" : "start_button",
                    "type" : "button",
                    "x" : SCREEN_WIDTH/2 - 107,
                    "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0,
                    "default_image" : ROOT_PATH + "public_intro_btn/start_btn_01.sub",
                    "over_image" : ROOT_PATH + "public_intro_btn/start_btn_02.sub",
                    "down_image" : ROOT_PATH + "public_intro_btn/start_btn_03.sub",
                },
                {
                    "name" : "delete_button",
                    "type" : "button",
                    "x" : THINBOARD_CIRCLE_LEFT_WIDTH + X_GAP - 58,
                    "y" : Y_GAP,
                    "default_image" : ROOT_PATH + "public_intro_btn/minus_btn_01.sub",
                    "over_image" : ROOT_PATH + "public_intro_btn/minus_btn_02.sub",
                    "down_image" : ROOT_PATH + "public_intro_btn/minus_btn_03.sub",
                },
            ),
        },
        {
            "name" : "start_button",
            "type" : "button",
            "x" : SCREEN_WIDTH/2 - 107,
            "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0,
            "default_image" : ROOT_PATH + "public_intro_btn/start_btn_01.sub",
            "over_image" : ROOT_PATH + "public_intro_btn/start_btn_02.sub",
            "down_image" : ROOT_PATH + "public_intro_btn/start_btn_03.sub",
        },
        {
            "name" : "exit_button",
            "type" : "button",
            "x" : SCREEN_WIDTH/2 + 32,
            "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0,
            "default_image" : ROOT_PATH + "public_intro_btn/cancel_btn_01.sub",
            "over_image" : ROOT_PATH + "public_intro_btn/cancel_btn_02.sub",
            "down_image" : ROOT_PATH + "public_intro_btn/cancel_btn_03.sub",
        },
        {
            "name" : "character_discriptionboard",
            "type" : "thinboard_gold",
            "x" : SCREEN_WIDTH - BOARD_X - (THINBOARD_CIRCLE_RIGHT_WIDTH + (X_GAP * 2)),
            "y" : BOARD_Y,
            "width" : THINBOARD_CIRCLE_RIGHT_WIDTH + (X_GAP * 2) + 1,
            "height" : THINBOARD_GOLD_HEIGHT,
            "children"    :
            (
                {
                    "name" : "raceName_Btn",
                    "type" : "image",
                    "x" : 10,
                    "y" : -17,
                    "image" : ROOT_PATH + "public_intro_btn/raceName_btn.sub",
                    "children" :
                    (
                        {
                            "name" : "DiscFace",
                            "type" : "image",
                            "x" : DESC_FACE_X,
                            "y" : DESC_FACE_Y,
                            "image" : "icon/face/warrior_m.tga"
                        },
                        {
                            "name" : "raceName_Text",
                            "type" : "text",
                            "x" : 100,
                            "y" : 5,
                            "r" : 0.7843,
                            "g" : 0.7843,
                            "b" : 0.7843,
                            "text" : localeInfo.JOB_WARRIOR, "text_horizontal_align" : "center"
                        }
                    ),
                },
                {
                    "name" : "text_board", "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : Y_GAP,
                    "width" : THINBOARD_CIRCLE_RIGHT_WIDTH,
                    "height" : THINBOARD_CIRCLE_RIGHT_HEIGHT,
                    "children" :
                    (
                        {
                            "name" : "prev_button",
                            "type" : "button",
                            "x" : 122,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/prev_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                        },
                        {
                            "name" : "next_button",
                            "type" : "button",
                            "x" : 122 + 20 + 10,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/next_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",
                        },
                    ),
                },
                {
                    "name" : "hth",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y,
                    "text" : uiScriptLocale.CREATE_HP,
                    "children" :
                    (
                        {
                            "name" : "hth_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "red",
                        },
                        {
                            "name" : "hth_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "hth_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
                {
                    "name" : "int",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y + STAT_GAUGE_GAP,
                    "text" : uiScriptLocale.CREATE_SP,
                    "children" :
                    (
                        {
                            "name" : "int_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "pink",
                        },
                        {
                            "name" : "int_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "int_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
                {
                    "name" : "str",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y + STAT_GAUGE_GAP*2,
                    "text" : uiScriptLocale.CREATE_ATT_GRADE,
                    "children" :
                    (
                        {
                            "name" : "str_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "purple",
                        },
                        {
                            "name" : "str_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "str_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
                {
                    "name" : "dex",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y + STAT_GAUGE_GAP*3,
                    "text" : uiScriptLocale.CREATE_DEX_GRADE,
                    "children" :
                    (
                        {
                            "name" : "dex_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "blue",
                        },
                        {
                            "name" : "dex_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "dex_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
            ), 
        },
    ),    
}

What is the responsible thing?
 

 

Link to comment
Share on other sites

Just now, TheEnd said:

thank you for your reply

but exist selectcharacterwindow.py


import localeInfo
import uiScriptLocale
ROOT_PATH = "d:/ymir work/ui/public/"
LOCALE_PATH = uiScriptLocale.SELECT_PATH

BOARD_X = SCREEN_WIDTH * (25) / 800
BOARD_Y = SCREEN_HEIGHT * (156) / 600

PLUS_BUTTON_WIDTH = 20
TEMPORARY_HEIGHT = 30
BOARD_ITEM_ADD_POSITION = -40

X_GAP = 11
Y_GAP = 12

NAME_X = 18
NAME_Y = 84
NAME_SCALE_X = 0.65
NAME_SCALE_Y = 0.65

FLAG_SCALE_X = 0.45
FLAG_SCALE_Y = 0.45

SHADOW_SCALE_X = 3.0 * SCREEN_WIDTH  / 800.0
SHADOW_SCALE_Y = 2.0 * SCREEN_HEIGHT / 600.0

STAT_GAUGE_X = X_GAP + 3
STAT_GAUGE_Y = 286
STAT_GAUGE_BAR_X = 40
STAT_GAUGE_BAR_WIDTH = 105
STAT_GAUGE_GAP = 18
STAT_GAUGE_TEXT_WIDTH = 21
STAT_GAUGE_TEXT_HEIGHT = 13

THINBOARD_GOLD_HEIGHT = 364
THINBOARD_CIRCLE_LEFT_WIDTH = 175
THINBOARD_CIRCLE_RIGHT_WIDTH = 180
THINBOARD_CIRCLE_RIGHT_HEIGHT = 270

DESC_FACE_X = 4
DESC_FACE_Y = -23

FACE_X = 7
FACE_Y = 4
SELECT_BTN_X = X_GAP + 4
SELECT_BTN_Y = 10
SELECT_BTN_GAP = 44

window = {
    "name" : "New_SelectCharacterWindow",
    "x" : 0,
    "y" : 0,
    "width" : SCREEN_WIDTH,
    "height" : SCREEN_HEIGHT,
    "children"    :
    (
        {
            "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_PATH + "empire/background/empire_sinsu.sub",
        },
        {
            "name" : "BackGround2",
            "type" : "expanded_image",
            "x" : 0,
            "y" : 0,
            "x_scale" : float(SCREEN_WIDTH) / 1024.0,
            "y_scale" : float(SCREEN_HEIGHT) / 768.0,
            "image" : LOCALE_PATH + "empire/background/empire_chunjo.sub",
        },
        {
            "name" : "BackGround3",
            "type" : "expanded_image",
            "x" : 0,
            "y" : 0,
            "x_scale" : float(SCREEN_WIDTH) / 1024.0,
            "y_scale" : float(SCREEN_HEIGHT) / 768.0,
            "image" : LOCALE_PATH + "empire/background/empire_jinno.sub",
        },
        {
            "name" : "desc_phase",
            "type" : "image",
            "x" : 0,
            "y" : BOARD_Y - NAME_Y - 45,
            "image" : ROOT_PATH + "public_intro_btn/descPhase_btn.sub",
            "children" :
            (
                {
                    "name" : "my_id", "type" : "text",
                    "x" : 18, "y" : 7, "r" : 0.7843, "g" : 0.7843, "b" : 0.7843,
                    "text" : "",
                    "fontsize" : "LARGE",
                },
            ),
        },
        {
            "name" : "name_warrior",
            "type" : "expanded_image", 
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_warrior.sub",
        },
        {
            "name" : "name_assassin",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_assassin.sub",
        },
        {
            "name" : "name_sura",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_sura.sub",
        },
        {
            "name" : "name_shaman",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_shaman.sub",
        },
        {
            "name" : "name_wolf",
            "type" : "expanded_image",
            "x" : BOARD_X + NAME_X,
            "y" : BOARD_Y - NAME_Y,
            "x_scale" : NAME_SCALE_X,
            "y_scale" : NAME_SCALE_Y,
            "image" : LOCALE_PATH + "name_wolf.sub",
        },
        {
            "name" : "Shadow",
            "type" : "expanded_image",
            "x" : SCREEN_WIDTH/2 - (64)*SHADOW_SCALE_X,
            "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0 - (88)*SHADOW_SCALE_Y/2.0, 
            "x_scale" : SHADOW_SCALE_X, "y_scale" : SHADOW_SCALE_Y,
            "image" : LOCALE_PATH + "shadow/shadow.tga",
        },
        {
            "name" : "character_board",
            "type" : "thinboard_gold",
            "x" : BOARD_X,
            "y" : BOARD_Y,
            "width" : THINBOARD_CIRCLE_LEFT_WIDTH + (X_GAP * 2) + 1,
            "height" : 305,
            "children" :
            (
                {
                    "name" : "EmpireNameSlot",
                    "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : Y_GAP,
                    "width" : THINBOARD_CIRCLE_LEFT_WIDTH,
                    "height" : 42,
                    "children" :
                    (
                        {
                            "name" : "EmpireFlag_A",
                            "type" : "expanded_image",
                            "x" : 4,
                            "y" : 3,
                            "x_scale" : FLAG_SCALE_X,
                            "y_scale" : FLAG_SCALE_Y,
                            "image" : LOCALE_PATH + "empire/empireflag_a.sub"
                        },
                        {
                            "name" : "EmpireFlag_B",
                            "type" : "expanded_image",
                            "x" : 4,
                            "y" : 3,
                            "x_scale" : FLAG_SCALE_X,
                            "y_scale" : FLAG_SCALE_Y,
                            "image" : LOCALE_PATH + "empire/empireflag_b.sub"
                        },
                        {
                            "name" : "EmpireFlag_C",
                            "type" : "expanded_image",
                            "x" : 4,
                            "y" : 3,
                            "x_scale" : FLAG_SCALE_X,
                            "y_scale" : FLAG_SCALE_Y,
                            "image" : LOCALE_PATH + "empire/empireflag_c.sub"
                        },
                        {
                            "name" : "EmpireName",
                            "type" : "text",
                            "x" : 29,
                            "y" : 0,
                            "text" : uiScriptLocale.SELECT_EMPIRE_NAME,
                            "fontsize" : "LARGE",
                            "all_align" : "center",
                        },
                    ),
                },
                {
                    "name" : "SelectJobSlot",
                    "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : 61,
                    "width" : THINBOARD_CIRCLE_LEFT_WIDTH,
                    "height" : 231,
                    "children" :
                    (
                        {
                            "name" : "NoneButton_0",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_1",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_2",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*2,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_3", 
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*3,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "NoneButton_4",
                            "type" : "image",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*4,
                            "image" : ROOT_PATH + "public_intro_btn/emptySlot_btn.sub"
                        },
                        {
                            "name" : "CharacterSlot_0",
                            "type" : "radio_button", 
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_1",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_2",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*2,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_3",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*3,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterSlot_4",
                            "type" : "radio_button",
                            "x" : SELECT_BTN_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*4,
                            "default_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/150x35_Selectbtn_03.sub",
                        },
                        {
                            "name" : "CharacterFace_0",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_1",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_2",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*2 - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_3",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*3 - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                        {
                            "name" : "CharacterFace_4",
                            "type" : "image",
                            "x" : SELECT_BTN_X - FACE_X,
                            "y" : SELECT_BTN_Y + SELECT_BTN_GAP*4 - FACE_Y,
                            "image" : "D:/ymir work/ui/intro/public_intro/face/face_warrior_m_01.sub"
                        },
                    ),
                },
            ),
        },
        {
            "name" : "select_thinboard2",
            "type" : "thinboard_gold", 
            "x" : BOARD_X,
            "y" : BOARD_Y + 305 + 3,
            "width" : THINBOARD_CIRCLE_LEFT_WIDTH + (X_GAP * 2) + 1,
            "height" : (Y_GAP * 2) + 27,
            "children" : 
            (
                {
                    "name" : "create_button",
                    "type" : "button",
                    "x" : X_GAP + 4, "y" : Y_GAP,
                    "default_image" : ROOT_PATH + "public_intro_btn/plus_btn_01.sub",
                    "over_image" : ROOT_PATH + "public_intro_btn/plus_btn_02.sub",
                    "down_image" : ROOT_PATH + "public_intro_btn/plus_btn_03.sub",
                },
                
                {
                    "name" : "start_button",
                    "type" : "button",
                    "x" : SCREEN_WIDTH/2 - 107,
                    "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0,
                    "default_image" : ROOT_PATH + "public_intro_btn/start_btn_01.sub",
                    "over_image" : ROOT_PATH + "public_intro_btn/start_btn_02.sub",
                    "down_image" : ROOT_PATH + "public_intro_btn/start_btn_03.sub",
                },
                {
                    "name" : "delete_button",
                    "type" : "button",
                    "x" : THINBOARD_CIRCLE_LEFT_WIDTH + X_GAP - 58,
                    "y" : Y_GAP,
                    "default_image" : ROOT_PATH + "public_intro_btn/minus_btn_01.sub",
                    "over_image" : ROOT_PATH + "public_intro_btn/minus_btn_02.sub",
                    "down_image" : ROOT_PATH + "public_intro_btn/minus_btn_03.sub",
                },
            ),
        },
        {
            "name" : "start_button",
            "type" : "button",
            "x" : SCREEN_WIDTH/2 - 107,
            "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0,
            "default_image" : ROOT_PATH + "public_intro_btn/start_btn_01.sub",
            "over_image" : ROOT_PATH + "public_intro_btn/start_btn_02.sub",
            "down_image" : ROOT_PATH + "public_intro_btn/start_btn_03.sub",
        },
        {
            "name" : "exit_button",
            "type" : "button",
            "x" : SCREEN_WIDTH/2 + 32,
            "y" : SCREEN_HEIGHT - SCREEN_HEIGHT*(70)/600.0,
            "default_image" : ROOT_PATH + "public_intro_btn/cancel_btn_01.sub",
            "over_image" : ROOT_PATH + "public_intro_btn/cancel_btn_02.sub",
            "down_image" : ROOT_PATH + "public_intro_btn/cancel_btn_03.sub",
        },
        {
            "name" : "character_discriptionboard",
            "type" : "thinboard_gold",
            "x" : SCREEN_WIDTH - BOARD_X - (THINBOARD_CIRCLE_RIGHT_WIDTH + (X_GAP * 2)),
            "y" : BOARD_Y,
            "width" : THINBOARD_CIRCLE_RIGHT_WIDTH + (X_GAP * 2) + 1,
            "height" : THINBOARD_GOLD_HEIGHT,
            "children"    :
            (
                {
                    "name" : "raceName_Btn",
                    "type" : "image",
                    "x" : 10,
                    "y" : -17,
                    "image" : ROOT_PATH + "public_intro_btn/raceName_btn.sub",
                    "children" :
                    (
                        {
                            "name" : "DiscFace",
                            "type" : "image",
                            "x" : DESC_FACE_X,
                            "y" : DESC_FACE_Y,
                            "image" : "icon/face/warrior_m.tga"
                        },
                        {
                            "name" : "raceName_Text",
                            "type" : "text",
                            "x" : 100,
                            "y" : 5,
                            "r" : 0.7843,
                            "g" : 0.7843,
                            "b" : 0.7843,
                            "text" : localeInfo.JOB_WARRIOR, "text_horizontal_align" : "center"
                        }
                    ),
                },
                {
                    "name" : "text_board", "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : Y_GAP,
                    "width" : THINBOARD_CIRCLE_RIGHT_WIDTH,
                    "height" : THINBOARD_CIRCLE_RIGHT_HEIGHT,
                    "children" :
                    (
                        {
                            "name" : "prev_button",
                            "type" : "button",
                            "x" : 122,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/prev_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                        },
                        {
                            "name" : "next_button",
                            "type" : "button",
                            "x" : 122 + 20 + 10,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/next_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",
                        },
                    ),
                },
                {
                    "name" : "hth",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y,
                    "text" : uiScriptLocale.CREATE_HP,
                    "children" :
                    (
                        {
                            "name" : "hth_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "red",
                        },
                        {
                            "name" : "hth_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "hth_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
                {
                    "name" : "int",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y + STAT_GAUGE_GAP,
                    "text" : uiScriptLocale.CREATE_SP,
                    "children" :
                    (
                        {
                            "name" : "int_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "pink",
                        },
                        {
                            "name" : "int_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "int_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
                {
                    "name" : "str",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y + STAT_GAUGE_GAP*2,
                    "text" : uiScriptLocale.CREATE_ATT_GRADE,
                    "children" :
                    (
                        {
                            "name" : "str_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "purple",
                        },
                        {
                            "name" : "str_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "str_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
                {
                    "name" : "dex",
                    "type" : "text",
                    "x" : STAT_GAUGE_X,
                    "y" : STAT_GAUGE_Y + STAT_GAUGE_GAP*3,
                    "text" : uiScriptLocale.CREATE_DEX_GRADE,
                    "children" :
                    (
                        {
                            "name" : "dex_gauge",
                            "type" : "gauge",
                            "x" : STAT_GAUGE_BAR_X,
                            "y" : 4,
                            "width" : STAT_GAUGE_BAR_WIDTH,
                            "color" : "blue",
                        },
                        {
                            "name" : "dex_slot",
                            "type" : "slotbar",
                            "x" : STAT_GAUGE_BAR_WIDTH + STAT_GAUGE_BAR_X + 7,
                            "y" : -1,
                            "width" : STAT_GAUGE_TEXT_WIDTH,
                            "height" : STAT_GAUGE_TEXT_HEIGHT,
                            "children" :
                            (
                                {
                                    "name" : "dex_value",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 1,
                                    "all_align" : "center",
                                    "text" : "0",
                                },
                            ),
                        },
                    ),
                },
            ), 
        },
    ),    
}

What is the responsible thing?
 

 

yes selectcharacterwindow.py

                    "name" : "text_board", "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : Y_GAP,
                    "width" : THINBOARD_CIRCLE_RIGHT_WIDTH,
                    "height" : THINBOARD_CIRCLE_RIGHT_HEIGHT,
                    "children" :
                    (
                        {
                            "name" : "prev_button",
                            "type" : "button",
                            "x" : 122,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/prev_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                        },
                        {
                            "name" : "next_button",
                            "type" : "button",
                            "x" : 122 + 20 + 10,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/next_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",

787292068_Nvtelen.png.6faa7b0bbb3398fd29

Link to comment
Share on other sites

10 hours ago, [007]DawisHU said:

yes selectcharacterwindow.py


                    "name" : "text_board", "type" : "thinboard_circle",
                    "x" : X_GAP,
                    "y" : Y_GAP,
                    "width" : THINBOARD_CIRCLE_RIGHT_WIDTH,
                    "height" : THINBOARD_CIRCLE_RIGHT_HEIGHT,
                    "children" :
                    (
                        {
                            "name" : "prev_button",
                            "type" : "button",
                            "x" : 122,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/prev_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/prev_btn_01.sub",
                        },
                        {
                            "name" : "next_button",
                            "type" : "button",
                            "x" : 122 + 20 + 10,
                            "y" : 250,
                            "default_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",
                            "over_image" : ROOT_PATH + "public_intro_btn/next_btn_02.sub",
                            "down_image" : ROOT_PATH + "public_intro_btn/next_btn_01.sub",

The same problem
:(

Any help please:(
:(:(

Link to comment
Share on other sites

10 hours ago, DarkOne said:

Wrong place to change this... If you look at the path where  [007]DawisHU told you to change it only affects these images.

 https://metin2.download/picture/VsJXoZbKg2eZ1729R99qS0gFO8hq1pXQ/.png

thank you for your reply

Yes correct

What if the solution to the problem or the official file?
 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

Open uitooltip.py and replace AutoAppendNewTextLine with

Spoiler

def AutoAppendNewTextLine(self, text, color=FONT_COLOR):
    textLine = ui.TextLine()
    textLine.SetParent(self)
    textLine.SetFontName(self.defFontName)
    textLine.SetPackedFontColor(color)
    textLine.SetText(text)
    textLine.SetOutline()
    textLine.SetFeather(False)
    textLine.Show()

    self.childrenList.append(textLine)

    (textWidth, textHeight) = textLine.GetTextSize()

    textHeight += 5

    textLine.SetPosition(0 - textWidth / 2, self.toolTipHeight)
    textLine.SetWindowHorizontalAlignCenter()

    self.toolTipWidth = textWidth + 60

    self.toolTipHeight += textHeight
    self.ResizeToolTip()
    self.SetFollow(stat)

    return textLine    

 

  • Love 1
Link to comment
Share on other sites

10 hours ago, Nevisor said:

Open uitooltip.py and replace AutoAppendNewTextLine with

  Hide contents


def AutoAppendNewTextLine(self, text, color=FONT_COLOR):
    textLine = ui.TextLine()
    textLine.SetParent(self)
    textLine.SetFontName(self.defFontName)
    textLine.SetPackedFontColor(color)
    textLine.SetText(text)
    textLine.SetOutline()
    textLine.SetFeather(False)
    textLine.Show()

    self.childrenList.append(textLine)

    (textWidth, textHeight) = textLine.GetTextSize()

    textHeight += 5

    textLine.SetPosition(0 - textWidth / 2, self.toolTipHeight)
    textLine.SetWindowHorizontalAlignCenter()

    self.toolTipWidth = textWidth + 60

    self.toolTipHeight += textHeight
    self.ResizeToolTip()
    self.SetFollow(stat)

    return textLine    

 

Thank you so much
Problem is resolved

  • Love 1
Link to comment
Share on other sites

1 hour ago, DarkOne said:

Wrong place to change this... If you look at the path where  [007]DawisHU told you to change it only affects these images.

 https://metin2.download/picture/VsJXoZbKg2eZ1729R99qS0gFO8hq1pXQ/.png

Hmm i have moded local_hu folder ... images + text line ;)

Edited by Metin2 Dev
Core X - External 2 Internal

787292068_Nvtelen.png.6faa7b0bbb3398fd29

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.