1
0
Fork 0

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
This commit is contained in:
mfranz 2006-05-09 09:39:28 +00:00
parent 95a97dbee4
commit d409d5dbbe

View file

@ -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;