1
0
Fork 0

Show a message when pausing the sim.

This commit is contained in:
James Turner 2013-03-16 12:44:43 +00:00
parent ab939ff772
commit c487188bfc

View file

@ -235,6 +235,16 @@ do_pause (const SGPropertyNode * arg)
fgSetBool("/sim/freeze/master",!paused);
fgSetBool("/sim/freeze/clock",!paused);
}
SGPropertyNode_ptr args(new SGPropertyNode);
args->setStringValue("id", "sim-pause");
if (!paused) {
args->setStringValue("label", "Simulation is paused");
globals->get_commands()->execute("show-message", args);
} else {
globals->get_commands()->execute("clear-message", args);
}
return true;
}