Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

InventoryWindow -> exceptions.keyError


Avisek

Question

Hello, I was trying to add inventory from epvp.

But I am getting this error:
 

uiInventory.py(line:147) __LoadWindow
ui.py(line:2704) GetChild

InventoryWindow.LoadWindow.BindObject - exceptions.KeyError:TitleBar

0920 19:58:28940 :: ============================================================================================================
0920 19:58:28940 :: Abort!!!!

It says, that I dont have TitleBar in inventorywindow, but I do.

inventorywindow:

import uiScriptLocale

EQUIPMENT_START_INDEX = 90

window = {
    "name" : "InventoryWindow",


    ## 600 - (width + ?A¸YÂEA¸·Î oÎAÍ ¶ç?i±â 24 px)
    "x" : SCREEN_WIDTH - 372,
    "y" : SCREEN_HEIGHT - 27 - 483,


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


    "width" : 420,
    "height" : 430,


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


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

            "width" : 325,
            "height" : 420,


            "children" :
            (
                ## Title



                ## Equipment Slot
                {
                    "name" : "Equipment_Base",
                    "type" : "image",
					"style" : ("attach",),


                    "x" : -58,
                    "y" : -88,


                    "image" : "locale/inventar.tga",


                    "children" :
                    (


                        {
                            "name" : "EquipmentSlot",
                            "type" : "slot",


                            "x" : 70,
                            "y" : 120,


                            "width" : 400,
                            "height" : 300,


                            "slot" : (
                                        {"index":EQUIPMENT_START_INDEX+0, "x":14, "y":39, "width":32, "height":64},
                                        {"index":EQUIPMENT_START_INDEX+1, "x":14, "y":-7, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+2, "x":265, "y":163, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+3, "x":263, "y":101, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+4, "x":14, "y":113, "width":32, "height":100},
                                        {"index":EQUIPMENT_START_INDEX+5, "x":263, "y":135, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+6, "x":265, "y":69, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+7, "x":72, "y":190, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+8, "x":72, "y":159, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+9, "x":197, "y":159, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+10, "x":265, "y":37, "width":32, "height":32},
                                    ),
                        },
						## Title
                {
					"name" : "TitleBar",
                    "type" : "titlebar2",
                    "style" : ("attach",),


                    "x" : 326,
                    "y" : 82,


                    "width" : -100,
                    "color" : "yellow",


                    "children" :
                    (
                        { "name":"TitleName", "type":"text", "x":154, "y":3, "text" : "", "text_horizontal_align":"center" },
                    ),
                },

                        ## MallButton
                        {
                            "name" : "MallButton",
                            "type" : "button",


                            "x" : 267,
                            "y" : 310,


                            "tooltip_text" : uiScriptLocale.MALL_TITLE,


                            "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
                            "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
                            "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
                        },
						## CostumeButton
						{
							"name" : "CostumeButton",
							"type" : "button",

							"x" : 333,
							"y" : 100,

							"tooltip_text" : uiScriptLocale.COSTUME_TITLE,

							"default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
							"over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
							"down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
						},
                        {
                            "name" : "Equipment_Tab_01",
                            "type" : "radio_button",


                            "x" : 240,
                            "y" : 161,


                            "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
                            "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
                            "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",


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


                                    "x" : 0,
                                    "y" : -200,


                                    "all_align" : "center",


                                    "text" : "I",
                                },
                            ),
                        },
                        {
                            "name" : "Equipment_Tab_02",
                            "type" : "radio_button",


                            "x" : 86 + 32,
                            "y" : 261,


                            "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
                            "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
                            "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",


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


                                    "x" : 0,
                                    "y" : -200,


                                    "all_align" : "center",


                                    "text" : "II",
                                },
                            ),
                        },


                    ),
                },


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


                    "x" : 260,
                    "y" : 33 + 206,


                    "default_image" : "locale/1.tga",
                    "over_image" : "locale/2.tga",
                    "down_image" : "locale/3.tga",
                    "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,


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


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


                            "all_align" : "center",


                            "text" : "",
                        },
                    ),
                },
                {
                    "name" : "Inventory_Tab_02",
                    "type" : "radio_button",


                    "x" : 83 + 200,
                    "y" : 33 + 206,


                    "default_image" : "locale/1v.tga",
                    "over_image" : "locale/2v.tga",
                    "down_image" : "locale/3v.tga",
                    "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,


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


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


                            "all_align" : "center",


                            "text" : "",
                        },
                    ),
                },
                ## Item Slot
                {
                    "name" : "ItemSlot",
                    "type" : "grid_table",
                    
                    "x" : 24,
                    "y" : 264,


                    "start_index" : 0,
                    "x_count" : 9,
                    "y_count" : 5,
                    "x_step" : 32,
                    "y_step" : 32,
                    
                    "image" : "d:/ymir work/ui/public/Slot_Base.sub",
                },
                ## Print
                {
                    "name":"Money_Slot",
                    "type":"button",


                    "x":100,
                    "y":-12,


                    "horizontal_align":"left",
                    "vertical_align":"bottom",


                    "default_image" : "locale/yang.tga",
                    "over_image" : "locale/yang.tga",
                    "down_image" : "locale/yang.tga",


                    "children" :
                    (

                        {
                            "name" : "Money",
                            "type" : "text",


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


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


                            "text" : "123456789",
                        },
                    ),
                },
                {
                    "name":"Mds_Slot",
                    "type":"button",


                    "x":100,
                    "y":-29,


                    "horizontal_align":"left",
                    "vertical_align":"bottom",


                    "default_image" : "locale/yang.tga",
                    "over_image" : "locale/yang.tga",
                    "down_image" : "locale/yang.tga",


                    "children" :
                    (

                        {
                            "name" : "Mds",
                            "type" : "text",


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


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


                            "text" : "123456789 Md's",
                        },
                    ),
                },
            ),
        },
    ),
}

Can you help me, please? :(

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    2. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    3. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    4. 0

      Some mobs dont drop items

    5. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    6. 691

      [Group] Daily Music - Share your favorite!

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.