TerrainFoliageButtonBehavior

Package: Libraries.Interface.Behaviors.Scenes.Properties · Inherits from: Libraries.Language.Object, Libraries.Interface.Behaviors.Behavior

The TerrainFoliageButtonBehavior is a button or checkbox in a terrain's Foliage section: "Add asset...", an asset's "Paint", "Settings..." or "Remove", its arrows, or one of its settings' checkboxes. It tells the section which was pressed.

Actions

Dispose()

A checkbox runs its behavior only when it is checked, and calls Dispose when it is unchecked, so unchecking is passed on the same way. The section reads the checkbox's state, so it sees the change.

Run(Libraries.Interface.Events.BehaviorEvent event)

Sets which section and button this is.

Parameters

SetCheckbox(boolean value)

Marks the behavior as a checkbox's, so unchecking is passed on too. A button's behavior may be disposed with its button, which mustn't press it.

Parameters

  • value boolean: True for a checkbox's behavior

Setup(Libraries.Interface.Controls.Scenes.Dialogs.TerrainFoliagePropertiesDialog dialog, integer kind, integer asset)

Sets which section and button this is.

Parameters

Inherited Actions

6 actions from Libraries.Interface.Behaviors.Behavior
3 actions from Libraries.Language.Object