Jump to content

help with inventory


Recommended Posts

  • Replies 11
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Just now, Retro said:

uiscript costumewindow.py , post it there if you don't know how to do it .

import uiScriptLocale
import item

COSTUME_START_INDEX = item.COSTUME_SLOT_START

window = {
    "name" : "CostumeWindow",
    "x" : SCREEN_WIDTH - 175 - 140,
    "y" : SCREEN_HEIGHT - 37 - 565,
    "style" : ("movable", "float",),
    "width" : 140,
    "height" : 180 + 47,
    "children" :
    (
        {
            "name" : "board",
            "type" : "board",
            "style" : ("attach",),
            "x" : 0,
            "y" : 0,
            "width" : 140,
            "height" : 180 + 47,
            "children" :
            (
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),
                    "x" : 6,
                    "y" : 6,
                    "width" : 130,
                    "color" : "yellow",
                    "children" :
                    (
                        { "name":"TitleName", "type":"text", "x":60, "y":3, "text":uiScriptLocale.COSTUME_WINDOW_TITLE, "text_horizontal_align":"center"},
                    ),
                },
                
                {
                    "name" : "Costume_Base",
                    "type" : "image",
                    "x" : 13,
                    "y" : 38,
                    "image" : "locale/ae/ui/costume/new_costume_bg.jpg",
                    "children" :
                    (
                        {
                            "name" : "CostumeSlot",
                            "type" : "slot",
                            "x" : 3,
                            "y" : 3,
                            "width" : 127,
                            "height" : 145,
                            "slot" : (
                                        {"index":COSTUME_START_INDEX+0, "x":61, "y":45, "width":32, "height":64},
                                        {"index":COSTUME_START_INDEX+1, "x":61, "y": 8, "width":32, "height":32},
                                        {"index":COSTUME_START_INDEX+2, "x":61, "y":125, "width":32, "height":32},
                                        {"index":COSTUME_START_INDEX+3, "x":10, "y":125, "width":32, "height":32},
                                        {"index":COSTUME_START_INDEX+4, "x":10, "y":5, "width":32, "height":96},
                            ),
                        },
                    ),
                },
            ),
        },
    ),
}

 

Link to comment
Share on other sites

If i remember well i had this problem too , if you use martysama's source the problem could be from protoreader or length.h

check if it is like there 

enum EWearPositions
{
    WEAR_BODY,        // 0
    WEAR_HEAD,        // 1
    WEAR_FOOTS,        // 2
    WEAR_WRIST,        // 3
    WEAR_WEAPON,    // 4
    WEAR_NECK,        // 5
    WEAR_EAR,        // 6
    WEAR_UNIQUE1,    // 7
    WEAR_UNIQUE2,    // 8
    WEAR_ARROW,        // 9
    WEAR_SHIELD,    // 10
    WEAR_ABILITY1,  // 11
    WEAR_ABILITY2,  // 12
    WEAR_ABILITY3,  // 13
    WEAR_ABILITY4,  // 14
    WEAR_ABILITY5,  // 15
    WEAR_ABILITY6,  // 16
    WEAR_ABILITY7,  // 17
    WEAR_ABILITY8,  // 18
    WEAR_RING1,            //    : 신규 반지슬롯1 (왼쪽)
    WEAR_RING2,            //    : 신규 반지슬롯2 (오른쪽)

    WEAR_BELT,            //    : 신규 벨트슬롯

    WEAR_MAX = 32    //
};

And in protoreader.cpp from db it should be in that order.

Link to comment
Share on other sites

yes i use this source

enum EWearPositions
{
    WEAR_BODY,        // 0
    WEAR_HEAD,        // 1
    WEAR_FOOTS,        // 2
    WEAR_WRIST,        // 3
    WEAR_WEAPON,    // 4
    WEAR_NECK,        // 5
    WEAR_EAR,        // 6
    WEAR_UNIQUE1,    // 7
    WEAR_UNIQUE2,    // 8
    WEAR_ARROW,        // 9
    WEAR_SHIELD,    // 10
    WEAR_ABILITY1,  // 11
    WEAR_ABILITY2,  // 12
    WEAR_ABILITY3,  // 13
    WEAR_ABILITY4,  // 14
    WEAR_ABILITY5,  // 15
    WEAR_ABILITY6,  // 16
    WEAR_ABILITY7,  // 17
    WEAR_ABILITY8,  // 18
    WEAR_COSTUME_BODY,    // 19
    WEAR_COSTUME_HAIR,    // 20

#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
    WEAR_COSTUME_MOUNT, //21
#endif

#ifdef ENABLE_ACCE_COSTUME_SYSTEM
    WEAR_COSTUME_ACCE, //22
#endif

#ifdef __WEAPON_COSTUME_SYSTEM__
    WEAR_COSTUME_WEAPON, //23
#endif
#ifdef __EFFECT_SYSTEM__
    WEAR_EFFECT_ARMOR, //24
    WEAR_EFFECT_WEAPON, //25
#endif
    WEAR_RING1,        //c_Equipment_Ring1 =0 =26
    WEAR_RING2,        //c_Equipment_Ring2 =1 =27

    WEAR_BELT,        //c_Equipment_Belt =2 =28
    
    WEAR_MAX = 32    //

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.