* Melchior FRANZ -- Thursday 05 June 2008: > Here's a little fun hack: > > http://members.aon.at/mfranz/morse.nas [2.9 kB]
Forgot to mention: it's off by default. To turn it on call fgfs with --prop:b:sim/morse/enabled=1 This will then be saved to autosave.xml on exit, and will be on until you turn it off with --prop:sim/morse/enabled=0 (or by Ctrl-clicking on the entry in the property browser). It works with the development version only, but it should work with older versions if you add this to the file: props.initNode = func(prop, value = 0, type = nil) { if(!isa(prop, props.Node)) prop = props.globals.getNode(prop, 1); if(prop.getType() != "NONE") value = prop.getValue(); if(type == nil) prop.setValue(value); elsif(type == "DOUBLE") prop.setDoubleValue(value); elsif(type == "INT") prop.setIntValue(value); elsif(type == "BOOL") prop.setBoolValue(value); elsif(type == "STRING") prop.setValue("" ~ value); else die("initNode(): unsupported type '" ~ type ~ "'"); return prop; } m. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users