From 7aa55be82c011b0f41f8335f5edae891ef4c5c22 Mon Sep 17 00:00:00 2001 From: Nikos Barkas Date: Mon, 9 Aug 2010 15:24:21 +0000 Subject: [PATCH] The guiScreenWillChange event is now sent also before switching to the system data screen (F7). git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3734 127b21dd-08f5-0310-b4b7-95ae10353056 --- src/Core/Entities/PlayerEntityControls.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Core/Entities/PlayerEntityControls.m b/src/Core/Entities/PlayerEntityControls.m index 7ad15717..31930dcc 100644 --- a/src/Core/Entities/PlayerEntityControls.m +++ b/src/Core/Entities/PlayerEntityControls.m @@ -2926,6 +2926,7 @@ static NSTimeInterval time_last_frame; { if (gui_screen != GUI_SCREEN_SYSTEM_DATA) { + [self doScriptEvent:@"guiScreenWillChange" withArgument:GUIScreenIDToString(GUI_SCREEN_SYSTEM_DATA) andArgument:GUIScreenIDToString(gui_screen)]; [self setGuiToSystemDataScreen]; } }