Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DbOption = require('Options.DbOption')
- local i18n = require('i18n')
- local _ = i18n.ptranslate
- local oms = require('optionsModsScripts')
- -- find the relative location of optionsDb.lua
- function script_path()
- -- remember to strip off the starting @
- local luafileloc = debug.getinfo(2, "S").source:sub(2)
- local ti, tj = string.find(luafileloc, "Options")
- local temploc = string.sub(luafileloc, 1, ti-1)
- return temploc
- end
- local relativeloc = script_path()
- modulelocation = lfs.currentdir().."\\"..relativeloc
- local tblCPLocalList = oms.getTblCPLocalList(modulelocation)
- return {
- abDetent = DbOption.new():setValue(0):combo({DbOption.Item(_('Always off')):Value(0),
- DbOption.Item(_('Always on')):Value(1),}),
- hmdEye = DbOption.new():setValue(1):combo({DbOption.Item(_('Right eye')):Value(1),
- DbOption.Item(_('Left eye')):Value(0),
- DbOption.Item(_('Both eyes')):Value(2),}),
- CPLocalList = tblCPLocalList["Cockpit_F-16C"],
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement