Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part1 = [[
- local text = [[
- local x,y = term.getSize()
- function navBar()
- term.setCursorPos(1,y-1)
- write( string.rep( "-", x ) )
- term.setCursorPos(1,y)
- local pages = {}
- function addPage( name, link )
- pages[#pages+1] = {
- ["Name"] = name,
- ["Link"] = link,
- }
- end
- --Add your pages here
- addPage("Home","nexus/index")
- addPage("Contact Us","nexus/contact")
- addPage("Games","nexus/games")
- --End
- if newLink then
- local maxPage = #pages
- for i=1,maxPage do
- local page = pages[i]
- newLink( " " ..page["Name"].. " ", page["Link"] )
- if i ~= maxPage then
- write("|")
- end
- end
- else
- if term.isColor() then
- term.setTextColour( colors.red )
- end
- print("NavBar v1.1 not supported in this version of REX.")
- end
- end
- navBar()
- ]]
- write("Enter the path to the page: ")
- file = fs.open( read(), "w" )
- file.write( text )
- file.close()
- ]]
- print("Downloading...")
- print("Getting part1...")
- fs.delete("navBar")
- fs.makeDir("navBar")
- fs.open("navBar/DONTDELETE","w").close()
- file = fs.open("navBar/install")
- file.write( part1 )
- file.close()
- print("Done!")
- print("In rexHost, type install navBar")
Advertisement
Add Comment
Please, Sign In to add comment