Advertisement
Guest User

info_tablo.lua

a guest
Jul 31st, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local afsu = require('component').afsu
  2. local term = require('term')
  3. local bridge = require('component').openperipheral_bridge
  4. local namb = tostring(afsu.getEUStored())
  5.  
  6. function addbox()
  7.   bridge.addBox(1,30,200,12,0xFFFFFF,0.2)
  8. end
  9.  
  10.  
  11. while true do
  12.   bridge.clear()
  13.   addbox()
  14.   text = (' энергии :  '..afsu.getEUStored()..'  из  '..afsu.getEUCapacity())
  15.   bridge.addText(20,32,text,0xFF0000)
  16.   os.sleep(0.1)
  17.   bridge.sync()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement