Jump to content

How i change normal inventory to horizontal inventory? (game source)


Recommended Posts

the number of slot inventory is managed in the game.
my the rest is handled in python :)
 
looks in 
inventorywindow.py
 
it's like the official
                ## Item Slot
                {
                    "name" : "ItemSlot",
                    "type" : "grid_table",

                    "x" : 8,
                    "y" : 246,

                    "start_index" : 0,
                    "x_count" : 5,
                    "y_count" : 9,
                    "x_step" : 32,
                    "y_step" : 32,

                    "image" : "d:/ymir work/ui/public/Slot_Base.sub"
                },
it is in the horizontal
                ## Item Slot
                {
                    "name" : "ItemSlot",
                    "type" : "grid_table",

                    "x" : 8,
                    "y" : 246,

                    "start_index" : 0,
                    "x_count" : 9,
                    "y_count" : 5,
                    "x_step" : 32,
                    "y_step" : 32,

                    "image" : "d:/ymir work/ui/public/Slot_Base.sub"
                },
 

:)

  • Love 1
Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...
  • 2 weeks later...

 

UserInterface/GameType.h

 

29e567b9a8.png

 

Change 5*9 for 9*5

 

#Solved, close please.

HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA yes.... And just like creating bugs

 

9*5 != 5*9?  :blink:

That change dont gonna create bugs, it gonna dont change anything.

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

  • 2 weeks later...

 

 

UserInterface/GameType.h

 

29e567b9a8.png

 

Change 5*9 for 9*5

 

#Solved, close please.

HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA yes.... And just like creating bugs

 

9*5 != 5*9?  :blink:

That change dont gonna create bugs, it gonna dont change anything.

 

 

I never laught like now :D

 

You have to change in char_item.cpp for example the lines

int p = wCell + (i * 5)

BYTE p = bCell + (5 * j);

the 5 is the count of x lines.

 

for the count in y line you have to change in exchange.cpp

static CGrid s_grid1(xcount, ycount);

 

Mfg,

Yoshix3

Edited by Metin2 Dev
Core X - External 2 Internal
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.