make a toggle function for each of them
then in your player script or main.wdl
on_i = toggle_nameoftogglefunction;

or if you mean hide all the panels on one key
just put every panel in one toggle function
on_i = toggle_nameoftogglefunction;

lite-c example
Code:
function toggle_panel()
{
      if is ("insert name of panel here", VISIBLE)
      {
      reset("insert name of panel here", VISIBLE);
      }
      else
      {
      set("insert name of panel here", VISIBLE);
      }
}

without quotation marks


just add more lines with reset and set like this

Code:
function toggle_panel()
{
      if is ("insertnameofpanelhere", VISIBLE)
      {
      reset("insertnameofpanelhere", VISIBLE);
      reset("insertnameofpanelhere", VISIBLE);
      reset("insertnameofpanelhere", VISIBLE);
      reset("insertnameofpanelhere", VISIBLE);
      }
      else
      {
      set("insertnameofpanelhere", VISIBLE);
      set("insertnameofpanelhere", VISIBLE);
      set("insertnameofpanelhere", VISIBLE);
      set("insertnameofpanelhere", VISIBLE);
      }
}


dont know if this example will work directly with wdl/c-script
perhaps some function is named differtly but the basic idea is there wink
also the hide multiple panel example i gave will only check if one of the panel is showing, but it would not matter in that case and easily changeable wink
I dont know c-script in anyway frown


New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7