Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dave Gilbert on Sun 20/06/2004 06:13:59

Title: Inventory pics not aligning properly
Post by: Dave Gilbert on Sun 20/06/2004 06:13:59
(http://www.davelgil.com/ags/RON/invissue.gif)

I honestly don't know what's causing this, as I didn't change the default GUI code one iota.Ã,  Any advise is appreciated.
Title: Re: Inventory pics not aligning properly
Post by: strazer on Sun 20/06/2004 06:53:18
According to the manual, inventory item slots are 40x22 big by default. Your item graphics are probably bigger than that, that's why they're overlapping.

Try putting
  SetInvDimensions (40, 40);
in the game_start function. Adjust the size to what works best for you.
Title: Re: Inventory pics not aligning properly
Post by: LordHart on Sun 20/06/2004 13:45:18
Yeah, that was happening to me when I created my custom GUI. AS the items were aligning over to the left more than the center.

Just do what Strazer said and use the SetInvDimensions to set them to the size you want.