You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
823 B
31 lines
823 B
# ==============
|
|
# TACAN Label
|
|
# ==============
|
|
|
|
tacanLabel = func {
|
|
namestring = getprop("instrumentation/tacan/name");
|
|
if (namestring !=nil) {
|
|
for(i=1; i <= 15 ; i = i+1) {
|
|
if(i <= size(namestring)) {
|
|
if ( i < 10 ) {
|
|
setprop("instrumentation/tacan/idchars/char_"~chr(i+48),namestring[i-1]);
|
|
}
|
|
else {
|
|
setprop("instrumentation/tacan/idchars/char_1"~chr(i+38),namestring[i-1]);
|
|
}
|
|
}
|
|
else {
|
|
if ( i < 10 ) {
|
|
setprop("instrumentation/tacan/idchars/char_"~chr(i+48),'\ ');
|
|
}
|
|
else {
|
|
setprop("instrumentation/tacan/idchars/char_1"~chr(i+38),'\ ');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settimer(tacanLabel, 5.0);
|
|
}
|
|
|
|
|
|
settimer(tacanLabel, 1.0); |