s&box docs

public static abstract sealed class Editor.Theme

Broader workflow and conceptual references connected to this API.

Methods

Showing 4 methods

public static void DrawButton(Sandbox.Rect LocalRect, string text = null, string Icon = null, bool Enabled = True, System.Nullable`1<Color> Tint = null)

Parameters

  • text: Default: null
  • Icon: Default: null
  • Enabled: Default: True
  • Tint: Default: null

public static void DrawDropdown(Sandbox.Rect rect, string text, string icon, bool open, bool disabled = False)

Draw a dropdown control with a text label and an icon. Has a up/down chevron icon to indicate the dropdown state.

Parameters

  • disabled: Default: False

public static void DrawFilename(Sandbox.Rect rect, string filename, Sandbox.TextFlag flags, Color color)

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.Theme

On this page