Skip to content

RiverEditBar ​

Inherits: PanelContainer

The bar over the 3D viewport while a river that winds is selected: the point being edited (click the handle on a point), its width and how its curve leaves it (Auto, Mirrored, Free), a button to take the point away, how high the water goes above the ground when you place or move a point, the state of each end (free, or joined to another water, with a button to free it), and what is wrong with the course (a bend too tight, a slope too steep). Every change is one step of Undo.

Variables ​

RiverVolumerivernull
EditorUndoRedoManagerundo_redonull
Labeltitle_label
Labelpoint_label
SpinBoxwidth_spin
OptionButtonmode_option
Buttonremove_button
SpinBoxlift_spin
Labelstart_label
Labelend_label
Buttonstart_button
Buttonend_button
Buttonrejoin_button
Labelproblem_label

Methods ​

voidbind( new_river: RiverVolume )
voidrefresh()
voidapply_width( value: float )
voidapply_mode( mode: RiverVolume.TangentMode )
voidremove_selected()
voidunjoin( at_end: bool )
voidrejoin()

Variable descriptions ​

RiverVolume river = null ​

No description yet.

EditorUndoRedoManager undo_redo = null ​

No description yet.

Label title_label ​

No description yet.

Label point_label ​

No description yet.

SpinBox width_spin ​

No description yet.

OptionButton mode_option ​

No description yet.

Button remove_button ​

No description yet.

SpinBox lift_spin ​

No description yet.

Label start_label ​

No description yet.

Label end_label ​

No description yet.

Button start_button ​

No description yet.

Button end_button ​

No description yet.

Button rejoin_button ​

No description yet.

Label problem_label ​

No description yet.

Method descriptions ​

void bind( new_river: RiverVolume ) ​

Shows this river (null: nothing). The bar follows the river when its points or the point being edited change

void refresh() ​

Shows the state of the river again

void apply_width( value: float ) ​

The width of the point being edited

void apply_mode( mode: RiverVolume.TangentMode ) ​

How the curve leaves the point being edited

void remove_selected() ​

Takes the point being edited away

void unjoin( at_end: bool ) ​

Lets go of the water an end is joined to

void rejoin() ​

Looks again for water under each end