Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Thu 11/05/2006 19:47:08

Title: GUI and mouse over position on window[solved]
Post by: Candle on Thu 11/05/2006 19:47:08
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.
Title: Re: GUI and mouse over position on window
Post by: Khris on Thu 11/05/2006 21:06:55
Set the GUI to Normal, then turn it off in game_start().

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;
}
Title: Re: GUI and mouse over position on window
Post by: Candle on Thu 11/05/2006 21:09:49
Thanks . and the gGui would be the name of the gui right.
Thank you , worked great.