CVS: data/Aircraft/Cub/Nasal immat.nas, NONE, 1.1 liveries.nas, NONE, 1.1
Erik Hofman <[email protected]> Mon, 12 Apr 2010 07:07:33 -0500
| Newsgroups | gmane.games.flightgear.cvc |
|---|---|
| Message-ID | <[email protected]> |
Update of /var/cvs/FlightGear-0.9/data/Aircraft/Cub/Nasal
In directory baron.flightgear.org:/tmp/cvs-serv18415/Cub/Nasal
Added Files:
immat.nas liveries.nas
Log Message:
Replace Devid Megginsons version of the j3cub with the excellent work of karla from the forum. Signed off by David.
--- NEW FILE "immat.nas" ---
# ===========================
# Immatriculation by Zakharov
# ===========================
var refresh_immat = func {
var immat = props.globals.getNode("/sim/model/immat",1).getValue();
var immat_size = size(immat);
if (immat_size != 0) immat = string.uc(immat);
for (var i = 0; i < 6; i += 1) {
if (i >= immat_size)
glyph = -1;
elsif (string.isupper(immat[i]))
glyph = immat[i] - `A`;
elsif (string.isdigit(immat[i]))
glyph = immat[i] - `0` + 26;
else
glyph = 36;
props.globals.getNode("/sim/multiplay/generic/int["~i~"]", 1).setValue(glyph+1);
}
}
var immat_dialog = gui.Dialog.new("/sim/gui/dialogs/cub/status/dialog",
"Aircraft/Cub/Dialogs/immat.xml");
setlistener("/sim/signals/fdm-initialized", func {
if (props.globals.getNode("/sim/model/immat") == nil) {
var immat = props.globals.getNode("/sim/model/immat",1);
var callsign = props.globals.getNode("/sim/multiplay/callsign").getValue();
if (callsign != "callsign") immat.setValue(callsign);
else immat.setValue("FG-FS");
}
refresh_immat();
setlistener("sim/model/immat", refresh_immat, 0);
},0);
--- NEW FILE "liveries.nas" ---
# liveries =========================================================
aircraft.livery.init("Aircraft/Cub/Models/Liveries", "sim/model/livery/name", "sim/model/liverytail/name", "sim/model/liverywing/name", "sim/model/livery/index");
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev