Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: seraphimdreamer777 on Fri 07/08/2009 17:48:26

Title: I'm trying to make a GUI button to open the Iconbar GUI
Post by: seraphimdreamer777 on Fri 07/08/2009 17:48:26
I plan on making a big Icon Bar and wanted to get a small GUI button to open it. But I can't seem to get the button to work. Here is my code so far

function btnIconBar_OnClick(GUIControl *control, MouseButton button)
{
Display(gIconbar);
}


Title: Re: I'm trying to make a GUI button to open the Iconbar GUI
Post by: NsMn on Fri 07/08/2009 17:49:47
Not Display();. You must use:

gIconbar.Visible=true;