EnvironmentBar ​
Inherits: PanelContainer
The bar at the top of the 3D viewport while the environment preview is on: which Sun, Sky and Environment config to look at, the hour of the day (a slider, and a clock that runs), whether the default video settings of the project are used, and what to do with the choice: use it for this world, or go back to the configs of the world. The configs are changed in World Configs; the preview shows them at once (Refresh after a change).
Variables ​
EnvironmentPreview | preview | null |
SunConfig | world_sun | null |
SkyConfig | world_sky | null |
EnvironmentConfig | world_environment | null |
OptionButton | sun_option | |
OptionButton | sky_option | |
OptionButton | environment_option | |
HSlider | time_slider | |
Label | time_label | |
Button | play_button | |
SpinBox | speed_spin | |
CheckBox | video_check | |
OptionButton | blind_option | |
Label | zone_label | |
OptionButton | zone_option | |
Button | use_button |
Methods ​
void | bind( p_preview: EnvironmentPreview, p_sun: SunConfig, p_sky: SkyConfig, p_environment: EnvironmentConfig ) |
void | refresh() |
void | set_zones( zone_ids: Array ) |
void | select_zone( zone_id: int ) |
int | selected_zone_id() |
Signals ​
use_for_world_requested( sun: SunConfig, sky: SkyConfig, environment: EnvironmentConfig ) ​
use_for_zone_requested( zone_id: int, sky: SkyConfig, environment: EnvironmentConfig ) ​
"Use for this zone": the zone that is shown and the sky and environment chosen
zone_chosen( zone_id: int ) ​
Another zone (or the world: 0) was chosen to look at
world_configs_requested() ​
reset_requested() ​
close_requested() ​
Variable descriptions ​
EnvironmentPreview preview = null ​
No description yet.
SunConfig world_sun = null ​
The configs the world has by itself (its overrides, else the defaults): marked in the lists
SkyConfig world_sky = null ​
No description yet.
EnvironmentConfig world_environment = null ​
No description yet.
OptionButton sun_option ​
No description yet.
OptionButton sky_option ​
No description yet.
OptionButton environment_option ​
No description yet.
HSlider time_slider ​
No description yet.
Label time_label ​
No description yet.
Button play_button ​
No description yet.
SpinBox speed_spin ​
No description yet.
CheckBox video_check ​
No description yet.
OptionButton blind_option ​
No description yet.
Label zone_label ​
No description yet.
OptionButton zone_option ​
No description yet.
Button use_button ​
No description yet.
Method descriptions ​
void bind( p_preview: EnvironmentPreview, p_sun: SunConfig, p_sky: SkyConfig, p_environment: EnvironmentConfig ) ​
Shows a preview: fills the lists and puts the controls where the preview is
void refresh() ​
Reads the lists again (a config was made or changed) and keeps what is chosen
void set_zones( zone_ids: Array ) ​
The zones of the world the bar can look at (the ids of WorldData.zones): the choice "The world" and one for each, sub-zones indented. No zones: the choice is hidden
void select_zone( zone_id: int ) ​
Chooses what is looked at (0 = the world) without telling anybody
int selected_zone_id() ​
No description yet.