API ReferenceSandbox.UI
StyleSheetclass
object→StyleSheet
Constructors1
Showing 1 constructors
public StyleSheet()
No results match this filter.
Methods9
Showing 9 methods
public void AddKeyFrames(Sandbox.UI.KeyFrames frames)
| Parameter | Type | Description |
|---|---|---|
| frames | KeyFrames | — |
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)
| Parameter | Type | Description |
|---|---|---|
| filename | string | — |
| variables = null | IEnumerable<ValueTuple<string,string>> | — |
| failSilently = False | bool | — |
public static Sandbox.UI.StyleSheet FromString(string styles, string filename = none, System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string,string>> variables = null)
| Parameter | Type | Description |
|---|---|---|
| styles | string | — |
| filename = none | string | — |
| variables = null | IEnumerable<ValueTuple<string,string>> | — |
public Sandbox.UI.MixinDefinition GetMixin(string name)
Get a mixin by name or null if not found.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
public string GetVariable(string name, string defaultValue = null)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| defaultValue = null | string | — |
Returns:
string—public void Release()
Releases the filesystem watcher so we won't get file changed events.
Returns:
void—public string ReplaceVariables(string str)
| Parameter | Type | Description |
|---|---|---|
| str | string | — |
Returns:
string—public void SetMixin(Sandbox.UI.MixinDefinition mixin)
Register a mixin definition.
| Parameter | Type | Description |
|---|---|---|
| mixin | MixinDefinition | — |
Returns:
void—public bool TryGetMixin(string name, Sandbox.UI.MixinDefinition mixin)
Try to get a mixin by name.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| mixin | MixinDefinition | — |
Returns:
bool—No results match this filter.
Properties4
Showing 4 properties
public string Sandbox.UI.StyleSheet.FileName { get; set; }
Returns:
string—public System.Collections.Generic.List`1<string> Sandbox.UI.StyleSheet.IncludedFiles { get; set; }
Returns:
List<string>—public static System.Collections.Generic.List`1<Sandbox.UI.StyleSheet> Sandbox.UI.StyleSheet.Loaded { get; set; }
public System.Collections.Generic.List`1<Sandbox.UI.StyleBlock> Sandbox.UI.StyleSheet.Nodes { get; set; }
No results match this filter.