1
0
Fork 0
fgdata/Aircraft/Instruments-3d/FG1000/Nasal/MFDPages/TrafficMap/TrafficMapStyles.nas
2018-02-05 19:33:28 +00:00

33 lines
582 B
Text

# Traffic Map Styles
var TrafficMapStyles =
{
new : func() {
var obj = { parents : [ TrafficMapStyles ]};
obj.Styles = {};
obj.loadStyles();
return obj;
},
getStyle : func(type) {
return me.Styles[type];
},
setStyle : func(type, name, value) {
me.Styles[type][name] = value;
},
loadStyles : func() {
me. clearStyles();
me.Styles.TFC = {};
me.Styles.TFC.scale_factor = 1.0; # 40% (applied to whole group)
me.Styles.APS = {};
me.Styles.APS.scale_factor = 0.25;
},
clearStyles : func() {
me.Styles = {};
},
};