Skip to content

EnabledScope

Namespace: SideXP.Core | Inherits from: GUI.Scope

public class EnabledScope : GUI.Scope

Custom GUI Scope for drawing disabled fields.

Constructors

EnabledScope(bool)

public EnabledScope(bool enabled = true)

Begins a scope with disabled fields.

Parameters

  • enabled: If true, make the fields in this block are enabled.

Methods

CloseScope()

protected override void CloseScope()

Restores the enabled state of the GUI.