Atom888

XynSoft 1.0 - UI

Dec 7th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.08 KB | None | 0 0
  1. os.loadAPI("/XynSoft/System/SystemCC/xs")
  2. xs.FS(colors.gray)
  3. sleep(0.07)
  4. xs.FS(colors.lightGray)
  5. sleep(0.7)
  6. xs.FS(colors.white)
  7. lang = xs.ReadAll("/XynSoft/System/Data/lang")
  8. if lang == "en" then
  9.   e1 = "@"
  10.   e2 = "="
  11.   e3 = "#"
  12.   e4 = ">"
  13.   e5 = "<"
  14.   e6 = "Applecations"
  15.   e7 = "Dashboard"
  16.   e8 = "System"
  17.   e9 = "Configuration Center"
  18.   e10 = "User"
  19.   e11 = "Desktop"
  20.   e12 = "Blocky, your DA"
  21. elseif lang == "nl" then
  22.   e1 = "@"
  23.   e2 = "="
  24.   e3 = "#"
  25.   e4 = ">"
  26.   e5 = "<"
  27.   e6 = "Applecaties"
  28.   e7 = "Dashboard"
  29.   e8 = "Systeem"
  30.   e9 = "Configuratie Centrum"
  31.   e10 = "Gebruiker"
  32.   e11 = "Bureaublad"
  33.   e12 = "Blocky, jou DA"
  34. else
  35.   crnum = xs.ReadAll("/XynSoft/Logs/crladest")
  36.   xs.FsMake("/XynSoft/Logs/Crashreports/crashreport"..crnum + 1)
  37.   xs.GlobalWrite("/XynSoft/Logs/Crashreports/crashreport"..crnum + 1,"xsUI@@System()
  38.  [OK] UI Loaded
  39.  [OK] UI Userprepeared
  40.  [CRASH] {} Undifined Value in variable (lang)
  41.  [CRASH] Writing crashreport...")
  42.   xs.GlobalWrite("/XynSoft/Logs/crladest",crnum + 1)
  43.   shell.run("/XynSoft/System/Crash")
  44. end
  45. file = fs.open("/XynSoft/Data/UI","r")
  46. ui = file.readAll()
  47. file.close()
  48. shell.run("/XynSoft/System/Dashboard")
  49. while ui do
  50.    f1 = fs.open("/XynSoft/Data/Troubleshoot","r")
  51.    ts = f1.readAll()
  52.    f1.close()
  53.    if ts then
  54.       shell.run("/XynSoft/System/Troubleshoot")
  55.    end
  56.    file = fs.open("/XynSoft/Data/UI","r")
  57.    ui = file.readAll()
  58.    file.close()
  59.    f2 = fs.open("/XynSoft/Data/User/Color","r")
  60.    cl = fs.readAll()
  61.    f2.close()
  62.    xs.F("h",1,colors.gray)
  63.    xs.Write("@",2,1,colors.gray,cl)
  64.    if xs.ShellEventAdv("mouse_click",1,2,1,2,1) then
  65.       shell.run("/XynSoft/System/Dashboard")
  66.    end
  67.    if  xs.ShellEventAdv("mouse_click",1,48,19,48,19) then
  68.       xs.Block(48,19,48,19,true,cl)
  69.       sleep(0.1)
  70.       xs.Block(47,18,48,19,true,cl)
  71.       sleep(0.1)
  72.       xs.Block(46,17,48,19,true,cl)
  73.       xs.Write("=",47,18,cl,colors.white)
  74.       b1 = true
  75.    end
  76.    if (xs.ShellEvent("mouse_click",1,46,17,48,19) and b1) then
  77.       b1 = false
  78.       shell.run("/XynSoft/System/Assistant")
  79.    end
Add Comment
Please, Sign In to add comment