From 17e64ee8bd296cf003e5e71ff24a929b5974ad5b Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Fri, 27 May 2022 23:58:56 +0200 Subject: texty: handle quit game signal --- Scripts/Texty.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Scripts/Texty.cs') diff --git a/Scripts/Texty.cs b/Scripts/Texty.cs index 8497f29..0a72c70 100644 --- a/Scripts/Texty.cs +++ b/Scripts/Texty.cs @@ -14,6 +14,11 @@ namespace Texty.Scripts StartMenu = GetNode(nameof(StartMenu)); } + public void OnQuitGame() + { + GetTree().Notification(MainLoop.NotificationWmQuitRequest); + } + } } -- cgit v1.2.3