Beispiel #1
0
    private void on_load_begin(int stage_count)
    {
        progressBar.Show();
        colorRect.Show();

        progressBar.MaxValue = stage_count;
    }
Beispiel #2
0
        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();
     }
 }