Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: poc301 on Wed 03/11/2004 16:24:59

Title: Strange inventory issue on GUI bar...
Post by: poc301 on Wed 03/11/2004 16:24:59
I am using the standard GUI bar for interaction.  I have a custom inventory set up using a hi-res background and buttons.  I have it set so that the (INV) tag is on the inventory button, so it displays the currently selected inventory item in the taskbar.  However, no matter what item I select, TWO of them show up in that bar.  I don't understand why...  I've checked the code and it seems to be okay.  The images are usually distorted a little, but there are always 2 of them.

Ideas or suggestions welcome. 

Thanks,
Title: Re: Strange inventory issue on GUI bar...
Post by: Scummbuddy on Wed 03/11/2004 16:29:00
Does this help?

---------------
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);

----------------