2017-11-21 02:04:19 +00:00
|
|
|
# A3XX ND Canvas
|
|
|
|
# Joshua Davidson (it0uchpods)
|
|
|
|
# Based on work by artix
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
# Copyright (c) Joshua Davidson (it0uchpods) #
|
|
|
|
##############################################
|
2017-06-19 00:14:41 +00:00
|
|
|
|
|
|
|
var get_local_path = func(file){
|
2017-11-20 22:03:07 +00:00
|
|
|
var aircraft_dir = split("/", getprop("/sim/aircraft-dir"))[-1];
|
2017-06-19 00:14:41 +00:00
|
|
|
return "Aircraft/" ~ aircraft_dir ~ "/Models/Instruments/ND/canvas/"~ file;
|
|
|
|
};
|
|
|
|
|
2017-11-20 22:03:07 +00:00
|
|
|
var version = getprop("sim/version/flightgear");
|
|
|
|
var v = split(".", version);
|
|
|
|
version = num(v[0]~"."~v[1]);
|
2017-06-19 00:14:41 +00:00
|
|
|
|
|
|
|
var SymbolLayer = canvas.SymbolLayer;
|
|
|
|
var SingleSymbolLayer = canvas.SingleSymbolLayer;
|
|
|
|
var MultiSymbolLayer = canvas.MultiSymbolLayer;
|
|
|
|
var NavaidSymbolLayer = canvas.NavaidSymbolLayer;
|
|
|
|
var Symbol = canvas.Symbol;
|
|
|
|
var Group = canvas.Group;
|
|
|
|
var Path = canvas.Path;
|
|
|
|
var DotSym = canvas.DotSym;
|
|
|
|
var Map = canvas.Map;
|
|
|
|
var SVGSymbol = canvas.SVGSymbol;
|
|
|
|
var LineSymbol = canvas.LineSymbol;
|
|
|
|
var StyleableCacheable = canvas.StyleableCacheable;
|
|
|
|
var SymbolCache32x32 = canvas.SymbolCache32x32;
|
|
|
|
var SymbolCache = canvas.SymbolCache;
|
|
|
|
var Text = canvas.Text;
|
|
|
|
|
2017-11-20 22:03:07 +00:00
|
|
|
io.include("ND_config.nas");
|
|
|
|
io.include("framework/canvas.nas");
|
|
|
|
io.include("framework/navdisplay.nas");
|
|
|
|
io.include("framework/MapDrivers.nas");
|
|
|
|
io.include("loaders.nas");
|
|
|
|
io.include("helpers.nas");
|
|
|
|
io.include("style.nas");
|