Advertisement
Antonderman

basalt_test.lua

Apr 19th, 2024
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. local basalt = require("basalt")
  2.  
  3. local redstoneIntegrators = peripheral.find("redstoneIntegrator")
  4.  
  5. local monitor = peripheral.find("monitor")
  6. local main = basalt.createFrame();
  7. -- main:setMonitor(monitor)
  8.  
  9. local currentStationLabel = main:addLabel()
  10. currentStationLabel:setText("You are on:")
  11. currentStationLabel:setPosition("parent.w/2 - self.w/2", 2)
  12. currentStationLabel:setFontSize(2)
  13.  
  14. local stationLabel = main:addLabel()
  15. stationLabel:setText("M-Link Factory")
  16. stationLabel:setPosition("parent.w/2 - self.w/2", 6)
  17. stationLabel:setFontSize(2)
  18.  
  19.  
  20. local progressBar = main:addProgressbar()
  21. progressBar:setPosition("parent.w/2 - self.w/2", "parent.h/2 - self.h/2")
  22. progressBar:setDirection("right")
  23. progressBar:setSize(50,3)
  24. progressBar:setProgress(50)
  25. progressBar:setProgressBar(colors.blue)
  26.  
  27. for a,b in pairs(redstoneIntegrators) do
  28.     print(a)
  29.     print(b)
  30. end
  31.  
  32. basalt.autoUpdate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement