Advertisement
Guest User

errorValue

a guest
Dec 22nd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. function loadBG()
  2.   image = paintutils.loadImage("CVSI/image/ImgErrorSession")
  3.   paintutils.drawImage(image,1,1)
  4. end
  5.  
  6. function ecrire(x,y,tcol,bgcol,text)
  7.   term.setCursorPos(x,y)
  8.   term.setTextColor(tcol)
  9.   term.setBackgroundColor(bgcol)
  10.   write(text)
  11. end
  12.  
  13. function graphics()
  14.   ecrire(20,5,colours.white,colours.grey,"Connection")
  15.   ecrire(22,7,colours.white,colours.grey,"Error !")
  16.   ecrire(16,9,colours.black,colours.white,"Please be sure that")
  17.   ecrire(18,10,colours.black,colours.white,"you enter a name")
  18.   ecrire(19,11,colours.black,colours.white,"and a password !")
  19.   ecrire(14,7,colours.black,colours.white,"P")
  20.   ecrire(37,7,colours.black,colours.white,":")
  21.   paintutils.drawPixel(14,9,colours.lightGrey)
  22.   paintutils.drawPixel(14,11,colours.lightGrey)
  23.   ecrire(14,13,colours.black,colours.red,"S")
  24.   ecrire(37,13,colours.black,colours.lime,"t")
  25. end
  26.  
  27. loadBG()
  28. graphics()
  29. sleep(1)
  30. shell.run("session")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement