Advertisement
edoreld

Untitled

Jun 7th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. local bridge = peripheral.wrap("left")
  2. local net = peripheral.wrap("back")
  3. local c = peripheral.wrap("me_controller_0")
  4.  
  5. function cl()
  6.     term.clear()
  7.     term.setCursorPos(1,1)
  8. end
  9.  
  10. local systems = {
  11.     {
  12.     ["id"] = "me_controller_0",
  13.     ["label"] = "AE System"
  14.     }
  15. }
  16.  
  17. local width = 50
  18.  
  19. bridge.clear()
  20.  
  21. for key,value in pairs(systems) do
  22.     value["title"] = bridge.addText(5,5,value.label,0xCC0000)
  23.     value["title"].setScale(0.7)
  24. end
  25.  
  26.  
  27.  cl()
  28.  h = fs.open("methods", "w")
  29.  local methods = textutils.serialize(c.provideCell())
  30.  h.write(methods)
  31.  h.close()
  32.  
  33.  read()
  34.  
  35. local table = c.provideCell()
  36.  
  37. cl()
  38. print("Free Bytes: "..table["freeBytes"])
  39. read()
  40.  
  41. -- arguments: x, y, width, height, color, opacity
  42. -- mybox = bridge.addBox(0,0,80,40,0x0099FF,0.7)
  43.  
  44. -- arguments: x, y, text, color
  45. -- mytext = bridge.addText(10, 10, "hello!", 0xCC0000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement