PropertiesPanel

Package: Libraries.Interface.Controls.Scenes · Inherits from: Libraries.Interface.Item, Libraries.Interface.Controls.Control, Libraries.Interface.Item2D, Libraries.Language.Object

The PropertiesPanel class shows the selected scene item's properties beside a SceneEditor, instead of in floating dialogs. Give it to the editor with SetPropertiesPanel: each of the editor's properties dialogs then shows its fields here when an item it describes is selected. With nothing selected, it says so. The panel scrolls when its fields are taller than it is. Pressing Escape or Enter in one of its fields returns the focus to the editor, as in the dialogs. When it shows two or more sections, each has a header, like an item in a tree, that opens and closes it. Which sections are closed is kept by title, so a section closed once stays closed for every item that shows it. SetClosedSections lets a program share and save that list.

Example Code

use Libraries.Interface.Controls.Scenes.SceneEditor
use Libraries.Interface.Controls.Scenes.PropertiesPanel

SceneEditor editor
PropertiesPanel panel
editor:SetPropertiesPanel(panel)

Actions

AddDockedDialog(Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog dialog)

Notes a dialog docked in the panel, so its section shows in the order docked. PropertiesDialog:DockIn calls it.

Parameters

CloseFocusedSection()

Closes the section the focus is in, and moves the focus to its header. It does nothing with one section, or with the focus outside the panel.

GetClosedSections()

Returns the titles of the closed sections.

Returns

Libraries.Containers.Array<text>: The titles

GetSceneEditor()

Returns the SceneEditor whose selection this panel describes.

Returns

Libraries.Interface.Controls.Scenes.SceneEditor: The SceneEditor, or undefined before one is set

HideDialog(Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog dialog)

Takes a docked dialog's fields out of the panel. PropertiesDialog:Hide calls it once the dialog is docked.

Parameters

IsShowingDialog(Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog dialog)

Returns true if a docked dialog's fields are in the panel now.

Parameters

Returns

boolean: True if its fields are showing

OpenFocusedSection()

Opens the section the focus is in, from its header or inside it, and moves the focus to its first control.

SectionLayoutChanged()

Links the Tab order again, and lays the panel out, after a section showed or hid some of its own controls.

SectionOpenChanged(Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog dialog)

Notes that a section was opened or closed, so it stays that way. PropertiesDialog:SetOpen calls it.

Parameters

SetClosedSections(Libraries.Containers.Array<text> closed)

Sets the list of closed sections' titles. The panel changes this same list as sections open and close, so a program can share it between panels and save it, as Quorum Studio does.

Parameters

SetSceneEditor(Libraries.Interface.Controls.Scenes.SceneEditor editor)

Sets the SceneEditor whose selection this panel describes.

Parameters

ShowDialog(Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog dialog)

Puts a docked dialog's fields into the panel, after any already shown. PropertiesDialog:Show calls it once the dialog is docked.

Parameters

Inherited Actions

264 actions from Libraries.Interface.Controls.Control
61 actions from Libraries.Interface.Item
202 actions from Libraries.Interface.Item2D
3 actions from Libraries.Language.Object