Hey there, AGS folks
I'm trying to figure out how to control multiple list boxes by turning them on and off via their ID. I've been experimenting with them for a while and looked through the manual, but I must admit I'm still a bit at a loss when it comes to GUI controls in AGS. I'm simply trying to do something as provided below:
i've looked at GUIControl.Visible
bool GUIControl.VisibleGets/sets whether the GUI control is visible. This is true by default, but you can set it to false in order to temporarily remove the GUI control from the GUI.
While the control is invisible, it will not be drawn on the screen, and will not register clicks or otherwise respond to any user input.
Applies To
Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.
Example:
btnSaveGame.Visible = false;will make the btnSaveGame button invisible.
See also: GUIControl.Enabled
But this only controls it by it's name not it's ID, arrhh it's one of those days.
Cheers in advance.
I'm trying to figure out how to control multiple list boxes by turning them on and off via their ID. I've been experimenting with them for a while and looked through the manual, but I must admit I'm still a bit at a loss when it comes to GUI controls in AGS. I'm simply trying to do something as provided below:
i've looked at GUIControl.Visible
bool GUIControl.VisibleGets/sets whether the GUI control is visible. This is true by default, but you can set it to false in order to temporarily remove the GUI control from the GUI.
While the control is invisible, it will not be drawn on the screen, and will not register clicks or otherwise respond to any user input.
Applies To
Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.
Example:
btnSaveGame.Visible = false;will make the btnSaveGame button invisible.
See also: GUIControl.Enabled
But this only controls it by it's name not it's ID, arrhh it's one of those days.
Cheers in advance.