WorldZonesSection ​
Inherits: FoldableContainer
The Zones section of the Worlds editor: the named places of ONE world (Elderwood, its sub-zone The Old Mill, the Sunken Caves ...) and the default zone of the world. A zone belongs to the world whose list it is in (WorldData.zones); the terrain tool paints with the zones of the world of the scene, and an event or a condition can name any zone. A zone has a name, a description, a colour, a parent (a sub-zone is a part of its parent), a banner (on or off, with a line under the name), how much rain and snow reach the ground, and its look (a sky and an environment of its own, or the ones of the zone it is a part of and of the world). See docs: World > Zones.
Variables ​
WorldData | world | null |
Tree | zone_tree | |
Button | add_button | |
Button | add_sub_button | |
Button | delete_button | |
ZonePickerButton | default_picker | |
LineEdit | name_edit | |
TextEdit | description_edit | |
ColorPickerButton | color_button | |
ZonePickerButton | parent_picker | |
CheckBox | banner_check | |
LineEdit | subtitle_edit | |
SpinBox | wetness_scale_spin | |
SpinBox | snow_scale_spin | |
OptionButton | sky_option | |
OptionButton | environment_option | |
OptionButton | weather_rule_option | |
OptionButton | weather_option | |
OptionButton | weather_table_option | |
HBoxContainer | weather_option_row | |
HBoxContainer | weather_table_row | |
SpinBox | blend_spin | |
CheckBox | replace_check | |
ColorPickerButton | tint_button | |
SpinBox | vignette_spin | |
SpinBox | desaturate_spin | |
SpinBox | grain_spin | |
Array[ConfigField] | sound_fields | [] |
VBoxContainer | fields_box | |
Label | hint_label |
Methods ​
void | setup( panel_style: StyleBox = null ) |
void | show_world( world_data: WorldData ) |
Array[Dictionary] | get_rows() |
int | get_selected_zone_id() |
void | select_zone( zone_id: int ) |
ZoneDefinition | add_zone( parent_id: int = 0, zone_name: String = "New zone" ) |
bool | delete_zone( zone_id: int ) |
Signals ​
world_changed() ​
Something of the world changed (the zone list, the default zone): the editor saves the world.
Variable descriptions ​
WorldData world = null ​
No description yet.
Tree zone_tree ​
No description yet.
Button add_button ​
No description yet.
Button add_sub_button ​
No description yet.
Button delete_button ​
No description yet.
ZonePickerButton default_picker ​
No description yet.
LineEdit name_edit ​
No description yet.
TextEdit description_edit ​
No description yet.
ColorPickerButton color_button ​
No description yet.
ZonePickerButton parent_picker ​
No description yet.
CheckBox banner_check ​
No description yet.
LineEdit subtitle_edit ​
No description yet.
SpinBox wetness_scale_spin ​
No description yet.
SpinBox snow_scale_spin ​
No description yet.
OptionButton sky_option ​
No description yet.
OptionButton environment_option ​
No description yet.
OptionButton weather_rule_option ​
No description yet.
OptionButton weather_option ​
No description yet.
OptionButton weather_table_option ​
No description yet.
HBoxContainer weather_option_row ​
No description yet.
HBoxContainer weather_table_row ​
No description yet.
SpinBox blend_spin ​
No description yet.
CheckBox replace_check ​
No description yet.
ColorPickerButton tint_button ​
No description yet.
SpinBox vignette_spin ​
No description yet.
SpinBox desaturate_spin ​
No description yet.
SpinBox grain_spin ​
No description yet.
Array[ConfigField] sound_fields = [] ​
The fields of the sound of the zone (field components, bound to the zone that is open)
VBoxContainer fields_box ​
No description yet.
Label hint_label ​
No description yet.
Method descriptions ​
void setup( panel_style: StyleBox = null ) ​
Builds the section. panel_style is the style of the other sections of the editor.
void show_world( world_data: WorldData ) ​
Shows the zones of a world (null: nothing).
Array[Dictionary] get_rows() ​
The zones of the world in tree order: [{"id", "depth", "zone"}]. A zone whose parent is not one of the world's zones counts as a zone of its own.
int get_selected_zone_id() ​
No description yet.
void select_zone( zone_id: int ) ​
Selects a zone of the list (and shows its fields).
ZoneDefinition add_zone( parent_id: int = 0, zone_name: String = "New zone" ) ​
Makes a zone in this world (a sub-zone of parent_id when it is not 0) and selects it. Returns it.
bool delete_zone( zone_id: int ) ​
Deletes a zone of this world: its sub-zones become part of its parent, and the default zone goes when it was this one.