Inventory Spacing?

Started by pmprog, Tue 19/10/2004 19:30:04

Previous topic - Next topic

pmprog

In my GUI, I have an inventory box 240x22 pixels. My inventory item gfx are 22x22 pixels. However, when I have two items in the inventory, they are spaced 13 pixels apart.

Anyone know how to get them to sit next to each other?

Scummbuddy

Straight from the manual:
--------------------------
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.
-------------------------------------------
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

pmprog

Cool stuff. Didn't see that one!

Thanks!

SMF spam blocked by CleanTalk