Jump to content

Recommended Posts

I tried to put in a Inventory Sidebar, based on a Thread from another Board.

So far i only wanted to make the visiual stuff since i only wanted to see how it looks and add functions, when i like the looks of it.

Problem is i get this Syserr...

Spoiler

spacer.png

This is the inventorywindow.py code (for the Sidebar)...

Spoiler
        ## Inventory_Sidebar								## line:20
        {
            "name" : "board2",
            "type" : "board",
            "style" : ("attach",),

            "x" : 73 - 75,
            "y" : 230,

            "width" : 60,
            "height" : 217,									## line:30

            "children" : 
            {
                #Warpring_ersatz
                {
                    "name" : "warpring",
                    "type" : "button",
                    "x" : 8,
                    "y" : 8,
															## line:40
                    "default_image" : "d:/ymir work/ui/game/buttons/warpring_1.tga",
                    "over_image" : "d:/ymir work/ui/game/buttons/warpring_2.tga",
                    "down_image" : "d:/ymir work/ui/game/buttons/warpring_3.tga",
                },
                #Switchbot
                {
                    "name" : "switchbot",
                    "type" : "button",
                    "x" : 8,
                    "y" : 8+35,																		## line:50

                    "default_image" : "d:/ymir work/ui/game/buttons/switchbot_1.tga",
                    "over_image" : "d:/ymir work/ui/game/buttons/switchbot_2.tga",
                    "down_image" : "d:/ymir work/ui/game/buttons/switchbot_3.tga",
                },
                #Special_Storage
                {
                    "name" : "specialstorage",
                    "type" : "button",
                    "x" : 8,																		## line:60
                    "y" : 8+70,

                    "default_image" : "d:/ymir work/ui/game/buttons/storage_1.tga",
                    "over_image" : "d:/ymir work/ui/game/buttons/storage_2.tga",
                    "down_image" : "d:/ymir work/ui/game/buttons/storage_3.tga",
                },
                #Antiexp
                {
                    "name" : "antiexp",
                    "type" : "button",																## line:70
                    "x" : 8,
                    "y" : 8+105,

                    "default_image" : "d:/ymir work/ui/game/buttons/antiexp_1.tga",
                    "over_image" : "d:/ymir work/ui/game/buttons/antiexp_2.tga",
                    "down_image" : "d:/ymir work/ui/game/buttons/antiexp_3.tga",
                },
                #Dungeon_Interface
                {
                    "name" : "dungeons",															## line:80
                    "type" : "button",
                    "x" : 8,
                    "y" : 8+140,

                    "default_image" : "d:/ymir work/ui/game/buttons/dungeon_1.tga",
                    "over_image" : "d:/ymir work/ui/game/buttons/dungeon_2.tga",
                    "down_image" : "d:/ymir work/ui/game/buttons/dungeon_3.tga",
                },
                #Runen_Interface
                {																					## line:90
                    "name" : "runes",
                    "type" : "button",
                    "x" : 8,
                    "y" : 8+175,

                    "default_image" : "d:/ymir work/ui/game/buttons/runes_1.tga",
                    "over_image" : "d:/ymir work/ui/game/buttons/runes_2.tga",
                    "down_image" : "d:/ymir work/ui/game/buttons/runes_3.tga", 
                },
            },
        },

 

Please tell me if u need further information, hope someone can help.

 

Xovarto

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
Link to comment
https://metin2.dev/topic/28836-inventory-sidebar-syserr/
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.