Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ===}==========]= NewspaperReloaded v0.1b =[=========={===
- -- by MolaynoxX
- function prepareStartup()
- for i = 1, 100 do
- printFrame()
- local progress_1 = ""
- local progress_2 = ""
- for x = 1, (math.floor(i / 100) * 50) do
- if i > 25 then break end
- progress_1 = progress_1 .. "="
- end
- if (math.floor(i / 100) * 50) <= 25 then
- for x = 1, 25 - (math.floor(i / 100) * 25) do
- progress_1 = progress_1 .. " "
- end
- else
- for x = 25, (math.floor(i / 100) * 50) do
- progress_2 = progress_2 .. "="
- end
- end
- term.setCursorPos(7, 12)
- term.write("Initializing Computer Environment")
- term.setCursorPos(1, 13)
- term.write(progress_1 .. " " .. math.floor(i / 100) .. " % " .. progress_2)
- sleep(100)
- 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