API ReferenceSandbox.UI

StyleSheetclass

objectStyleSheet
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.StyleSheet

Constructors1

Showing 1 constructors

Methods9

Showing 9 methods

public void AddKeyFrames(Sandbox.UI.KeyFrames frames)PUBLIC

ParameterTypeDescription
framesKeyFrames
Returns:void

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

ParameterTypeDescription
filenamestring
variables = nullIEnumerable<ValueTuple<string,string>>
failSilently = Falsebool
Returns:StyleSheet

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

ParameterTypeDescription
stylesstring
filename = nonestring
variables = nullIEnumerable<ValueTuple<string,string>>
Returns:StyleSheet

public Sandbox.UI.MixinDefinition GetMixin(string name)PUBLIC

Get a mixin by name or null if not found.

ParameterTypeDescription
namestring
Returns:MixinDefinition

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

ParameterTypeDescription
namestring
defaultValue = nullstring
Returns:string

public void Release()PUBLIC

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

Returns:void

public string ReplaceVariables(string str)PUBLIC

ParameterTypeDescription
strstring
Returns:string

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

Try to get a mixin by name.

ParameterTypeDescription
namestring
mixinMixinDefinition
Returns:bool

Properties4

Showing 4 properties

public string Sandbox.UI.StyleSheet.FileName { get; set; }PUBLICGETSET

Returns:string

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

Returns:List<string>

On this page