Need to move mouse before button functions properly [Solved]

Started by arj0n, Sat 01/05/2010 12:46:11

Previous topic - Next topic

arj0n

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);

Calin Leafshade

this is a known bug.

I think CJ might have fixed it in 3.2

arj0n

Ah, that explains.
Thanx for your quick reply Steven.

arj0n

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.

SMF spam blocked by CleanTalk