TerrainBrushPropertiesDialog

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 TerrainBrushPropertiesDialog is a selected terrain's Brush section: which tool is chosen, then only what that tool uses: the paint layer for Paint; what Flatten evens the ground to, and its height when it is a set height; the foliage asset for Foliage, with how to remove copies; and the Brush Settings (size, strength and falloff) for the tools that use them. Choosing a tool here does the same as its key: a ring shows the brush on the ground, and the arrow keys and pointer move it. "No tool" leaves the tool. It shows in the scene editor's Properties panel, between the terrain's facts (TerrainPropertiesDialog) and its physics.

Variables

  • integer TAKE_HEIGHT: What the section's buttons do.
  • integer FINISH_RIVER
  • integer STOP_RIVER: interface scale, so the fields line up.

Actions

ButtonActivated(integer kind)

This action is called by the section's buttons.

Parameters

  • kind integer: TAKE_HEIGHT

FocusField()

Moves the focus to the tool buttons.

SelectionChanged(Libraries.Interface.Events.SelectionEvent event)

This action shows the dialog when a terrain is selected, and hides it otherwise. It also takes a tool chosen with the radio buttons.

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 tool and brush.

Parameters

TextChanged(Libraries.Interface.Events.TextChangeEvent event)

This action sets the brush as its numbers are typed. Text that isn't a number, or is out of range, is ignored: the size from 0.5 to 64, the strength 0 or more, and the falloff more than 0.

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