From 06c26e43ce4a5ed862858f7a0c9d0781f9536990 Mon Sep 17 00:00:00 2001 From: tihgs Date: Thu, 19 Jun 2025 16:09:36 +0800 Subject: [PATCH] New code for main_menu level thing coming up next as the code of this thing has that in mind cheers :) --- main_menu.gd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main_menu.gd b/main_menu.gd index 663dd56..d656640 100644 --- a/main_menu.gd +++ b/main_menu.gd @@ -1,5 +1,6 @@ extends Node2D +onready var popup = $WindowDialog # Declare member variables here. Examples: # var a = 2 @@ -25,3 +26,10 @@ func _on_Start_pressed(): func _on_Back_pressed(): get_tree().change_scene("res://main_menu.tscn") + +func _on_Nope_pressed(): + popup.hide() + + +func _on_Popup_pressed(): + popup.show()