I did a search but only got errors, no matter what I searched. It might be broken.
As I learn AGS and modify the default game in to my own; I have been attempting to make the Inventory window toggle with a second press of a button (default, TAB) the way the "gPanel" shows up and goes away when you press escape.
I tried to mimick the code I saw used for the gPanel, but it just doesn't go away when I press again. Here's an example:
Code: ags
There were other IconBar.Visible and such but seemed to make no difference anyway.
I hope someone can help, thanks for reading.
As I learn AGS and modify the default game in to my own; I have been attempting to make the Inventory window toggle with a second press of a button (default, TAB) the way the "gPanel" shows up and goes away when you press escape.
I tried to mimick the code I saw used for the gPanel, but it just doesn't go away when I press again. Here's an example:
if ((keycode == eKeyTab) && (gInventory.Visible))
{
gInventory.Visible= false;
return;
}
There were other IconBar.Visible and such but seemed to make no difference anyway.
I hope someone can help, thanks for reading.