Advertisement
drpepper240

sdata mk1e

Jul 12th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.46 KB | None | 0 0
  1. --computercraft
  2. --data tables for general-purpose controller server by drPepper
  3.  
  4. --MARK-1 ship export version
  5.  
  6.  
  7. guiData = {}
  8.  
  9. guiData.REACTOR = { guiType = "SWITCH", guiName = "Reactor", controllerIds = {"SW_REACTOR"}, draw = { xPos = 1, yPos = 1, len = 9 } }
  10.  
  11. guiData.REFPT01 = { guiType = "REFERENCE_POINT", controllerIds = {"P_LEPNU"}, draw = { xPos = 12, yPos = 1, len = 18 } }
  12. guiData.TT1 = { guiType = "TARGET_TABLE", draw = { xPos = 1, yPos = 5, len = 29 }, rPGuiId = "REFPT01" }
  13. guiData.LEPNU = { guiType = "LASER_EM", guiName = "<--", controllerIds = {"P_LEPNU"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 1, yPos = 2, len = 14 } }
  14. guiData.LEPND = { guiType = "LASER_EM", guiName = "<--", controllerIds = {"P_LEPND"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 1, yPos = 3, len = 14 } }
  15. guiData.LEPSU = { guiType = "LASER_EM", guiName = "-->", controllerIds = {"P_LEPSU"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 16, yPos = 2, len = 14 } }
  16. guiData.LEPSD = { guiType = "LASER_EM", guiName = "-->", controllerIds = {"P_LEPSD"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 16, yPos = 3, len = 14 } }
  17. guiData.EB1 = { guiType = "ENGAGE_BUTTON", guiName = "EBNUT", draw = { xPos = nil, yPos = 7, len = 4} }
  18.  
  19.  
  20. guiData.M_VER = { guiType = "GUI_MODE_SWITCH", guiName = "VER", guiMode = "MODE_VERSION", draw = { xPos = nil, yPos = 1, len = 4 } }
  21. guiData.M_OVRR  = { guiType = "GUI_MODE_SWITCH", guiName = "OVRR", guiMode = "MODE_OVERRIDE", draw = { xPos = nil, yPos = 2, len = 4 } }
  22. guiData.M_UPD = { guiType = "GUI_MODE_SWITCH", guiName = "UPD", guiMode = "MODE_UPDATE", draw = { xPos = nil, yPos = 3, len = 4 } }
  23. guiData.M_GFOR = { guiType = "GUI_MODE_SWITCH", guiName = "GFOR", guiMode = "MODE_GFOR", draw = { xPos = nil, yPos = 4, len = 4 } }
  24. guiData.M_LFOR = { guiType = "GUI_MODE_SWITCH", guiName = "LFOR", guiMode = "MODE_LFOR", draw = { xPos = nil, yPos = 5, len = 4 } }
  25.  
  26. guiData.LECN = { guiType = "LASER_CAM", guiName = "CAM N", controllerIds = {"P_LECN"}, tTGuiId = "TT1", draw = { xPos = nil, yPos = 1, len = 14} }
  27.  
  28.  
  29. ---------------------------------------------------------------------------------------------------
  30. -------------------         CONTROLLER DATA EXAMPLE
  31. ---------------------------------------------------------------------------------------------------
  32.  
  33. ctrlData = {}
  34.  
  35. ctrlData.SW_REACTOR = { guiIds = {"REACTOR"} }
  36. ctrlData.P_LEPNU = { guiIds = {"LEPNU", "REFPT01"}, secondary = {"P_LESN1", "P_LESN2", "P_LESN3", "P_LESN4", "P_LESN5"}, lx = 0, ly = 0, lz = 6, allowed = { { {0, 100}, {-180, -75} }, { {0, 100}, {75, 180} }, { {0, 40}, {-180, 180} } } }
  37. ctrlData.P_LEPND = { guiIds = {"LEPND"}, secondary = {"P_LESN1", "P_LESN2", "P_LESN3", "P_LESN4", "P_LESN5"}, lx = 0, ly = 0, lz = 0, allowed = { { {80, 180}, {-180, -75} }, { {80, 180}, {75, 180} }, { {140, 180}, {-180, 180} } } }
  38. ctrlData.P_LEPSU = { guiIds = {"LEPSU"}, secondary = {"P_LESS1", "P_LESS2", "P_LESS3", "P_LESS4", "P_LESS5"},                        allowed = { { {0, 100}, {-105, 105} }, { {0, 40}, {-180, 180} } } }
  39. ctrlData.P_LEPSD = { guiIds = {"LEPSD"}, secondary = {"P_LESS1", "P_LESS2", "P_LESS3", "P_LESS4", "P_LESS5"},                        allowed = { { {80, 180}, {-105, 105} }, { {140, 180}, {-180, 180} } } }
  40. ctrlData.P_LECN = { guiIds = {"LECN"} }
  41.  
  42.  
  43.  
  44.  
  45. ---------------------------------------------------------------------------------------------------
  46. -------------------         SETTINGS EXAMPLE
  47. ---------------------------------------------------------------------------------------------------
  48.  
  49. settings = {}
  50. --
  51. settings.modemSide = "right"
  52. --
  53. settings.channelSend = 211
  54. --
  55. settings.channelReceive = 210
  56. --pastebin entry for self-update
  57. settings.pastebin = "kYHtP6bn"
  58. --pastebin entry for sdata self-update
  59. settings.pastebinSData = "MHhrxbGZ"
  60. --touchscreen monitor side
  61. settings.monitorSide = "top"
  62. --text size: 1.0 is OK
  63. settings.textSize = 0.5
  64. --time interval from last response to initiate status request in kiloticks
  65. settings.statusUpdate = 0.5
  66. --time interval from last response to mark a controller missing
  67. settings.statusTimeout = 1.0
  68. --debug level
  69. settings.debugLvl = 0
  70. --lasers
  71. settings.laserDelay = 1.0
  72.  
  73. ------------------      GUI SETTINGS EXAMPLE
  74.  
  75. --GUI default column length
  76. settings.guiColWidth = 10.0
  77. --I use right column for widgets affecting only GUI, like mode switch
  78. settings.guiRightColWidth = 6.0
  79. --background
  80. settings.guiBgColor = colors.black
  81. --text color
  82. settings.guiTextColor = colors.white
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement