TerrainGeneratePropertiesDialog

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 TerrainGeneratePropertiesDialog is a selected terrain's Generate section. For the whole terrain, it remakes the ground with a preset (rolling hills, mountains, plateaus, canyons or flat), a seed and a height, and can auto paint it; it also erodes or auto paints the whole terrain. Each can be undone. The Stamp, Erode and Auto paint tools, which act where the brush is clicked, are in the Brush section, and the Stamp tool's settings in the Stamp section. Auto paint needs two or more materials: layer 1 goes on flat ground, layer 2 on slopes, layer 3 in hollows and layer 4 low down. It shows in the scene editor's Properties panel, after the Brush section.

Variables

  • integer ERODE_ALL
  • integer AUTO_PAINT_ALL: scale, so the fields line up, as in the other terrain sections.
  • integer GENERATE: What a button does.

Actions

ButtonActivated(integer kind)

This action is called by the section's buttons.

Parameters

  • kind integer: What the button does, such as GENERATE

FocusField()

Moves the focus to the preset choice.

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 terrain from a selected terrain's highlight.

Parameters

TextChanged(Libraries.Interface.Events.TextChangeEvent event)

The fields are read when a button is pressed, so typing does nothing.

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