I know this is really simple, but after spending the last hour and a half searching the forums, reading the manual, and trying different things I still can't seem to figure this out.
I am using the Lightweight BASS GUI that comes preinstalled with AGS. I want to turn the GUIS off for my main menu screen. I believe this is generally the way to turn the GUI off:
function room_BeforeFadeIn()
{
gActionText.Visible = false;
gInventoryBar.Visible = false;
}
If I do this, the GUI's still show.
If I go to GUI properties, and set
Visibility to normal, initially off.
Then this will cause the ActionText GUI to be invisible, and then I can turn it on and off using the
gActionText.Visible = true;
.
However, the InventoryBar GUI is still visible. I am thinking that this has something to do with the fact that this GUI appears by hovering the mouse over it. Really sorry if this is something really obvious and simple. :~(
Did you just type all this into the room script? I'm asking because the default name for the "before fadein" event's function is "room_Load".
AGS will not execute this function even it were named "properly" though; the important thing isn't the name but that the name is entered next to the event in the events pane.
If you create the function by clicking the "before fadein" event in the room editor, then the ellipses button, the function is linked and added automatically (just like with any other event; click the lightning bolt icon to see available events, see part 3 of Help File -> Tutorial -> Starting off).
Then use:
function room_Load()
{
gActionText.Visible = false;
// we need this because apparently setting the visibility to false has no effect for PopupY GUIs
gInventoryBar.Transparency = 100;
gInventoryBar.Clickable = false;
}