Table of Contents

Method SetGuiPanelDisabled

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

panel GUIPanel

The panel type to disable.

disabled bool

True to disable the panel, false to re-enable the panel.

targetObject NwGameObject

The target object (e.g. examined object) where this panel should be disabled.