From d409d5dbbe0962894ee8298b0096b52a2ed856a7 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 9 May 2006 09:39:28 +0000 Subject: [PATCH] add "signals" for start and end of screenshot capturing. Like the other signals, this is meant for attaching listeners. The ufo will use that to hide/reveal the status line in screenshots. The following signal properties are now available: /sim/signals/exit ... set to 1 right before quitting /sim/signals/reinit ... set to 1 on re-init (Shift-Esc) /sim/signals/screenshot ... set to 1 before and to 0 after screenshot /sim/signals/click ... set to 1 after mouse clicks at terrain, signalling that the geo coords in /sim/input/click/ were updated --- src/GUI/gui_funcs.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI/gui_funcs.cxx b/src/GUI/gui_funcs.cxx index ae97e4719..af74d6292 100644 --- a/src/GUI/gui_funcs.cxx +++ b/src/GUI/gui_funcs.cxx @@ -554,6 +554,7 @@ void fgDumpSnapShot () { show_pu_cursor = true; puHideCursor(); } + fgSetBool("/sim/signals/screenshot", true); FGRenderer *renderer = globals->get_renderer(); renderer->init(); @@ -586,6 +587,7 @@ void fgDumpSnapShot () { message += "\"."; } + fgSetBool("/sim/signals/screenshot", false); mkDialog (message.c_str()); delete [] filename;