API ReferenceSandbox.UI

SvgPanelclass

A generic panel that draws an SVG scaled to size

objectPanelSvgPanel
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.SvgPanel : Sandbox.UI.Panel

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

public virtual void FinalLayout(Vector2 offset)PUBLICVIRTUAL

ParameterTypeDescription
offsetVector2
Returns:void

public virtual void OnDraw()PUBLICVIRTUAL

Returns:void

Properties2

Showing 2 properties

public string Sandbox.UI.SvgPanel.Color { get; set; }PUBLICGETSET

Optional color to draw the SVG with

Returns:string

public string Sandbox.UI.SvgPanel.Src { get; set; }PUBLICGETSET

Content path to the SVG file

Returns:string

On this page