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 ​
RiverVolume | river | null |
EditorUndoRedoManager | undo_redo | null |
Label | title_label | |
Label | point_label | |
SpinBox | width_spin | |
OptionButton | mode_option | |
Button | remove_button | |
SpinBox | lift_spin | |
Label | start_label | |
Label | end_label | |
Button | start_button | |
Button | end_button | |
Button | rejoin_button | |
Label | problem_label |
Methods ​
void | bind( new_river: RiverVolume ) |
void | refresh() |
void | apply_width( value: float ) |
void | apply_mode( mode: RiverVolume.TangentMode ) |
void | remove_selected() |
void | unjoin( at_end: bool ) |
void | rejoin() |
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