Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 26/11/2003 03:46:56

Title: Inventory Item Size
Post by: on Wed 26/11/2003 03:46:56
How is the size of the items in the inventory determined and how do I change it? Specifically, the width of the items, the items are very spread out compared to the actual size of the graphics....

Sorry if I missed this somewhere, but I went through the manual, the beginner's thread, and did a search, so I hope I didn't miss it.
Title: Re:Inventory Item Size
Post by: Timosity on Wed 26/11/2003 04:25:09
You can set the width and height of inventory items space in the inventory using:

SetInvDimensions (int width, int height)

eg.

SetInvDimensions(30,40);

just play around with the numbers to suit your needs.

and put it in the global script after this:
function game_start() {
 // called when the game starts, before the first room is loaded

It can be found in 'Inventory functions' in the help file that comes with AGS

I think that's what your after, hope it helps,

~Tim
Title: Re:Inventory Item Size
Post by: on Wed 26/11/2003 20:44:55
Oops...

Anyway, I have another question. Is there a way to change the color of the crosshairs drawn on an inventory cursur by script? I have my cursurs change color when over hotspots and I want to do the same thing with my inventory cursurs.
Title: Re:Inventory Item Size
Post by: Scorpiorus on Wed 26/11/2003 23:23:21
QuoteIs there a way to change the color of the crosshairs drawn on an inventory cursur by script?
AFAIK, there is no way currently :P