PanelManager
The PanelManager script object is created automatically when the campaign UI loads, and offers a suite a functions that allow scripts to work with the PanelManager. It does not need to be created by script, and the functions it provides may be called directly on the object in the following form.
Example:
					PanelManager.<function_name>(<args>)
				| Loaded in Campaign | 
										 | 
								
| Loaded in Battle | 
										 | 
								
| Loaded in Frontend | 
										 | 
								
- 
							
PanelManager.CloseAllPanels() - 
							Closes all opened panels managed by the PanelManager and clears the cached component
							
Returns:
nil
 
- 
							
PanelManager.ClosePanel(Stringpanel name or UIComponent address) - 
							Closes the specified panel
							
Parameters:
1
Stringpanel name or UIComponent address
Returns:
nil
 
- 
							
PanelManager.IsPanelOpen(Panel namestring) - 
							Checks whether the specified panel is opened
							
Parameters:
1
Panel name
Returns:
addressto the panel component if opened
 
- 
							
PanelManager.ClearCachedComponent() - 
							Clears the cached component of the PanelManager. This is the last opened panel
							
Returns:
nil
 
- 
							
PanelManager.GetCachedComponentId() - 
							Returns the Id of the cached component or an empty string if there is no cached component
							
Returns:
Id of the cached component or an empty stringstring
 
- 
							
PanelManager.OpenPanels() - 
							Checks whether there are any opened panels managed by the PanelManager
							
Returns:
any_panels_openedboolean