Jump to content
  • 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
  • 0

On the other games we need a diff, but with 40k we have the source. So i want modify the source to repair which the items be placed over other items.

Link to comment
  • 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
  • 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

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. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

  • Recently Browsing

    No registered users viewing this page.

×
×
  • 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.