s&box docs

public class Editor.PopupWidget : Editor.Widget

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

Constructors

Showing 1 constructors

Methods

Showing 5 methods

protected virtual void OnPaint()

protected virtual void OnVisibilityChanged(bool visible)

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

Parameters

  • animate: Default: True
  • animateOffset: Default: null

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

Parameters

  • animate: Default: True
  • offset: Default: null

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

Open the window this many pixels below the cursor.

Parameters

  • centering: Default: 0.5

Properties

Showing 1 properties

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

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.PopupWidget

On this page