SUGGESTION: OnMouseover(GUIControl *control)

Started by Alynn, Wed 26/07/2006 08:24:34

Previous topic - Next topic

Alynn

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.

SSH

Code: ags

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

12

Alynn

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!

SSH

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.
12

Gilbert

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.

Alynn

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

SMF spam blocked by CleanTalk