Camera2DPropertiesDialog

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 Camera2DPropertiesDialog class is a dialog that appears when selecting a CameraItem2D. Like other properties dialogs this dialog has several fields and buttons to adjust its properties. This dialog only has 3 properties to edit so there are not as many controls on the dialog as others.

Actions

CreateInterface(Libraries.Interface.Controls.Control panel, Libraries.Containers.Array<Libraries.Interface.Controls.Control> focusArray)

Creates and adds all the controls this dialog needs. Each property is a slider with its number beside it, as in the other properties panels.

Parameters

FocusField()

Moves the focus to one of the fields in the properties dialog. By default this is the name field (the first field in the panel), but it could also be changed to a different field, possibly context sensitive.

SelectionChanged(Libraries.Interface.Events.SelectionEvent event)

This action Shows or Hides the dialog based on what gains selection. Only if a CameraItem2D is selected will this dialog show. If there is no selection or the selected item is not a CameraItem2D then the dialog will hide or stay hidden.

Parameters

SetFields(Libraries.Interface.Controls.Scenes.Items.CameraItem2D cameraItem)

This action takes a CameraItem2D and sets the sliders from it. Setting a slider's value doesn't tell its listeners, so nothing is sent back to the camera.

Parameters

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

This action takes an EditorItem and sets the fields in the dialog based on its properties. If the item is not a CameraItem2D then the item is ignored.

Parameters

SliderTaken(Libraries.Interface.Controls.TextField field)

This action is called when a slider's value is final: the slider was let go or moved with the keys, or a number was typed and the focus left the field. Text that isn't a number is put back.

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