GUI Mouse Over.

Started by Sewer Agent, Tue 15/02/2005 09:20:04

Previous topic - Next topic

Sewer Agent

I have just made a GUI that is meant to pop up at the bottom of the screen when I move my mouse over it (YPos=185.) but it is always turned on and when I move my mouse down it disappears!? If I could have some help on this I would be very grateful.

Thanks.

Radiant

In your repeatedly_execute, put something like this:

if (mouse.y > 185) GUIOn (your_gui_here);
else GUIOff (your_gui_here);

Sewer Agent

#2
I've tried that but it still does the same thing?!

Scorpiorus

Can you then post the whole repeatedly_execute function here?

TerranRich

Erm, I don't believe Popup GUIs can be brought up by moving the mouse BELOW a certain Y-coordinate. It's only meant for moving the mouse ABOVE a certain Y-coordinate, hence its permanent appearance. This is also why when you bring your mouse DOWN below that coordinate, it disappears. It's the way it works. Instead, make the GUI Popup modal (with no Y-pos set) and use only Radiant's code.
Status: Trying to come up with some ideas...

Sewer Agent

Thanks terran.

P.S
I didn't know you were a WWE fan. Batista kicks arse!

SMF spam blocked by CleanTalk