Beispiel #1
0
    public override void _Ready()
    {
        ControlNode = GetNode <Control>("Control");
        Rect        = GetNode <ColorRect>("Control/Rect");
        Fader       = GetNode <Tween>("Control/Fader");
        Fader.Connect("tween_all_completed", this, "OnFinished");

        ControlNode.Hide();
    }
Beispiel #2
0
    public override void _Ready()
    {
        CutsceneVideoPlayer = GetNode <VideoPlayer>("Control/VideoPlayer");
        ControlNode         = GetNode <Control>("Control");

        FrameSize = CutsceneVideoPlayer.RectSize;

        CutsceneVideoPlayer.Connect("finished", this, nameof(OnFinished));

        ControlNode.Hide();
    }
Beispiel #3
0
    public override void _Ready()
    {
        ControlNode = GetNode <Control>("Control");
        Rect        = GetNode <ColorRect>("Control/Rect");
        Fader       = GetNode <Tween>("Control/Fader");
        Fader.Connect("tween_all_completed", this, "OnFinished");

        // Keep this node running even while paused
        PauseMode = PauseModeEnum.Process;

        ControlNode.Hide();
    }
Beispiel #4
0
    public override void _Ready()
    {
        CutsceneVideoPlayer = GetNode <VideoPlayer>("Control/VideoPlayer");
        ControlNode         = GetNode <Control>("Control");

        FrameSize = CutsceneVideoPlayer.RectSize;

        CutsceneVideoPlayer.Connect("finished", this, nameof(OnFinished));
        GetViewport().Connect("size_changed", this, nameof(OnCutsceneResized));

        // Initially adjust video player frame size
        OnCutsceneResized();

        ControlNode.Hide();
    }