Atom888

XynSoft 1.0 - Desktop

Nov 16th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. os.loadAPI("/XynSoft/System/SysCC/xs")
  2. xs.Image("/XynSoft/User/Data/User/Background",1,1)
  3. function GetWidget(ln)
  4.    local file = fs.open("/XynSoft/Data/User/widgets","r")
  5.    local data = file.readLine()
  6.    return data
  7. end
  8. function Color()
  9.    local f = xs.ReadAll("/XynSoft/Data/User/Color")
  10.    return f
  11. end
  12. xs.FS(colors.white)
  13. wt = {}
  14. w1 = GetWidget(1)
  15. w2 = GetWidget(2)
  16. table.insert(w1,wt)
  17. table.insert(w2,wt)
  18. for wl in wt do
  19.    if wl == "user_icon::active" then
  20.       local l1 = paintutils.loadImage("/XynSoft/Data/User/Icon")
  21.       paintutils.drawImage(l1,7,6)
  22.       xs.Write("User Icon",7,6,colors.black,colors.white)
  23.    end
  24.    if wl == "button_panel::active" then
  25.       shell.run("/XynSoft/Data/User/WidgetLib/btnpnl")
  26.    end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment