GUI and mouse over position on window[solved]

Started by Candle, Thu 11/05/2006 19:47:08

Previous topic - Next topic

Candle

I'm using the standard gui but I changed it so it just uses 75x75 area for the gui in the left top corner but when you move you mouse to anywhere on the top the gui drops down.
I looked but didn't see were to change the mouse over postion.
How do you make it so you have to move to the top left corner for it to drop down.

Khris

#1
Set the GUI to Normal, then turn it off in game_start().

Code: ags
function repeatedly_execute() {
Ã,  int x=mouse.x;
Ã,  int y=mouse.y;
Ã,  if (gGui.Visible==false && x<75 && y<10) gGui.Visible=true;
Ã,  else if (gGui.Visible==true && (x>74 || y>74)) gGui.Visible=false;
}

Candle

#2
Thanks . and the gGui would be the name of the gui right.
Thank you , worked great.

SMF spam blocked by CleanTalk