s&box docs
API ReferenceSandbox.UI

public class Sandbox.UI.StyleSheet

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 9 methods

public static Sandbox.UI.StyleSheet FromFile(string filename, System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string,string>> variables = null, bool failSilently = False)

Parameters

  • variables: Default: null
  • failSilently: Default: False

public static Sandbox.UI.StyleSheet FromString(string styles, string filename = none, System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string,string>> variables = null)

Parameters

  • filename: Default: none
  • variables: Default: null

public Sandbox.UI.MixinDefinition GetMixin(string name)

Get a mixin by name or null if not found.

public string GetVariable(string name, string defaultValue = null)

Parameters

  • defaultValue: Default: null

public void Release()

Releases the filesystem watcher so we won't get file changed events.

public string ReplaceVariables(string str)

public bool TryGetMixin(string name, Sandbox.UI.MixinDefinition mixin)

Try to get a mixin by name.

Properties

Showing 4 properties

public System.Collections.Generic.List`1<string> Sandbox.UI.StyleSheet.IncludedFiles { get; set; }

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.StyleSheet

On this page