public class Sandbox.UI.Styles : Sandbox.UI.BaseStyles
Represents all supported CSS properties and their currently assigned values.
Related Guides
Broader workflow and conceptual references connected to this API.
We try to keep as close to standard web styles as possible - but not every property is implemented. We'll use this page to highlight any differences.
VirtualGrid is a Panel that allows you to create a grid of items virtually. What this means is that if you have 1 million items, it won't render them and try to lay them all out at the same time. It'll just pick the few that are visible and create them. When you scroll down, it'll delete the ones it can no longer see and create the new visible ones.
Constructors
Showing 1 constructors
public Styles()
No results match this filter.
Methods
Showing 14 methods
public virtual void Add(Sandbox.UI.BaseStyles bs)
public void ApplyScale(float scale)
public Matrix BuildTransformMatrix(Vector2 size)
Creates a matrix based on this style's "transform" and other related properties
public virtual void Dirty()
public virtual void From(Sandbox.UI.BaseStyles bs)
public virtual void FromLerp(Sandbox.UI.BaseStyles from, Sandbox.UI.BaseStyles to, float delta)
public virtual void LerpProperty(string name, Sandbox.UI.BaseStyles from, Sandbox.UI.BaseStyles to, float delta)
public void ResetAnimation()
Stops the animation. If we have animation vars we'll start again.
public void StartAnimation(string name, float duration, int iterations = 1, float delay = 0, string timing = linear, string direction = normal, string fillmode = none)
Stop any previous animations and start this one. Make it last this long.
Parameters
iterations: Default: 1delay: Default: 0timing: Default: lineardirection: Default: normalfillmode: Default: none
No results match this filter.
Properties
Showing 6 properties
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.Styles |