Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: glurex on Sat 17/09/2022 21:17:43

Title: Place of items Inventory Window
Post by: glurex on Sat 17/09/2022 21:17:43
Hi everyone!

I have a little question about inventory items/window. Normally inventory isn't a problem, but this time I want to organize items on my inventory this way:

(https://i.ibb.co/MV5XL6b/Inv-Diagrama.png) (https://imgbb.com/)

Where the "I's" are the inventory items. The problem is I don't know how to place the items in the inventory in their correspondent "space". I mean I know how to change item height and item width but that doesn't work beause the space is not always the same. For example between item 1 and item 2 there is not the same space than between item 2 and item 3. I try to "artificially" put a transparent space in the sprite image of the item but that doesn't work either because I don't know the order the player will to pick up the objects.

Is there any way to solve this problem? Maybe "segmenting" the inventory window into multiple windows of the same inventory? Or maybe I have to change this GUI and make a more convenient one?
Title: Re: Place of items Inventory Window
Post by: Khris on Sat 17/09/2022 21:55:29
You cannot do this with AGS's native InventoryWindow because it only supports a regular grid.
To implement this you need to create a completely custom inventory system (the easiest way is to use GUI buttons, but "easiest" is relative here).
Title: Re: Place of items Inventory Window
Post by: glurex on Sun 18/09/2022 23:00:16
I was afraid of that :-D Time to work a little I guess. I think I can figure out how to do it with GUI buttons.

Many thanks, Khris!