Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 13/10/2003 08:17:41

Title: Big Inventory Problem
Post by: on Mon 13/10/2003 08:17:41
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.
Title: Re:Big Inventory Problem
Post by: Scummbuddy on Mon 13/10/2003 08:47:28
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
Title: Re:Big Inventory Problem
Post by: on Mon 13/10/2003 23:15:08
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!
Title: Re:Big Inventory Problem
Post by: Bernie on Tue 14/10/2003 10:36:46
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.