Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2019
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. local DbOption          = require('Options.DbOption')
  2.  
  3. local i18n = require('i18n')
  4. local _ = i18n.ptranslate
  5.  
  6. local oms               = require('optionsModsScripts')
  7.  
  8. -- find the relative location of optionsDb.lua
  9. function script_path()
  10.     -- remember to strip off the starting @
  11.     local luafileloc = debug.getinfo(2, "S").source:sub(2)
  12.     local ti, tj = string.find(luafileloc, "Options")
  13.     local temploc = string.sub(luafileloc, 1, ti-1)
  14.     return temploc
  15. end
  16.  
  17. local relativeloc = script_path()
  18. modulelocation = lfs.currentdir().."\\"..relativeloc
  19.  
  20. local tblCPLocalList    = oms.getTblCPLocalList(modulelocation)
  21.  
  22. return {
  23.     abDetent                = DbOption.new():setValue(0):combo({DbOption.Item(_('Always off')):Value(0),
  24.                                                                 DbOption.Item(_('Always on')):Value(1),}),
  25.     hmdEye                  = DbOption.new():setValue(1):combo({DbOption.Item(_('Right eye')):Value(1),
  26.                                                                 DbOption.Item(_('Left eye')):Value(0),
  27.                                                                 DbOption.Item(_('Both eyes')):Value(2),}),
  28.     CPLocalList             = tblCPLocalList["Cockpit_F-16C"],
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement