private void on_load_begin(int stage_count) { progressBar.Show(); colorRect.Show(); progressBar.MaxValue = stage_count; }
public override void _Ready() { _fadeTransition = GetNode <ColorRect>("Fade"); _fadeTransition.Show(); _animationPlayer = _fadeTransition.GetNode <AnimationPlayer>("AnimationPlayer"); _animationPlayer.Connect("animation_finished", this, nameof(SwitchScene)); }
private void SetShader(SetShaderEvent ssei) { DisableAllShaders(); if (ssei.showBlur) { blurShader.Show(); } if (ssei.showBlurAndWater) { blurAndWaterShader.Show(); } if (ssei.disableAll) { DisableAllShaders(); } }