1
0
Fork 0

cosmetics

This commit is contained in:
mfranz 2006-02-24 15:54:45 +00:00
parent fa37af573c
commit 3e98f8353c
2 changed files with 6 additions and 6 deletions

View file

@ -72,7 +72,6 @@ INIT = func {
menuEnable("fuel-and-payload", getprop("/sim/flight-model") == "yasim"); menuEnable("fuel-and-payload", getprop("/sim/flight-model") == "yasim");
menuEnable("autopilot", props.globals.getNode("/autopilot/KAP140/locks") == nil); menuEnable("autopilot", props.globals.getNode("/autopilot/KAP140/locks") == nil);
menuEnable("tutorial-start", size(props.globals.getNode("/sim").getChildren("tutorial"))); menuEnable("tutorial-start", size(props.globals.getNode("/sim").getChildren("tutorial")));
menuEnable("tutorial-stop", 0);
var fps = props.globals.getNode("/sim/rendering/fps-display", 1); var fps = props.globals.getNode("/sim/rendering/fps-display", 1);
setlistener(fps, fpsDisplay, 1); setlistener(fps, fpsDisplay, 1);
@ -223,7 +222,7 @@ showSelTutDialog = func {
lcancel = buttonBar.addChild("button"); lcancel = buttonBar.addChild("button");
lcancel.set("legend", "Cancel"); lcancel.set("legend", "Cancel");
lcancel.set("keynum", 27); lcancel.set("key", "esc");
lcancel.set("equal", 1); lcancel.set("equal", 1);
lcancel.prop().getNode("binding[0]/command", 1).setValue("dialog-close"); lcancel.prop().getNode("binding[0]/command", 1).setValue("dialog-close");
@ -307,7 +306,7 @@ showTutorialDialog = func {
lback = buttonBar.addChild("button"); lback = buttonBar.addChild("button");
lback.set("legend", "Back"); lback.set("legend", "Back");
lback.set("equal", 1); lback.set("equal", 1);
lback.set("keynum", 27); lback.set("key", "esc");
lback.prop().getNode("binding[0]/command", 1).setValue("nasal"); lback.prop().getNode("binding[0]/command", 1).setValue("nasal");
lback.prop().getNode("binding[0]/script", 1).setValue("gui.showSelTutDialog()"); lback.prop().getNode("binding[0]/script", 1).setValue("gui.showSelTutDialog()");
lback.prop().getNode("binding[1]/command", 1).setValue("dialog-close"); lback.prop().getNode("binding[1]/command", 1).setValue("dialog-close");
@ -382,7 +381,7 @@ showWeightDialog = func {
ok = buttonBar.addChild("button"); ok = buttonBar.addChild("button");
ok.set("legend", "OK"); ok.set("legend", "OK");
ok.set("keynum", 27); ok.set("key", "esc");
ok.prop().getNode("binding[0]/command", 1).setValue("dialog-apply"); ok.prop().getNode("binding[0]/command", 1).setValue("dialog-apply");
ok.prop().getNode("binding[1]/command", 1).setValue("dialog-close"); ok.prop().getNode("binding[1]/command", 1).setValue("dialog-close");
@ -564,7 +563,7 @@ showHelpDialog = func {
w.set("pref-height", 16); w.set("pref-height", 16);
w.set("legend", ""); w.set("legend", "");
w.set("default", 1); w.set("default", 1);
w.set("keynum", 27); w.set("key", "esc");
w.prop().getNode("binding[0]/command", 1).setValue("nasal"); w.prop().getNode("binding[0]/command", 1).setValue("nasal");
w.prop().getNode("binding[0]/script", 1).setValue("delete(gui.dialog, \"" ~ name ~ "\")"); w.prop().getNode("binding[0]/script", 1).setValue("delete(gui.dialog, \"" ~ name ~ "\")");
w.prop().getNode("binding[1]/command", 1).setValue("dialog-close"); w.prop().getNode("binding[1]/command", 1).setValue("dialog-close");
@ -677,7 +676,7 @@ basic_keys = {
{ name : "Ctrl-X", desc : "reset zoom to default" }, { name : "Ctrl-X", desc : "reset zoom to default" },
{ name : "z/Z", desc : "increase/decrease visibility" }, { name : "z/Z", desc : "increase/decrease visibility" },
{ name : "'", desc : "display ATC setting dialog" }, { name : "'", desc : "display ATC setting dialog" },
{ name : "+", desc : "let ATC repeat last message" }, { name : "+", desc : "let ATC/instructor repeat last message" },
{ name : "F1", desc : "load flight" }, { name : "F1", desc : "load flight" },
{ name : "F3", desc : "capture screen" }, { name : "F3", desc : "capture screen" },
{ name : "F10", desc : "toggle menubar" }, { name : "F10", desc : "toggle menubar" },

View file

@ -467,6 +467,7 @@
<item> <item>
<label>End Tutorial</label> <label>End Tutorial</label>
<name>tutorial-stop</name> <name>tutorial-stop</name>
<enabled>false</enabled>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>tutorial.stopTutorial()</script> <script>tutorial.stopTutorial()</script>