1
0
Fork 0
fgdata/Aircraft/Instruments-3d/FG1000/Nasal/MFDPages/TrafficMap/TrafficMapStyles.nas

34 lines
582 B
Text
Raw Normal View History

2017-11-24 23:04:46 +00:00
# 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 = {};
},
};