Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x,y = term.getSize()
- function drawPage()
- term.setBackgroundColour( colors.white )
- term.setTextColour( colors.black )
- term.clear()
- local troll = 1
- for i=4,y do
- if troll == 1 then
- for iz=1,x do
- paintutils.drawPixel(iz,i,colors.blue)
- end
- troll = false
- else
- if troll == 2 then
- troll = 1
- else
- troll = 2
- end
- end
- end
- term.setCursorPos(2,2)
- term.setBackgroundColour( colors.white )
- write("O")
- for i=1,y do
- paintutils.drawPixel(4,i,colors.red)
- end
- term.setBackgroundColour( colors.white )
- term.setTextColour( colors.black )
- term.setCursorPos(5,3)
- end
- local function cPrint(text)
- x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- write(text.. "\n")
- end
- drawPage()
- write("Pastebin")
- term.setCursorPos(1,6)
- cPrint("User Panel")
- term.setCursorPos(1,8)
- cPrint("Not Logged In")
- term.setCursorPos(1,9)
- cPrint("[ Login ]")
- repeat
- local event, key = os.pullEvent("key")
- until key == keys.enter
- drawPage()
- write("Pastebin")
- term.setCursorPos(1,6)
- cPrint("User Panel")
- term.setCursorPos(1,8)
- cPrint("Enter DEV Key:")
- term.setCursorPos(5,9)
- local devKey = read()
- local selection = 1
- while true do
- drawPage()
- write("Main Menu")
- term.setCursorPos(1,6)
- if selection == 1 then
- cPrint("[ Trending ]")
- else
- cPrint("Trending")
- end
- term.setCursorPos(1,7)
- if selection == 2 then
- cPrint("[ Pastes ]")
- else
- cPrint("Pastes")
- end
- local event, key = os.pullEvent("key")
- if key == keys.up then
- selection = 1
- elseif key == keys.down
- selection = 2
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment