Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 22/03/2004 11:33:27

Title: Inventory window spacing...
Post by: on Mon 22/03/2004 11:33:27
I'm working on something that uses comparatively titchy inventory icons (about 16 x 16), but when I use an inventory window in a custom GUI, the inventory items are always spaced really far apart, and aesthetically it's kind of sucky. So, I'm wondering if there's a way to dictate the space between inventory items. Thanks.
Title: Re:Inventory window spacing...
Post by: Radiant on Mon 22/03/2004 11:44:39
Yes.

SetInvDimensions

SetInvDimensions (int width, int height)

Allows you to change the default width and height of the inventory item picture slots used by the Lucasarts-style inventory window. By default, the LEC inv window is made up of 40x22 pixel cells, but if all your inventory item pictures are bigger or smaller than this, you can use this function to adjust them.

Example:

SetInvDimensions(60,30);

if your inventory graphics are 60x30 pixels or smaller.