From 4f6832b6580526f05433616f2a57f7371537b07a Mon Sep 17 00:00:00 2001 From: Linus Vogel Date: Mon, 8 Dec 2025 22:47:00 +0100 Subject: [PATCH] simple button behaviour --- Controller.cs | 67 ++++++++++++++++++++++---------- Main.cs => MainScript.cs | 10 ++++- Main.cs.uid => MainScript.cs.uid | 0 Projection.cs | 2 +- node_2d.tscn | 2 +- 5 files changed, 57 insertions(+), 24 deletions(-) rename Main.cs => MainScript.cs (55%) rename Main.cs.uid => MainScript.cs.uid (100%) diff --git a/Controller.cs b/Controller.cs index b663cc9..61eaf16 100644 --- a/Controller.cs +++ b/Controller.cs @@ -3,10 +3,27 @@ using System; public partial class Controller : Window { + private double _closeTime = 0; + private bool _screenReady = true; + + private Button _btnScene1; + private Button _btnScene2; + private Button _btnScene3; + private Button _btnScene4; + private Button _btnScreen; + private Button _btnClose; + // Called when the node enters the scene tree for the first time. public override void _Ready() { + this._btnScene1 = this.GetNode