Show a message when pausing the sim.
This commit is contained in:
parent
ab939ff772
commit
c487188bfc
1 changed files with 10 additions and 0 deletions
|
@ -235,6 +235,16 @@ do_pause (const SGPropertyNode * arg)
|
||||||
fgSetBool("/sim/freeze/master",!paused);
|
fgSetBool("/sim/freeze/master",!paused);
|
||||||
fgSetBool("/sim/freeze/clock",!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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue