Method SetGuiPanelDisabled
SetGuiPanelDisabled(GUIPanel, bool, NwGameObject?)
Disable a specific gui panel for this player.
Will close the GUI panel if it is currently open.
Will fire a DisabledPanelAttemptOpen event for some panels if a player attempts to open them while disabled.
public void SetGuiPanelDisabled(GUIPanel panel, bool disabled, NwGameObject? targetObject = null)
Parameters
panelGUIPanelThe panel type to disable.
disabledboolTrue to disable the panel, false to re-enable the panel.
targetObjectNwGameObjectThe target object (e.g. examined object) where this panel should be disabled.