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(); }
public override void _Ready() { CutsceneVideoPlayer = GetNode <VideoPlayer>("Control/VideoPlayer"); ControlNode = GetNode <Control>("Control"); FrameSize = CutsceneVideoPlayer.RectSize; CutsceneVideoPlayer.Connect("finished", this, nameof(OnFinished)); ControlNode.Hide(); }
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(); }
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(); }