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

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


Shang

Question

12 answers to this question

Recommended Posts

  • 0
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

  • 0

 

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.

Link to comment
Share on other sites

  • 0

 

 

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

Link to comment
Share on other sites

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


  • Read our Rules
  • Activity

    1. 0

      Need help with a small function

    2. 0

      How to Delay quest

    3. 0

      After choosing a character, it throws it at the login screen.

    4. 0

      Bonus Board Official like

    5. 0

      [ERROR] unfinished string , ranking quest .

    6. 0

      experience 0

  • Recently Browsing

    • No registered users viewing this page.

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.