Advertisement
MolaynoxX

Untitled

Jul 31st, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. -- ===}==========]= NewspaperReloaded v0.1b =[=========={===
  2. -- by MolaynoxX
  3.  
  4. function prepareStartup()
  5. for i = 1, 100 do
  6. printFrame()
  7. local progress_1 = ""
  8. local progress_2 = ""
  9. for x = 1, (math.floor(i / 100) * 50) do
  10. if i > 25 then break end
  11. progress_1 = progress_1 .. "="
  12. end
  13. if (math.floor(i / 100) * 50) <= 25 then
  14. for x = 1, 25 - (math.floor(i / 100) * 25) do
  15. progress_1 = progress_1 .. " "
  16. end
  17. else
  18. for x = 25, (math.floor(i / 100) * 50) do
  19. progress_2 = progress_2 .. "="
  20. end
  21. end
  22. term.setCursorPos(7, 12)
  23. term.write("Initializing Computer Environment")
  24. term.setCursorPos(1, 13)
  25. term.write(progress_1 .. " " .. math.floor(i / 100) .. " % " .. progress_2)
  26. sleep(100)
  27. end
  28. startProgramLoop()
  29. end
  30.  
  31. function startProgramLoop()
  32.  
  33. end
  34.  
  35. function undoNPRChanges()
  36. term.restore()
  37. term.setCursorPos(1,1)
  38. end
  39.  
  40. function runNPR()
  41. mon_0 = peripheral.wrap("top")
  42. if mon_0 == nil then return end
  43. term.redirect(mon_0)
  44. if not term.isColor() then return end
  45. mon_0.setTextScale(0.9)
  46. local height, width = term.getSize()
  47. prepareStartup()
  48. end
  49.  
  50. function printFrame()
  51. term.setCursorPos(1,1)
  52. term.setTextColor(colors.red)
  53. term.write("===}==========]= NewspaperReloaded v0.1b =[=========={===")
  54. term.setCursorPos(10,24)
  55. term.write("All Rights Reserved © NewspaperReloaded")
  56. end
  57.  
  58. runNPR()
  59. undoNPRChanges()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement