Inventory window spacing...

Started by Flim, Mon 22/03/2004 11:33:27

Previous topic - Next topic

Flim

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.

Radiant

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.

SMF spam blocked by CleanTalk