Advertisement
DanielLaby99

titlescreen - FlashCraft

Jul 11th, 2013
1,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. shell.run("clear")
  2. function bg2()
  3. bg = paintutils.loadImage(".minecraft/texturenpacks/bg.png")
  4. paintutils.drawImage(bg, 1, 1)
  5. end
  6. bg2()
  7. header = paintutils.loadImage(".minecraft/texturenpacks/logomenu.png")
  8. paintutils.drawImage(header, 1, -3)
  9. button = paintutils.loadImage(".minecraft/texturenpacks/button.png")
  10. paintutils.drawImage(button, 1, 1)
  11. local function text()
  12. term.setBackgroundColor(colors.brown)
  13. term.setTextColor(colors.yellow)
  14. term.setCursorPos(34,7)
  15. print("ComputerCraft")
  16. term.setBackgroundColor(colors.green)
  17. term.setCursorPos(35,6)
  18. print(" ")
  19. term.setBackgroundColor(colors.brown)
  20. term.setCursorPos(33,7)
  21. print(" ")
  22. term.setBackgroundColor(colors.black)
  23. term.setTextColor(colors.lightGray)
  24. term.setCursorPos(21,10)
  25. print(" FlashCraft ")
  26. term.setTextColor(colors.red)
  27. term.setCursorPos(20,11)
  28. print("In development")
  29. term.setCursorPos(20,15)
  30. print("In development")
  31. term.setTextColor(colors.white)
  32. term.setCursorPos(21,14)
  33. print(" LabyOS ")
  34.  
  35. term.setTextColor(colors.black)
  36. term.setBackgroundColor(colors.lightGray)
  37. term.setCursorPos(28,19)
  38. write("FlashCraft by LabyStudio")
  39. term.setCursorPos(1,19)
  40. local data = fs.open(".minecraft/lastlogin", "r")
  41. if data then
  42. name = data.readLine()
  43. data.close()
  44. end
  45. write(name)
  46. end
  47. text()
  48. local function labyos()
  49. term.setCursorPos(1,1)
  50. shell.run(".minecraft/bin/labyos/menu/screen")
  51. end
  52. while true do
  53. local event, button, X, Y = os.pullEvent("mouse_click")
  54. XY = X..","..Y
  55. if XY == "23,14" and button == 1 then
  56. labyos()
  57. break
  58. end
  59. if XY == "24,14" and button == 1 then
  60. labyos()
  61. break
  62. end
  63. if XY == "25,14" and button == 1 then
  64. labyos()
  65. break
  66. end
  67. if XY == "26,14" and button == 1 then
  68. labyos()
  69. break
  70. end
  71. if XY == "27,14" and button == 1 then
  72. labyos()
  73. break
  74. end
  75. if XY == "28,14" and button == 1 then
  76. labyos()
  77. break
  78. end
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement