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
valueboolean: 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
dialogLibraries.Interface.Controls.Scenes.Dialogs.TerrainWaterPropertiesDialog: The Water sectionkindinteger: One of the section's button kinds, such as REMOVE_LAKElakeinteger: The lake, from 0, for a lake's button