Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Wed 31/08/2011 11:00:03

Title: SOLVED: GUI button not active
Post by: barefoot on Wed 31/08/2011 11:00:03
Hi

Help search still down.

I have a gui (gPanel customised) with a button on scripted as gPanel.Visible=false; but the button is not active... it is set to Run Script.


function CloseInfo_OnClick(GUIControl *control, MouseButton button)
{
gPanel.Visible=false;
}


any ideas why?

cheers

barefoot
Title: Re: GUI button not active
Post by: Matti on Wed 31/08/2011 12:12:19
I assume "the button is not active" means that gPanel remains visible. Are you sure you're not setting it to visible somewhere else?
Title: Re: GUI button not active
Post by: barefoot on Wed 31/08/2011 13:52:19
Hi Matti

Well, I checked everything in Global and it seemed ok though I suspected an error somewhere but then I decided to Import new gPanel and set the interface and button up again and surprise surprise it worked.. Odd.. anyhow, ok now.

cheers

:=

barefoot