Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- function bg2()
- bg = paintutils.loadImage(".minecraft/texturenpacks/bg.png")
- paintutils.drawImage(bg, 1, 1)
- end
- bg2()
- header = paintutils.loadImage(".minecraft/texturenpacks/logomenu.png")
- paintutils.drawImage(header, 1, -3)
- button = paintutils.loadImage(".minecraft/texturenpacks/button.png")
- paintutils.drawImage(button, 1, 1)
- local function text()
- term.setBackgroundColor(colors.brown)
- term.setTextColor(colors.yellow)
- term.setCursorPos(34,7)
- print("ComputerCraft")
- term.setBackgroundColor(colors.green)
- term.setCursorPos(35,6)
- print(" ")
- term.setBackgroundColor(colors.brown)
- term.setCursorPos(33,7)
- print(" ")
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.lightGray)
- term.setCursorPos(21,10)
- print(" FlashCraft ")
- term.setTextColor(colors.red)
- term.setCursorPos(20,11)
- print("In development")
- term.setCursorPos(20,15)
- print("In development")
- term.setTextColor(colors.white)
- term.setCursorPos(21,14)
- print(" LabyOS ")
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightGray)
- term.setCursorPos(28,19)
- write("FlashCraft by LabyStudio")
- term.setCursorPos(1,19)
- local data = fs.open(".minecraft/lastlogin", "r")
- if data then
- name = data.readLine()
- data.close()
- end
- write(name)
- end
- text()
- local function labyos()
- term.setCursorPos(1,1)
- shell.run(".minecraft/bin/labyos/menu/screen")
- end
- while true do
- local event, button, X, Y = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "23,14" and button == 1 then
- labyos()
- break
- end
- if XY == "24,14" and button == 1 then
- labyos()
- break
- end
- if XY == "25,14" and button == 1 then
- labyos()
- break
- end
- if XY == "26,14" and button == 1 then
- labyos()
- break
- end
- if XY == "27,14" and button == 1 then
- labyos()
- break
- end
- if XY == "28,14" and button == 1 then
- labyos()
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement