Advertisement
Marlingaming

VladOS - Setup - Startup

Sep 27th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local w, h = term.getSize()
  2. local Page = "start"
  3. term.clear()
  4. term.setCursorPos(1,1)
  5.  
  6. function CenterText(y,text)
  7. local x = math.floor((w - string.len(text)) /2)
  8. term.setCursorPos(x,y)
  9. term.clearLine()
  10. term.write(text)
  11. end
  12.  
  13. function SlowCenterText(y,text)
  14. local x = math.floor((w - string.len(text)) /2)
  15. term.setCursorPos(x,y)
  16. term.clearLine()
  17. textutils.slowWrite(text)
  18. end
  19.  
  20. function DrawMenu()
  21. Clear()
  22. if Page == "start" then
  23.  
  24. elseif Page == "Installer" then
  25.  
  26. elseif Page == "Complete" then
  27.  
  28. end
  29. end
  30.  
  31. function Clear()
  32.  
  33. end
  34.  
  35. function Interaction()
  36.  
  37. end
  38.  
  39. DrawMenu()
  40. Interaction()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement