Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Alynn on Wed 26/07/2006 08:24:34

Title: SUGGESTION: OnMouseover(GUIControl *control)
Post by: Alynn on Wed 26/07/2006 08:24:34
Would it be possible to add mouseover functionality to GUI controls (or even the GUI's themselves).

The reason I ask is I had an idea for multiple GUI's in a tabbed form partially off the screen, I would like for the GUI to move positions once a tab is moused over, however since there is no OnMouseover functionality for controls I have to have them set for click.

If nobody else thinks it's a good idea, then it's no big deal, but it seems to me that it would be useful in multiple ways for multiple people.

Thanks.
Title: Re: SUGGESTION: OnMouseover(GUIControl *control)
Post by: SSH on Wed 26/07/2006 08:32:28

function repeatedly_execute_always() {
  GUIControl *gc=GUIControl.GetAtScreenXY(mouse.x, mouse.y);
  if (gc!=null) {
    if (gc==someGUIbuttontabthing) {
      //Move the GUI
    }
  }
}

Title: Re: SUGGESTION: OnMouseover(GUIControl *control)
Post by: Alynn on Wed 26/07/2006 10:02:30
Bah SSH, I wanted to make Chris work, he spent all that time in Brittens not doing anything but goofing around. So it's work time!
Title: Re: SUGGESTION: OnMouseover(GUIControl *control)
Post by: SSH on Wed 26/07/2006 10:18:41
There's now very little that can't be done in AGS one way or another, which is why I've stopped making so many suggestions to CJ... better alpha handling is the only one I can think of still needed and the rest are just ease-of-use tweaks.
Title: Re: SUGGESTION: OnMouseover(GUIControl *control)
Post by: Gilbert on Wed 26/07/2006 10:56:50
Also, there're still bunch of the potentially more important requested features listed in the tracker and the to-do list (HEY! CJ removed todolist.txt from teh package since V2.7, he probably wanted people to forget about it. Sneaky! :=) which are not impremented yet, if some work is to be done, surely some of them may come first.
Title: Re: SUGGESTION: OnMouseover(GUIControl *control)
Post by: Alynn on Wed 26/07/2006 11:36:35
Believe me I understand, I'd still like to see perfect click detection for buttons and GUI's with transparent parts of the background, and more AA support for text on GUI's, and AA for dynamic sprites...

But I was lazy and this occured to me so I posted it :P