Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --computercraft
- --data tables for general-purpose controller server by drPepper
- --MARK-1 ship export version
- guiData = {}
- guiData.REACTOR = { guiType = "SWITCH", guiName = "Reactor", controllerIds = {"SW_REACTOR"}, draw = { xPos = 1, yPos = 1, len = 9 } }
- guiData.REFPT01 = { guiType = "REFERENCE_POINT", controllerIds = {"P_LEPNU"}, draw = { xPos = 12, yPos = 1, len = 18 } }
- guiData.TT1 = { guiType = "TARGET_TABLE", draw = { xPos = 1, yPos = 5, len = 29 }, rPGuiId = "REFPT01" }
- guiData.LEPNU = { guiType = "LASER_EM", guiName = "<--", controllerIds = {"P_LEPNU"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 1, yPos = 2, len = 14 } }
- guiData.LEPND = { guiType = "LASER_EM", guiName = "<--", controllerIds = {"P_LEPND"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 1, yPos = 3, len = 14 } }
- guiData.LEPSU = { guiType = "LASER_EM", guiName = "-->", controllerIds = {"P_LEPSU"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 16, yPos = 2, len = 14 } }
- guiData.LEPSD = { guiType = "LASER_EM", guiName = "-->", controllerIds = {"P_LEPSD"}, rPGuiId = "REFPT01", tTGuiId = "TT1", eBGuId="EB1", draw = { xPos = 16, yPos = 3, len = 14 } }
- guiData.EB1 = { guiType = "ENGAGE_BUTTON", guiName = "EBNUT", draw = { xPos = nil, yPos = 7, len = 4} }
- guiData.M_VER = { guiType = "GUI_MODE_SWITCH", guiName = "VER", guiMode = "MODE_VERSION", draw = { xPos = nil, yPos = 1, len = 4 } }
- guiData.M_OVRR = { guiType = "GUI_MODE_SWITCH", guiName = "OVRR", guiMode = "MODE_OVERRIDE", draw = { xPos = nil, yPos = 2, len = 4 } }
- guiData.M_UPD = { guiType = "GUI_MODE_SWITCH", guiName = "UPD", guiMode = "MODE_UPDATE", draw = { xPos = nil, yPos = 3, len = 4 } }
- guiData.M_GFOR = { guiType = "GUI_MODE_SWITCH", guiName = "GFOR", guiMode = "MODE_GFOR", draw = { xPos = nil, yPos = 4, len = 4 } }
- guiData.M_LFOR = { guiType = "GUI_MODE_SWITCH", guiName = "LFOR", guiMode = "MODE_LFOR", draw = { xPos = nil, yPos = 5, len = 4 } }
- guiData.LECN = { guiType = "LASER_CAM", guiName = "CAM N", controllerIds = {"P_LECN"}, tTGuiId = "TT1", draw = { xPos = nil, yPos = 1, len = 14} }
- ---------------------------------------------------------------------------------------------------
- ------------------- CONTROLLER DATA EXAMPLE
- ---------------------------------------------------------------------------------------------------
- ctrlData = {}
- ctrlData.SW_REACTOR = { guiIds = {"REACTOR"} }
- 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} } } }
- 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} } } }
- 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} } } }
- 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} } } }
- ctrlData.P_LECN = { guiIds = {"LECN"} }
- ---------------------------------------------------------------------------------------------------
- ------------------- SETTINGS EXAMPLE
- ---------------------------------------------------------------------------------------------------
- settings = {}
- --
- settings.modemSide = "right"
- --
- settings.channelSend = 211
- --
- settings.channelReceive = 210
- --pastebin entry for self-update
- settings.pastebin = "kYHtP6bn"
- --pastebin entry for sdata self-update
- settings.pastebinSData = "MHhrxbGZ"
- --touchscreen monitor side
- settings.monitorSide = "top"
- --text size: 1.0 is OK
- settings.textSize = 0.5
- --time interval from last response to initiate status request in kiloticks
- settings.statusUpdate = 0.5
- --time interval from last response to mark a controller missing
- settings.statusTimeout = 1.0
- --debug level
- settings.debugLvl = 0
- --lasers
- settings.laserDelay = 1.0
- ------------------ GUI SETTINGS EXAMPLE
- --GUI default column length
- settings.guiColWidth = 10.0
- --I use right column for widgets affecting only GUI, like mode switch
- settings.guiRightColWidth = 6.0
- --background
- settings.guiBgColor = colors.black
- --text color
- settings.guiTextColor = colors.white
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement