Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function screen()
- local data = fs.open(".minecraft/config/background", "r")
- if data then
- term.setBackgroundColor(tonumber(data.readAll()))
- data.close()
- end
- shell.run("clear")
- term.setBackgroundColor(colors.white)
- term.setCursorPos(2,2)
- for f=0,15 do
- for f2=0,47 do
- write(" ")
- end
- term.setBackgroundColor(colors.black)
- if f<1 then
- local data = fs.open(".minecraft/config/background", "r")
- if data then
- term.setBackgroundColor(tonumber(data.readAll()))
- data.close()
- end
- end
- print(" ")
- local data = fs.open(".minecraft/config/background", "r")
- if data then
- term.setBackgroundColor(tonumber(data.readAll()))
- data.close()
- end
- write(" ")
- term.setBackgroundColor(colors.white)
- end
- local data = fs.open(".minecraft/config/background", "r")
- if data then
- term.setBackgroundColor(tonumber(data.readAll()))
- data.close()
- end
- write(" ")
- term.setBackgroundColor(colors.black)
- for f=0,47 do
- write(" ")
- end
- end
- screen()
- term.setCursorPos(46,3)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- write("3/3")
- term.setTextColor(colors.lightGray)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(3,3)
- write("> Design ")
- write("> Name ")
- term.setTextColor(colors.gray)
- write("> Color ")
- term.setTextColor(colors.lightGray)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(3,5)
- textutils.slowWrite("Do you want a different",100)
- term.setCursorPos(3,6)
- textutils.slowWrite("color of the start bar? ",100)
- term.setCursorPos(3,16)
- term.setTextColor(colors.gray)
- term.setBackgroundColor(colors.lightGray)
- textutils.slowWrite(" ")
- term.setCursorPos(3,16)
- textutils.slowWrite(" No ")
- term.setCursorPos(44,16)
- textutils.slowWrite(" ")
- term.setCursorPos(44,16)
- textutils.slowWrite(" Yes ")
- term.setCursorPos(3,10)
- local function cont()
- screen()
- term.setCursorPos(46,3)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- write("3/3")
- term.setTextColor(colors.lightGray)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(3,3)
- write("> Design ")
- write("> Name ")
- term.setTextColor(colors.gray)
- write("> Color ")
- term.setTextColor(colors.lightGray)
- term.setCursorPos(3,5)
- write("Which start bar color do you want?")
- term.setCursorPos(3,8)
- term.setTextColor(colors.lightGray)
- term.setBackgroundColor(colors.red)
- write(" ")
- term.setBackgroundColor(colors.white)
- write(" Red :")
- term.setCursorPos(3,9)
- term.setBackgroundColor(colors.blue)
- write(" ")
- term.setBackgroundColor(colors.white)
- write(" Blue :")
- term.setCursorPos(3,10)
- term.setBackgroundColor(colors.yellow)
- write(" ")
- term.setBackgroundColor(colors.white)
- write(" Yellow :")
- term.setCursorPos(3,11)
- term.setBackgroundColor(colors.green)
- write(" ")
- term.setBackgroundColor(colors.white)
- write(" Green :")
- term.setCursorPos(3,12)
- term.setBackgroundColor(colors.brown)
- write(" ")
- term.setBackgroundColor(colors.white)
- write(" Brown :")
- term.setCursorPos(3,13)
- term.setBackgroundColor(colors.orange)
- write(" ")
- term.setBackgroundColor(colors.white)
- write(" Orange :")
- function select()
- term.setCursorPos(28,8)
- write(":")
- term.setCursorPos(28,9)
- write(":")
- term.setCursorPos(28,10)
- write(":")
- term.setCursorPos(28,11)
- write(":")
- term.setCursorPos(28,12)
- write(":")
- term.setCursorPos(28,13)
- write(":")
- term.setCursorPos(28,14)
- write(" ")
- term.setCursorPos(28,15)
- write(":")
- term.setCursorPos(30,8)
- write("Are you sure?")
- term.setCursorPos(30,9)
- write("You can change")
- term.setCursorPos(30,10)
- write("the color")
- term.setCursorPos(30,11)
- write("later too.")
- term.setCursorPos(30,16)
- term.setTextColor(colors.gray)
- term.setBackgroundColor(colors.lightGray)
- textutils.slowWrite(" ")
- term.setCursorPos(30,16)
- textutils.slowWrite(" Other ")
- term.setCursorPos(38,16)
- textutils.slowWrite(" ")
- term.setCursorPos(38,16)
- textutils.slowWrite(" Next ")
- term.setCursorPos(3,10)
- end
- local function s1()
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 30 and mouseX <= 36 and mouseY == 16 then
- cont()
- break
- end
- if mouseX >= 38 and mouseX <= 44 and mouseY == 16 then
- config = fs.open(".minecraft/config/startbar", "w")
- config.write("16384")
- config.close()
- shell.run(".minecraft/bin/labyos/setup/b")
- break
- end
- end
- end
- local function s2()
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 30 and mouseX <= 36 and mouseY == 16 then
- cont()
- break
- end
- if mouseX >= 38 and mouseX <= 44 and mouseY == 16 then
- config = fs.open(".minecraft/config/startbar", "w")
- config.write("2048")
- config.close()
- shell.run(".minecraft/bin/labyos/setup/b")
- break
- end
- end
- end
- local function s3()
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 30 and mouseX <= 36 and mouseY == 16 then
- cont()
- break
- end
- if mouseX >= 38 and mouseX <= 44 and mouseY == 16 then
- config = fs.open(".minecraft/config/startbar", "w")
- config.write("16")
- config.close()
- shell.run(".minecraft/bin/labyos/setup/b")
- break
- end
- end
- end
- local function s4()
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 30 and mouseX <= 36 and mouseY == 16 then
- cont()
- break
- end
- if mouseX >= 38 and mouseX <= 44 and mouseY == 16 then
- config = fs.open(".minecraft/config/startbar", "w")
- config.write("8192")
- config.close()
- shell.run(".minecraft/bin/labyos/setup/b")
- break
- end
- end
- end
- local function s5()
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 30 and mouseX <= 36 and mouseY == 16 then
- cont()
- break
- end
- if mouseX >= 38 and mouseX <= 44 and mouseY == 16 then
- config = fs.open(".minecraft/config/startbar", "w")
- config.write("4096")
- config.close()
- shell.run(".minecraft/bin/labyos/setup/b")
- break
- end
- end
- end
- local function s6()
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 30 and mouseX <= 36 and mouseY == 16 then
- cont()
- break
- end
- if mouseX >= 38 and mouseX <= 44 and mouseY == 16 then
- config = fs.open(".minecraft/config/startbar", "w")
- config.write("2")
- config.close()
- shell.run(".minecraft/bin/labyos/setup/b")
- break
- end
- end
- end
- local function s7()
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 30 and mouseX <= 36 and mouseY == 16 then
- cont()
- break
- end
- end
- end
- while true do
- local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
- if mouseX >= 3 and mouseX <= 16 and mouseY == 8 then
- term.setCursorPos(16,mouseY)
- print("< Selected!")
- select()
- s1()
- break
- end
- if mouseX >= 3 and mouseX <= 16 and mouseY == 9 then
- term.setCursorPos(16,mouseY)
- print("< Selected!")
- select()
- s2()
- break
- end
- if mouseX >= 3 and mouseX <= 16 and mouseY == 10 then
- term.setCursorPos(16,mouseY)
- print("< Selected!")
- select()
- s3()
- break
- end
- if mouseX >= 3 and mouseX <= 16 and mouseY == 11 then
- term.setCursorPos(16,mouseY)
- print("< Selected!")
- select()
- s4()
- break
- end
- if mouseX >= 3 and mouseX <= 16 and mouseY == 12 then
- term.setCursorPos(16,mouseY)
- print("< Selected!")
- select()
- s5()
- break
- end
- if mouseX >= 3 and mouseX <= 16 and mouseY == 13 then
- term.setCursorPos(16,mouseY)
- print("< Selected!")
- select()
- s6()
- break
- end
- end
- end
- local function exit()
- config = fs.open(".minecraft/config/startbar", "w")
- config.write("128")
- config.close()
- shell.run(".minecraft/bin/labyos/setup/b")
- end
- while true do
- local event, button, X, Y = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "3,16" and button == 1 then
- exit()
- break
- end
- if XY == "4,16" and button == 1 then
- exit()
- break
- end
- if XY == "5,16" and button == 1 then
- exit()
- break
- end
- if XY == "6,16" and button == 1 then
- exit()
- break
- end
- if XY == "7,16" and button == 1 then
- exit()
- break
- end
- if XY == "8,16" and button == 1 then
- exit()
- break
- end
- if XY == "39,16" and button == 1 then
- cont()
- break
- end
- if XY == "40,16" and button == 1 then
- cont()
- break
- end
- if XY == "41,16" and button == 1 then
- cont()
- break
- end
- if XY == "42,16" and button == 1 then
- cont()
- break
- end
- if XY == "43,16" and button == 1 then
- cont()
- break
- end
- if XY == "43,16" and button == 1 then
- cont()
- break
- end
- if XY == "44,16" and button == 1 then
- cont()
- break
- end
- if XY == "45,16" and button == 1 then
- cont()
- break
- end
- if XY == "46,16" and button == 1 then
- cont()
- break
- end
- if XY == "47,16" and button == 1 then
- cont()
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement