Skip to content

ColorScope

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

public class ColorScope : GUI.Scope

Custom GUI Scope for temporarily changing the GUI color.

Constructors

ColorScope(Color)

public ColorScope(Color color)

Begins a scope with custom GUI color.

Parameters

  • color: The new GUI color.

ColorScope(FColor, bool)

public ColorScope(FColor color, bool ignoreAlpha = false)

Begins a scope with custom GUI color.

Parameters

  • color: The new GUI color.
  • ignoreAlpha: If enabled, the alpha component of the given color is ignored.

Methods

CloseScope()

protected override void CloseScope()

Restores the previous GUI color.