From 5bf0ebf274fef28811ab952338bd261bd1dd0fa8 Mon Sep 17 00:00:00 2001
From: b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>
Date: Thu, 3 May 2007 00:19:52 +0000
Subject: added "popups" to ask for confirmation when leaving party mode or
 game or to display messages (like minor errors) still ugly, needs some theme
 work

git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@157 b956fd51-792f-4845-bead-9b4dfca2ff2c
---
 Game/Code/Screens/UScreenMain.pas | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'Game/Code/Screens/UScreenMain.pas')

diff --git a/Game/Code/Screens/UScreenMain.pas b/Game/Code/Screens/UScreenMain.pas
index 78c98218..f339fa04 100644
--- a/Game/Code/Screens/UScreenMain.pas
+++ b/Game/Code/Screens/UScreenMain.pas
@@ -55,7 +55,9 @@ begin
 
       SDLK_ESCAPE :
         begin
-          Result := False;
+          //popup hack
+          CheckFadeTo(NIL,'MSG_QUIT_USDX');
+//          Result := False;
         end;
 
       SDLK_C:
@@ -116,7 +118,7 @@ begin
             Music.PlayStart;
             FadeTo(@ScreenStatMain);
           end;
-          
+
           //Editor
           if Interaction = 3 then begin
             Music.PlayStart;
@@ -131,7 +133,9 @@ begin
 
           //Exit
           if Interaction = 5 then begin
-            Result := false;
+            //popup hack
+            CheckFadeTo(NIL,'MSG_QUIT_USDX');
+//            Result := false;
           end;
         end;
       // Up and Down could be done at the same time,
-- 
cgit v1.2.3