Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Darth Mandarb on Thu 22/04/2004 18:23:32

Title: Suggestion: GUI button interactions
Post by: Darth Mandarb on Thu 22/04/2004 18:23:32
The Suggestion:
Instead of a 'Mouseover image' option (for GUI buttons), it would be nice to have a 'Mouseover effect' so you could also run a script without having to click.

Something like this:
(http://www.twin-design.com/ags/graphics/suggestion_gui.gif)

I have an 'information' graphic in my GUI which I want to change when you mouseOver individual GUI buttons.  I can't seem to find a way to make this work.  This suggestion would do the trick!

If anybody has any ideas on how to do this now I would greatly appreciate it!  I'm kind of stuck ;)

Thanks!
Title: Re:Suggestion: GUI button interactions
Post by: SSH on Thu 22/04/2004 18:37:20
in your rep_ex...

if (GetGUIAt(mouse.x, mouse.y)==DARTHSGUI) {
 button = GetGUIObjectAt(mouse.x, mouse.y);
 set_info_graphic(button);
}



Title: Re:Suggestion: GUI button interactions
Post by: Darth Mandarb on Thu 22/04/2004 21:58:17
Thanks SSH!

I was thinking it would be something in the repeatedly_execute area.  Just wasn't sure of how exactly ...

I'll give it a go.