Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: arj0n on Sat 01/05/2010 12:46:11

Title: Need to move mouse before button functions properly [Solved]
Post by: arj0n on Sat 01/05/2010 12:46:11
When clicking on button12 in gGuiListC02, gGuiListC02 gets invisible and gGuiListC03 gets visible.
But when gGuiListC03 is shown and I click on the button that will set gGuiListC03 invisible and gGuiListC04 visible [let say button13] that button has no function.
When I first move the mouse a tiny bit and then click button13, the button does function.
Both buttons are at exact the same spot.

Can someone explain to me why this occurs??


code:
function Button12_OnClick(GUIControl *control, MouseButton button)
{
mouse.Visible = true;
mouse.UseModeGraphic (eModePointer);
gPanel.Visible = false ;
gGuiListC02.Visible = false;
FadeOut(10);
Wait(10);
gGuiListC03.Visible = true;
FadeIn(20);
Title: Re: need to move mouse before button functions properly.
Post by: Calin Leafshade on Sat 01/05/2010 12:59:36
this is a known bug.

I think CJ might have fixed it in 3.2
Title: Re: Need to move mouse before button functions properly [Solved-Sort of...]
Post by: arj0n on Sat 01/05/2010 14:43:26
Ah, that explains.
Thanx for your quick reply Steven.
Title: Need to move mouse before button functions properly [Solved]
Post by: arj0n on Sun 02/05/2010 11:35:28
What should be the best and most easy workaround for this for now?

EDIT:
I checked AGS v3.2.0 Final 3, it still contains this bug...
EDIT2: AGS v3.2.0 Final 4: "Wait() before setting the Visible=true" problem is fixed.