Quote:

You could write a whole custom panel handler, that stores any panel in an a linkedlist or array, and walk through that to reset them that way... but that's more work.


Actually, panels are already in a linked list. You can find the first panel with ptr_first (void* object); and find the next with yourpanel.link.next.

You can hide all panels like this:
Code:
PANEL* pan_temp = ptr_first(pan_temp);
while (pan_temp)
{
  pan_temp.flags &= ~SHOW;
  pan_temp = pan_temp.link.next;
}


I think this is the easiest way.