API ReferenceSandbox.UI

Imageclass

A generic box that displays a given texture within itself.

objectPanelImage
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.Image : Sandbox.UI.Panel

Constructors1

Showing 1 constructors

public Image()PUBLICCONSTRUCTOR

Methods3

Showing 3 methods

public virtual void OnDraw()PUBLICVIRTUAL

Returns:void

public virtual void SetProperty(string name, string value)PUBLICVIRTUAL

ParameterTypeDescription
namestring
valuestring
Returns:void

public void SetTexture(string name)PUBLIC

Set `Sandbox.UI.Image.Texture` from a file path. URLs supported.

ParameterTypeDescription
namestring
Returns:void

Properties1

Showing 1 properties

On this page