Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: myname on Tue 06/11/2012 16:41:02

Title: GUI inventory button help (solved)
Post by: myname on Tue 06/11/2012 16:41:02
So, in my inventory window I have 4 buttons: look, interact, select, and exit.  The look button works great but the interact button just selects the object and the select button rarely works.  This is the script I have for the interact button:
{
   mouse.Mode = eModeInteract;
   mouse.UseModeGraphic(eModePointer);
}

I know I am missing something obvious and have looked through the index and tutorial but I'm really at a loss.  Thank you in advance if anyone can help.
Title: Re: GUI inventory button help
Post by: Khris on Tue 06/11/2012 16:50:37
If the game is set to default inventory handling (the option is in General settings), interacting with an item will select it, not trigger the "interact with item" event.
This problem has been solved numerous times already, please use the search function. Just search for "interact with inventory" and something relevant should come up.
Title: Re: GUI inventory button help
Post by: myname on Tue 06/11/2012 19:00:12
Thanks for the help Khris.  I'll choose my search parameters better in the future.  Thread can be closed.