Jump to content

Dragon Soul error


Recommended Posts

  • 4 months later...
  • 10 months later...
  • 9 months later...

Hello,
100% WORK AND TESTED
locale_de/locale/de/ui/dragonsoulrefinewindow.py
 

Spoiler

import locale
import uiScriptLocale

window = {
    "name" : "DragonSoulRefineWindow",

    ## żëČĄĽ® ⠹ٷΠżŢÂĘ
    "x" : SCREEN_WIDTH - 176 - 287 - 10 - 287,
    "y" : SCREEN_HEIGHT - 37 - 505,

    "style" : ("movable", "float",),

    "width" : 287,
    "height" : 232,

    "children" :
    (
        {
            "name" : "board",
            "type" : "board",
            "style" : ("attach",),

            "x" : 0,
            "y" : 0,

            "width" : 287,
            "height" : 232,

            "children" :
            (
                ## Base BackGroud Image
                {
                    "name" : "DragonSoulRefineWindowBaseImage",
                    "type" : "expanded_image",
                    "x" : 0,
                    "y" : 0,

                    "image" : "d:/ymir work/ui/dragonsoul/dragon_soul_refine_bg.tga",
                },

                ## Title
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),

                    "x" : 5,
                    "y" : 7,

                    "width" : 275,
                    "color" : "yellow",

                    "children" :
                    (
                        {
                            "name":"TitleName",
                            "type":"text",
                            "x":140,
                            "y":5,
                            "text":uiScriptLocale.DRAGONSOUL_REFINE_WINDOW_TITLE,
                            "text_horizontal_align":"center"
                        },
                    ),
                },
                
                ## Refine Slot
                {
                    "name" : "RefineSlot",
                    "type" : "grid_table",

                    "image" : "d:/ymir work/ui/dragonsoul/cap.tga",

                    "x" : 15,
                    "y" : 39,

                    "start_index" : 0,
                    "x_count" : 5,
                    "y_count" : 3,
                    "x_step" : 32,
                    "y_step" : 32,
                },

                ## Result Slot
                {
                    "name" : "ResultSlot",
                    "type" : "grid_table",

                    "x" : 207,
                    "y" : 39,

                    "start_index" : 0,
                    "x_count" : 2,
                    "y_count" : 3,
                    "x_step" : 32,
                    "y_step" : 32,
                },
                
                ## Grade Button
                {
                    "name" : "GradeButton",
                    "type" : "toggle_button",

                    "x" : 36,
                    "y" : 148,

                    "default_image" : "d:/ymir work/ui/dragonsoul/button_01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/button_02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/button_03.tga",

                    "children" :
                    (
                        {
                            "name" : "GradeSlotTitle",
                            "type" : "text",
                            "x" : 0,
                            "y" : 0,
                            "all_align" : "center",
                            "text" : uiScriptLocale.GRADE_SELECT,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },

                ## Step Button
                {
                    "name" : "StepButton",
                    "type" : "toggle_button",

                    "x" : 118,
                    "y" : 148,

                    "default_image" : "d:/ymir work/ui/dragonsoul/button_01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/button_02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/button_03.tga",

                    "children" :
                    (
                        {
                            "name" : "StepSlotTitle",
                            "type" : "text",
                            "x" : 0,
                            "y" : 0,
                            "all_align" : "center",
                            "text" : uiScriptLocale.STEP_SELECT,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },

                ## Refine Button
                {
                    "name" : "StrengthButton",
                    "type" : "toggle_button",

                    "x" : 198,
                    "y" : 148,

                    "default_image" : "d:/ymir work/ui/dragonsoul/button_01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/button_02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/button_03.tga",

                    "children" :
                    (
                        {
                            "name" : "RefineSlotTitle",
                            "type" : "text",
                            "x" : 0,
                            "y" : 0,
                            "all_align" : "center",
                            "text" : uiScriptLocale.STRENGTH_SELECT,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },

                ## Money Print
                {
                    "name":"Money_Slot",
                    "type" : "text",

                    "x":35,
                    "y":180,

                    "horizontal_align" : "right",
                    "text_horizontal_align" : "right",

                    "text" : "123456789",
                },

                ## Do Refine Button
                {
                    "name" : "DoRefineButton",
                    "type" : "button",

                    "x" : 188,
                    "y" : 200,

                    "default_image" : "d:/ymir work/ui/dragonsoul/l_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/l_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/l_button03.tga",

                    "children" :
                    (
                        {
                            "name" : "DoRefineButtonTitle",
                            "type" : "text",
                            "x" : 0,
                            "y" : 0,
                            "text" : uiScriptLocale.DO_REFINE,
                            "all_align" : "center",
                        },
                    ),
                },
            ),
        },
    ),
}

 

locale_de/locale/de/ui/Dragonsoulwindow.py
 

Spoiler

import uiScriptLocale
import player

window = {
    "name" : "InventoryWindow",

    ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
    "x" : SCREEN_WIDTH - 176 - 287 - 10,
    "y" : SCREEN_HEIGHT - 37 - 505,

    "style" : ("movable", "float",),

    "width" : 287,
    "height" : 505,

    "children" :
    (
        {
            "name" : "board",
            "type" : "board",
            "style" : ("attach",),

            "x" : 0,
            "y" : 0,

            "width" : 287,
            "height" : 505,

            "children" :
            (
                ## Equipment Slot
                {
                    "name" : "Equipment_Base",
                    "type" : "expanded_image",

                    "x" : 0,
                    "y" : 0,

                    "image" : "d:/ymir work/ui/dragonsoul/dragon_soul_bg.tga",

                },
                {
                    "name" : "Inventory_Tab_01",
                    "type" : "radio_button",

                    "x" : 16,
                    "y" : 332,

                    "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",

                    "children" :
                    (
                        {
                            "name" : "Inventory_Tab_01_Print",
                            "type" : "text",

                            "x" : 0,
                            "y" : 0,

                            "all_align" : "center",

                            "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_1,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },
                {
                    "name" : "Inventory_Tab_02",
                    "type" : "radio_button",

                    "x" : 67,
                    "y" : 332,

                    "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",

                    "children" :
                    (
                        {
                            "name" : "Inventory_Tab_02_Print",
                            "type" : "text",

                            "x" : 0,
                            "y" : 0,

                            "all_align" : "center",

                            "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_2,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },
                {
                    "name" : "Inventory_Tab_03",
                    "type" : "radio_button",

                    "x" : 118,
                    "y" : 332,

                    "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",

                    "children" :
                    (
                        {
                            "name" : "Inventory_Tab_03_Print",
                            "type" : "text",

                            "x" : 0,
                            "y" : 0,

                            "all_align" : "center",

                            "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_3,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },
                {
                    "name" : "Inventory_Tab_04",
                    "type" : "radio_button",

                    "x" : 169,
                    "y" : 332,

                    "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",

                    "children" :
                    (
                        {
                            "name" : "Inventory_Tab_04_Print",
                            "type" : "text",

                            "x" : 0,
                            "y" : 0,

                            "all_align" : "center",

                            "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_4,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },
                {
                    "name" : "Inventory_Tab_05",
                    "type" : "radio_button",

                    "x" : 220,
                    "y" : 332,

                    "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",

                    "children" :
                    (
                        {
                            "name" : "Inventory_Tab_05_Print",
                            "type" : "text",

                            "x" : 0,
                            "y" : 0,

                            "all_align" : "center",

                            "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_5,
                            "color" : 0xFFF1E6C0,
                        },
                    ),
                },
                
                ## Item Slot
                {
                    "name" : "ItemSlot",
                    "type" : "grid_table",

                    "x" : 15,
                    "y" : 355,

                    "start_index" : 0,
                    "x_count" : 8,
                    "y_count" : 4,
                    "x_step" : 32,
                    "y_step" : 32,

                    #"image" : "d:/ymir work/ui/public/Slot_Base.sub"
                },
                {
                    "name" : "EquipmentSlot",
                    "type" : "slot",

                    "x" : 0,
                    "y" : 0,

                    "width" : 287,
                    "height" : 280,

                    "slot" : (
                                {"index":player.DRAGON_SOUL_EQUIPMENT_SLOT_START+0, "x":128, "y":53, "width":32, "height":32},
                                {"index":player.DRAGON_SOUL_EQUIPMENT_SLOT_START+1, "x":59, "y":93, "width":32, "height":32},
                                {"index":player.DRAGON_SOUL_EQUIPMENT_SLOT_START+2, "x":59, "y":179, "width":32, "height":32},
                                {"index":player.DRAGON_SOUL_EQUIPMENT_SLOT_START+3, "x":128, "y":219, "width":32, "height":32},
                                {"index":player.DRAGON_SOUL_EQUIPMENT_SLOT_START+4, "x":194, "y":179, "width":32, "height":32},
                                {"index":player.DRAGON_SOUL_EQUIPMENT_SLOT_START+5, "x":194, "y":93, "width":32, "height":32},
                            ),
                },
                {
                    "name" : "deck1",
                    "type" : "toggle_button",

                    "x" : 21,
                    "y" : 230,

                    "default_image" : "d:/ymir work/ui/dragonsoul/deck1_1.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/deck1_2.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/deck1_3.tga",
                },
                {
                    "name" : "deck2",
                    "type" : "toggle_button",

                    "x" : 234,
                    "y" : 230,

                    "default_image" : "d:/ymir work/ui/dragonsoul/deck2_1.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/deck2_2.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/deck2_3.tga",
                },
                ## Title
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),

                    "x" : 8,
                    "y" : 7,

                    "width" : 271,
                    "color" : "yellow",

                    "children" :
                    (
                        { "name":"TitleName", "type":"text", "x":130, "y":3, "text":uiScriptLocale.DRAGONSOUL_TITLE, "text_horizontal_align":"center" },
                    ),
                },
                ## Tab Area
                {
                    "name" : "TabControl",
                    "type" : "window",

                    "x" : 10,
                    "y" : 279,

                    "width" : 267,
                    "height" : 30,

                    "children" :
                    (
                        ## Tab
                        {
                            "name" : "Tab_01",
                            "type" : "expanded_image",

                            "x" : 0,
                            "y" : 0,

                            "width" : 267,
                            "height" : 30,

                            "image" : "d:/ymir work/ui/dragonsoul/tap01.tga",
                        },
                        {
                            "name" : "Tab_02",
                            "type" : "expanded_image",

                            "x" : 0,
                            "y" : 0,

                            "width" : 267,
                            "height" : 30,

                            "image" : "d:/ymir work/ui/dragonsoul/tap02.tga",
                        },
                        {
                            "name" : "Tab_03",
                            "type" : "expanded_image",

                            "x" : 0,
                            "y" : 0,

                            "width" : 267,
                            "height" : 30,

                            "image" : "d:/ymir work/ui/dragonsoul/tap03.tga",
                        },
                        {
                            "name" : "Tab_04",
                            "type" : "expanded_image",

                            "x" : 0,
                            "y" : 0,

                            "width" : 267,
                            "height" : 30,

                            "image" : "d:/ymir work/ui/dragonsoul/tap04.tga",
                        },
                        {
                            "name" : "Tab_05",
                            "type" : "expanded_image",

                            "x" : 0,
                            "y" : 0,

                            "width" : 267,
                            "height" : 30,

                            "image" : "d:/ymir work/ui/dragonsoul/tap05.tga",
                        },
                        {
                            "name" : "Tab_06",
                            "type" : "expanded_image",

                            "x" : 0,
                            "y" : 0,

                            "width" : 267,
                            "height" : 30,

                            "image" : "d:/ymir work/ui/dragonsoul/tap06.tga",
                        },
                        ## RadioButton
                        {
                            "name" : "Tab_Button_01",
                            "type" : "radio_button",

                            "x" : 2,
                            "y" : 2,

                            "width" : 36,
                            "height" : 27,
                        },
                        {
                            "name" : "Tab_Button_02",
                            "type" : "radio_button",

                            "x" : 42,
                            "y" : 2,

                            "width" : 36,
                            "height" : 27,
                        },
                        {
                            "name" : "Tab_Button_03",
                            "type" : "radio_button",

                            "x" : 82,
                            "y" : 2,

                            "width" : 36,
                            "height" : 27,
                        },
                        {
                            "name" : "Tab_Button_04",
                            "type" : "radio_button",

                            "x" : 122,
                            "y" : 2,

                            "width" : 36,
                            "height" : 27,
                        },
                        {
                            "name" : "Tab_Button_05",
                            "type" : "radio_button",

                            "x" : 162,
                            "y" : 2,

                            "width" : 36,
                            "height" : 27,
                        },
                        {
                            "name" : "Tab_Button_06",
                            "type" : "radio_button",

                            "x" : 202,
                            "y" : 2,

                            "width" : 36,
                            "height" : 27,
                        },
                    ),
                },
                {
                    "name" : "tab_text_area",
                    "type" : "text",

                    "x" : 18,
                    "y" : 315,

                    "text" : uiScriptLocale.DRAGONSOUL_TAP_TITLE_1,
                    "color" : 0xFFC0C0C0,
                },
                {                    
                    "name" : "activate",
                    "type" : "toggle_button",

                    "x" : 217,
                    "y" : 492,

                    "text" : uiScriptLocale.DRAGONSOUL_ACTIVATE,

                    "default_image" : "d:/ymir work/ui/dragonsoul/m_button01.tga",
                    "over_image" : "d:/ymir work/ui/dragonsoul/m_button02.tga",
                    "down_image" : "d:/ymir work/ui/dragonsoul/m_button03.tga",
                },
            ),
        },
    ),
}

 

Helped in fix open

Spoiler

+ ;)


Best Regards,
Dawis

  • Metin2 Dev 1

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.