Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ===}==========]= NewspaperReloaded v0.1b =[=========={===
- -- by MolaynoxX
- function prepareStartup()
- local progress_1 = ""
- local progress_2 = ""
- local loading_points = ""
- for i = 1, 100 do
- --term.clear()
- printFrame()
- term.setCursorPos(1,2)
- progress_1 = ""
- progress_2 = ""
- for x = 1, (math.floor((i / 100) * 50)) do
- if x > 25 or x < 1 then break end
- progress_1 = progress_1 .. "="
- end
- if (math.floor((i / 100) * 50)) <= 25 then
- for x = 1, 25 - (math.floor((i / 100) * 50)) do
- progress_1 = progress_1 .. " "
- end
- else
- for x = 25, (math.floor((i / 100) * 50)) do
- progress_2 = progress_2 .. "="
- end
- end
- for x = 1, i % 3 + 1 do
- loading_points = loading_points .. "."
- end
- term.setCursorPos(12, 12)
- term.write("Initializing Computer Environment" .. loading_points)
- term.setCursorPos(1, 13)
- term.write(progress_1 .. " " .. math.floor(i) .. " % " .. progress_2)
- sleep(0.1)
- end
- startProgramLoop()
- end
- function startProgramLoop()
- end
- function undoNPRChanges()
- term.restore()
- term.setCursorPos(1,1)
- end
- function runNPR()
- mon_0 = peripheral.wrap("top")
- if mon_0 == nil then return end
- term.redirect(mon_0)
- if not term.isColor() then return end
- mon_0.setTextScale(0.9)
- local height, width = term.getSize()
- prepareStartup()
- end
- function printFrame()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- term.write("===}==========]= NewspaperReloaded v0.1b =[=========={===")
- term.setCursorPos(10,24)
- term.write("All Rights Reserved NewspaperReloaded")
- end
- runNPR()
- undoNPRChanges()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement