Skip to content

MovementPresetBar ​

Inherits: HBoxContainer

The preset row of the Unique Object panel for a movement volume or a shelter volume (it is given the class of the presets: MovementVolumePreset or ShelterPreset): a menu of the presets (Water, Lava... and yours), "(modified)" when the numbers were changed after the preset was taken, and the buttons to save the volume as a new preset, to update the preset with the numbers of the volume, and to delete one of yours. A volume does not need a preset.

Methods ​

voidsetup( volumes: Array, preset_class: GDScript = MovementVolumePreset )
Resourcecurrent_preset()

Signals ​

apply_requested( preset: Resource ) ​

A preset was chosen (null = no preset): the panel gives its settings to the selected volumes

named( preset_name: String ) ​

The volumes were made from the preset with this name (a preset was just saved from them), or from none ("")

changed() ​

The list of presets changed: the panel shows itself again

Method descriptions ​

void setup( volumes: Array, preset_class: GDScript = MovementVolumePreset ) ​

No description yet.

Resource current_preset() ​

The preset the first volume was made from (null: none, or one that is gone).