PopupWidgetclass

A popup widget that automatically deletes itself once it stops being visible

object→Widget→PopupWidget
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.PopupWidget : Editor.Widget

Constructors1

Showing 1 constructors

Methods5

Showing 5 methods

protected virtual void OnPaint()PROTECTEDVIRTUAL

Returns:void—

protected virtual void OnVisibilityChanged(bool visible)PROTECTEDVIRTUAL

ParameterTypeDescription
visiblebool—
Returns:void—

public void OpenAt(Vector2 position, bool animate = True, System.Nullable`1<Vector2> animateOffset = null)PUBLIC

ParameterTypeDescription
positionVector2—
animate = Truebool—
animateOffset = nullNullable<Vector2>—
Returns:void—

public void OpenAtCursor(bool animate = True, System.Nullable`1<Vector2> offset = null)PUBLIC

ParameterTypeDescription
animate = Truebool—
offset = nullNullable<Vector2>—
Returns:void—

public void OpenBelowCursor(float distance, float centering = 0.5)PUBLIC

Open the window this many pixels below the cursor.

ParameterTypeDescription
distancefloat—
centering = 0.5float—
Returns:void—

Properties1

Showing 1 properties

public System.Action Editor.PopupWidget.OnLostFocus { get; set; }PUBLICGETSET

Returns:Action—

On this page