public class Sandbox.UI.RootPanel : Sandbox.UI.Panel
A root panel. Serves as a container for other panels, handles things such as rendering.
Constructors
Showing 1 constructors
public RootPanel()
No results match this filter.
Methods
Showing 6 methods
public virtual void Delete(bool immediate = True)
Parameters
immediate: Default: True
public virtual void OnDeleted()
public virtual void OnLayout(Sandbox.Rect layoutRect)
public void RenderManual(float opacity = 1)
Render this panel manually. This gives more flexibility to where UI is rendered, to texture for example. `Sandbox.UI.RootPanel.RenderedManually` must be set to true.
Parameters
opacity: Default: 1
protected virtual void UpdateBounds(Sandbox.Rect rect)
Called before layout to lock the bounds of this root panel to the screen size (which is passed). Internally this sets PanelBounds to rect and calls UpdateScale.
protected virtual void UpdateScale(Sandbox.Rect screenSize)
Work out scaling here. Default is to scale relative to the screen being 1920 wide. ie - scale = screensize.Width / 1920.0f;
No results match this filter.
Properties
Showing 6 properties
public bool Sandbox.UI.RootPanel.IsHighQualityVR { get; set; }
If this panel should be rendered with ~4K resolution.
public virtual bool Sandbox.UI.RootPanel.IsWorldPanel { get; set; }
True if this is a world panel, so should be skipped when determining cursor visibility etc
public Sandbox.Rect Sandbox.UI.RootPanel.PanelBounds { get; set; }
Bounds of the panel, i.e. its size and position on the screen.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.RootPanel |