TerrainPropertiesDialog

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 TerrainPropertiesDialog shows a selected terrain's name, which can be changed, in a card, and a button that grows the terrain. If the terrain's files weren't found, a line under the name says so. It shows in the scene editor's Properties panel, with the terrain's physics after it (TerrainPhysicsPropertiesDialog).

Actions

FocusField()

Moves the focus to the name field, with its text selected.

Grow()

Makes the terrain one region bigger on every side. The section's grow button calls it.

SelectionChanged(Libraries.Interface.Events.SelectionEvent event)

This action shows the dialog when a terrain is selected, and hides it otherwise.

Parameters

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

This action sets the fields from a selected terrain's highlight.

Parameters

SetTerrain(Libraries.Interface.Controls.Scenes.Items.EditorTerrain terrain)

This action shows a terrain's name and facts.

Parameters

TextChanged(Libraries.Interface.Events.TextChangeEvent event)

This action renames the terrain as its name is typed.

Parameters

Inherited Actions

263 actions from Libraries.Interface.Controls.Control
20 actions from Libraries.Interface.Controls.Dialog
35 actions from Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog
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