Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x, y = term.getSize()
- local m = peripheral.wrap("bottom")
- local bgColor = colours.black
- local txtColor = colours.white
- local txt = ""
- local txtSize = 1
- local selection = 1
- term.clear()
- function x( num )
- if num == selection then
- write("[x] ")
- else
- write("[ ] ")
- end
- end
- function draw()
- term.setCursorPos(1,1)
- term.clear()
- m.setTextScale(txtSize)
- m.setTextColor(txtColor)
- m.setBackgroundColor(bgColor)
- m.clear()
- m.setCursorPos(1,1)
- m.write(txt)
- x(1)
- print("Set Text")
- x(2)
- print("Set Size")
- x(3)
- print("Set Background Color")
- x(4)
- print("Set Text Color")
- x(5)
- print("set YOUR MOM LOLLOLOLOLOLOLO")
- end
- while true do
- draw()
- local event, key = os.pullEvent("key")
- if key == keys.up then
- if selection ~= 1 then
- selection = selection -1
- end
- elseif key == keys.down then
- if selection ~= 5 then
- selection = selection +1
- end
- elseif key == keys.enter then
- if selection == 1 then
- term.clear()
- term.setCursorPos(1,1)
- write("Enter yo text: ")
- txt = read()
- write("DAT TEXT IS OVAH ")
- textutils.slowPrint("900000000!!!!!")
- sleep(1)
- elseif selection == 2 then
- term.clear()
- term.setCursorPos(1,1)
- print("Pick a number from 1-5!")
- size = tonumber(read())
- if size >= 1 and size <= 5 then
- txtSize = size
- print("dat number is gay... oh wel")
- else
- print("YOUR NUMBER IS INVALIDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD")
- end
- sleep(1)
- elseif selection == 3 then
- term.clear()
- term.setCursorPos(1,1)
- write("Enter a color: ")
- color = colours[ read() ]
- if color == nil then
- print("INVALID COLOR!!!!!!!!!!!!!!!!!!!!!!!!!")
- else
- bgColor = color
- print("Color set!")
- end
- sleep(1)
- elseif selection == 4 then
- term.clear()
- term.setCursorPos(1,1)
- write("Enter a color: ")
- color = colours[ read() ]
- if color == nil then
- print("INVALID COLOR!!!!!!!!!!!!!!!!!!!!!!!!!")
- else
- txtColor = color
- print("Color set!")
- end
- sleep(1)
- elseif selection == 5 then
- for i = 1,18 do
- textutils.slowPrint("YOURMOM!!!!!!!!!!!!!!!!!!!")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment