SteamPunk_Devil

Bar API Test

Mar 1st, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. --BarAPI Test
  2. os.loadAPI("BarAPI")
  3.  
  4. local Current = 24
  5. local Total = 54
  6. local ActiveColor = "red"
  7. local InactiveColor = "yellow"
  8. local CursorX = 1
  9. local CursorY = 1
  10. local Mon = peripheral.wrap("left")
  11.  
  12. local Percent = 25 --= BarAPI.Percentage(Current, Total)
  13.  
  14. term.clear()
  15.  
  16. BarAPI.PercentBar(CursorX ,CursorY, InactiveColor, ActiveColor, Percent, Mon)
Advertisement
Add Comment
Please, Sign In to add comment