Big Inventory Problem

Started by , Mon 13/10/2003 08:17:41

Previous topic - Next topic

Jam

My inventory items are cut perfectly to size, but in my inventory GUI, there's a long space between each item. When I click on the space, the item to the left of it will show up as my cursor. How do I make the space smaller?Thanks.

Scummbuddy

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

hope this helps
- 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

Jam

Thanks. I tried putting it under the inventory script but it didnt work. Then I tried it in repeatedly execute, the dimensions worked, but now I can't click on the items at all.  :( Ahh!

Bernie

Try putting it into the game start script. It only needs to be executed once to work. In repeatedly execute it would be set all the time, and that might mess it up.

SMF spam blocked by CleanTalk