SkyPropertiesDialog

Package: Libraries.Interface.Controls.Scenes.Dialogs · Inherits from: Libraries.Interface.Events.TextChangeListener, Libraries.Interface.Controls.Control, Libraries.Interface.Forms.FormPrimitiveContainer, Libraries.Interface.Item, Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog, Libraries.Interface.Item2D, Libraries.Language.Object, Libraries.Interface.Events.SelectionListener, Libraries.Interface.Controls.Dialog

The SkyPropertiesDialog is a 3D layer's Sky section (QuincyWorld demo D3). It says which sky the layer has, if any, and lets the user choose one from a folder of six pictures (named right, left, top, bottom, front and back, or px, nx, py, ny, pz and nz; see Skybox:LoadFolder), remove it, or turn it about the up axis, so the sun in the pictures can be lined up with the scene's light. The sky is saved with the scene, and every change can be undone. It also has the layer's Linear lighting checkbox: on, the default, colors are lit as amounts of light, as glTF and most engines expect; off, they are lit as stored, as Quorum did before. It shows in the scene editor's Properties panel when a 3D layer is selected and no item is.

Variables

  • integer REMOVE
  • integer CHOOSE_FOLDER: What a button does.
  • integer LINEAR_LIGHTING

Actions

ButtonActivated(integer kind)

This action is called by the section's buttons.

Parameters

  • kind integer: CHOOSE_FOLDER, REMOVE or LINEAR_LIGHTING

FieldLeft(Libraries.Interface.Controls.TextField field)

This action is called when the focus leaves the Turn field: its value is taken. Text that isn't a number is ignored.

Parameters

FocusField()

Moves the focus to the choose button.

Refresh()

Shows the layer's sky again, after it changed.

SelectionChanged(Libraries.Interface.Events.SelectionEvent event)

This action shows the section when a 3D layer is selected and no item is, and hides it otherwise.

Parameters

SetFields(Libraries.Interface.Controls.Scenes.Items.EditorItem item)

This action has no item fields to set; the section follows the selected layer.

Parameters

SetLayer(Libraries.Interface.Controls.Scenes.Layers.EditorLayer3D layer)

Shows a layer's sky.

Parameters

SliderTaken(Libraries.Interface.Controls.TextField field)

This action is called when the Turn slider's value was finally changed, or a number typed in its field: taken as FieldLeft takes it.

Parameters

Inherited Actions

263 actions from Libraries.Interface.Controls.Control
20 actions from Libraries.Interface.Controls.Dialog
34 actions from Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog
1 action from Libraries.Interface.Events.TextChangeListener
8 actions from Libraries.Interface.Forms.FormPrimitiveContainer
57 actions from Libraries.Interface.Item
200 actions from Libraries.Interface.Item2D
3 actions from Libraries.Language.Object