s&box docs

public class Editor.Window : Editor.Widget

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

public Window(Editor.Widget parent = null)

Parameters

  • parent: Default: null

Methods

Showing 15 methods

public void Center()

Position the window at the centre of the screen, or main editor window if one is present.

public void Clear()

TODO this was a test, get rid of it

public virtual void Close()

protected virtual void OnClosed()

protected virtual void OnResize()

public void RemoveToolBar(Editor.ToolBar bar)

public virtual void RestoreFromStateCookie()

Called whenever the window should restore its state via the EditorCookie library, that was previously saved in `Editor.Window.SaveToStateCookie`. You should use `Editor.Window.StateCookie` in the cookie name.

public void RestoreState(string state)

public string SaveState(int version = 0)

Parameters

  • version: Default: 0

public virtual void SaveToStateCookie()

Called whenever the window should save its state via the EditorCookie library, to be later restored in `Editor.Window.RestoreFromStateCookie`. This is useful to carry data across game sessions. You should use `Editor.Window.StateCookie` in the cookie name.

public virtual void Show()

Properties

Showing 9 properties

public bool Editor.Window.CloseButtonVisible { get; set; }

public bool Editor.Window.IsDialog { get; set; }

public bool Editor.Window.StartCentered { get; set; }

Initialises the window at the centre of the screen (or main editor window if one is present) by default.

public string Editor.Window.StateCookie { get; set; }

A unique identifier for this window, to store the window state across sessions using the Cookie library.

Metadata

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

On this page