45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
|
# Copyright 2018 Stuart Buchanan
|
||
|
# This file is part of FlightGear.
|
||
|
#
|
||
|
# FlightGear is free software: you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation, either version 2 of the License, or
|
||
|
# (at your option) any later version.
|
||
|
#
|
||
|
# FlightGear is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU General Public License for more details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU General Public License
|
||
|
# along with FlightGear. If not, see <http://www.gnu.org/licenses/>.
|
||
|
#
|
||
|
# NearestAirportsPFD Options
|
||
|
var NearestAirportsPFDOptions =
|
||
|
{
|
||
|
new : func() {
|
||
|
var obj = { parents : [NearestAirportsPFDOptions] };
|
||
|
obj.Options= {};
|
||
|
obj.loadOptions();
|
||
|
return obj;
|
||
|
},
|
||
|
|
||
|
getOption : func(type) {
|
||
|
return me.Options[type];
|
||
|
},
|
||
|
|
||
|
setOption : func(type, name, value) {
|
||
|
me.Options[type][name] = value;
|
||
|
},
|
||
|
|
||
|
loadOptions : func() {
|
||
|
me.clearOptions();
|
||
|
me.Options.APS = {};
|
||
|
},
|
||
|
|
||
|
clearOptions : func() {
|
||
|
me.Options = {};
|
||
|
},
|
||
|
|
||
|
};
|