TerrainWaterButtonBehavior

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

The TerrainWaterButtonBehavior is a button or checkbox in a terrain's Water section: the Sea checkbox, "Add lake", a lake's "Remove", or "Look..." and its Close. 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.TerrainWaterPropertiesDialog dialog, integer kind, integer lake)

Sets which section and button this is.

Parameters

Inherited Actions

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