Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Calin Leafshade on Thu 26/11/2009 19:27:50

Title: Possible Minor Bug
Post by: Calin Leafshade on Thu 26/11/2009 19:27:50
Guis seem to stay non clickable after being made visible until the mouse is moved.

So you have gActions which has a button "End Turn".
You press end turn and the gui is made invisible and the turns moves are carried out.
After the turn has finished the gui is made visible again.
If you then try to click a button on the gui WITHOUT moving the mouse (i.e the same button you just clicked, in this case "End Turn") the mouse click is ignored.
If you move the mouse and then click again the button becomes responsive again.

I can upload my game if you need to see it reproduced.. its only small since ive only really just started it.
Title: Re: Possible Minor Bug
Post by: Pumaman on Sun 29/11/2009 18:29:59
Interesting, I'll see if I can reproduce this.
Title: Re: Possible Minor Bug
Post by: skuttleman on Sun 29/11/2009 21:07:18
I've run into this problem as long ago as 2.71. I just got around it by adding a line of code that moved the mouse one pixel before returning control to the user and as I recall it did the trick.
Title: Re: Possible Minor Bug
Post by: Calin Leafshade on Mon 30/11/2009 00:07:17
yeah thats how i fixed it.. but i thought id flag it up as a bug anyway.