Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- AquaOS v1.51 - by AutoLocK and SSS
- Copyright 2013
- This is the Control Screen!
- REQUIREMENTS:
- - HTTP API needs to be enabled
- - Computer Width = 51
- - Computer Height = 19
- --]]
- themeWater = { 2048,8,512,1 }
- themeFire = { 16384,16,2,32768 }
- themeCarbon = { 32768,32,1,32 }
- themeGreyScale = { 32768,1,256,1 }
- os.loadAPI("/AquaOS/Resources/APIs/QuickTils")
- os.loadAPI("/AquaOS/Resources/APIs/Settings")
- slc = 0
- slcTheme = 0
- slcUsers = 0
- slcAppearance = 0
- mFilePath = "/AquaOS/.Boot/Main"
- cFilePath = "/AquaOS/Resources/.control"
- bootPath = "/AquaOS/.Boot/"
- configPath = "/AquaOS/.cfg"
- configFile = Settings.openSettingsFile(configPath)
- bGPic = configFile.getSectionedValue("Appearance","bGPic")
- iCon1Text = configFile.getSectionedValue("Appearance","iCon1Text")
- iCon1Pic = configFile.getSectionedValue("Appearance","iCon1Pic")
- iCon1Link= configFile.getSectionedValue("Appearance","iCon1Link")
- iCon2Text = configFile.getSectionedValue("Appearance","iCon2Text")
- iCon2Pic = configFile.getSectionedValue("Appearance","iCon2Pic")
- iCon2Link = configFile.getSectionedValue("Appearance","iCon2Link")
- tBarCol = configFile.getSectionedValue("Appearance","tBarCol")
- tBarTextCol = configFile.getSectionedValue("Appearance","tBarTextCol")
- backColor = configFile.getSectionedValue("Appearance","backColor")
- textColor = configFile.getSectionedValue("Appearance","textColor")
- adminUser = configFile.getSectionedValue("Accounts","adminUser")
- adminPass = configFile.getSectionedValue("Accounts","adminPass")
- basicUser1 = configFile.getSectionedValue("Accounts","basicUser1")
- basicPass1 = configFile.getSectionedValue("Accounts","basicPass1")
- basicUser2 = configFile.getSectionedValue("Accounts","basicUser2")
- basicPass2 = configFile.getSectionedValue("Accounts","basicPass2")
- basicUser3 = configFile.getSectionedValue("Accounts","basicUser3")
- basicPass3 = configFile.getSectionedValue("Accounts","basicPass3")
- loginPass = configFile.getSectionedValue("Other","loginPass")
- showIcons = configFile.getSectionedValue("Other","showIcons")
- currentTheme = configFile.getSectionedValue("Other","currentTheme")
- currentUser = configFile.getSectionedValue("Other","currentUser")
- tBarCol = tonumber(tBarCol)
- tBarTextCol = tonumber(tBarTextCol)
- backColor = tonumber(backColor)
- textColor = tonumber(textColor)
- loginPass = tonumber(loginPass)
- function titleBar()
- QuickTils.cursor(1,1)
- QuickTils.bColor(tBarCol)
- QuickTils.color(tBarTextCol)
- term.clearLine()
- QuickTils.cursor(3,1)
- print("[BACK]")
- end
- function drawThemeMenu()
- QuickTils.bColor(tBarCol)
- QuickTils.color(tBarTextCol)
- QuickTils.cursor(12,5)
- print(" [CHANGE THEME] ")
- QuickTils.bColor(colors.gray)
- QuickTils.color(textColor)
- lY = 6
- for i=1,8 do
- QuickTils.cursor(12,lY)
- print(" ")
- lY = lY+1
- end
- QuickTils.bColor(colors.gray)
- QuickTils.cursor(19,7)
- QuickTils.color(textColor)
- print("Choose a theme!")
- QuickTils.cursor(14,9)
- QuickTils.bColor(colors.blue)
- QuickTils.color(colors.cyan)
- print(" WATER ")
- QuickTils.bColor(colors.orange)
- QuickTils.color(colors.red)
- QuickTils.cursor(28,9)
- print(" FIRE ")
- QuickTils.bColor(colors.black)
- QuickTils.cursor(14,11)
- QuickTils.color(colors.lime)
- print(" CARBON ")
- QuickTils.bColor(colors.black)
- QuickTils.cursor(28,11)
- QuickTils.color(colors.white)
- print(" GREYSCALE ")
- end
- function drawCPallet(x,y)
- QuickTils.cursor(x-1,y-1)
- QuickTils.bColor(backColor)
- print(" ")
- QuickTils.cursor(x-1,y)
- QuickTils.bColor(backColor)
- print(" ")
- QuickTils.cursor(x-1,y+1)
- QuickTils.bColor(backColor)
- print(" ")
- QuickTils.cursor(x-1,y+2)
- QuickTils.bColor(backColor)
- print(" ")
- QuickTils.cursor(x-1,y+3)
- QuickTils.bColor(backColor)
- print(" ")
- QuickTils.cursor(x-1,y+4)
- QuickTils.bColor(backColor)
- print(" ")
- QuickTils.cursor(x,y)
- QuickTils.bColor(1)
- print(" ")
- QuickTils.cursor(x+2,y)
- QuickTils.bColor(2)
- print(" ")
- QuickTils.cursor(x+4,y)
- QuickTils.bColor(4)
- print(" ")
- QuickTils.cursor(x+6,y)
- QuickTils.bColor(8)
- print(" ")
- QuickTils.cursor(x,y+1)
- QuickTils.bColor(16)
- print(" ")
- QuickTils.cursor(x+2,y+1)
- QuickTils.bColor(32)
- print(" ")
- QuickTils.cursor(x+4,y+1)
- QuickTils.bColor(64)
- print(" ")
- QuickTils.cursor(x+6,y+1)
- QuickTils.bColor(128)
- print(" ")
- QuickTils.cursor(x,y+2)
- QuickTils.bColor(256)
- print(" ")
- QuickTils.cursor(x+2,y+2)
- QuickTils.bColor(512)
- print(" ")
- QuickTils.cursor(x+4,y+2)
- QuickTils.bColor(1024)
- print(" ")
- QuickTils.cursor(x+6,y+2)
- QuickTils.bColor(2048)
- print(" ")
- QuickTils.cursor(x,y+3)
- QuickTils.bColor(4096)
- print(" ")
- QuickTils.cursor(x+2,y+3)
- QuickTils.bColor(8192)
- print(" ")
- QuickTils.cursor(x+4,y+3)
- QuickTils.bColor(16384)
- print(" ")
- QuickTils.cursor(x+6,y+3)
- QuickTils.bColor(32768)
- print(" ")
- end
- function drawCP()
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.clean(1,1)
- print(" ")
- print(" ")
- print(" AquaOS ")
- print(" System Control Panel ")
- print(" ")
- print(" ")
- print(" ")
- print(" Desktop > ")
- print(" User Accounts > ")
- print(" Appearance > ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- QuickTils.color(textColor)
- QuickTils.bColor(backColor)
- titleBar()
- end
- function drawBarDesktop()
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.clean(1,1)
- print(" ")
- print(" ")
- print(" AquaOS ")
- print(" System Control Panel ")
- print(" ")
- print(" ")
- print(" ")
- print(" Desktop > ")
- print(" User Accounts > Show Icons: < ")
- print(" Appearance > ")
- print(" Theme: < ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- QuickTils.cursor(2,8)
- QuickTils.bColor(tBarCol)
- QuickTils.color(tBarTextCol)
- print(" Desktop > ")
- QuickTils.color(textColor)
- QuickTils.bColor(backColor)
- QuickTils.cursor(35,11)
- print(currentTheme)
- QuickTils.cursor(40,9)
- print(showIcons)
- titleBar()
- end
- function drawBarUsers()
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.clean(1,1)
- print(" ")
- print(" ")
- print(" AquaOS ")
- print(" System Control Panel ")
- print(" ")
- print(" Admin ")
- print(" Username: <")
- print(" Desktop > Password: <")
- print(" User Accounts > User 1 ")
- print(" Appearance > Username: <")
- print(" Password: <")
- print(" User 2 ")
- print(" Username: <")
- print(" Password: <")
- print(" User 3 ")
- print(" Username: <")
- print(" Password: <")
- print(" ")
- QuickTils.cursor(2,9)
- QuickTils.bColor(tBarCol)
- QuickTils.color(tBarTextCol)
- print(" User Accounts > ")
- QuickTils.color(textColor)
- QuickTils.bColor(backColor)
- if currentUser == "admin" then
- QuickTils.cursor(40,7)
- print(adminUser)
- QuickTils.cursor(40,8)
- print(adminPass)
- QuickTils.cursor(40,10)
- print(basicUser1)
- QuickTils.cursor(40,11)
- print(basicPass1)
- QuickTils.cursor(40,13)
- print(basicUser2)
- QuickTils.cursor(40,14)
- print(basicPass2)
- QuickTils.cursor(40,16)
- print(basicUser3)
- QuickTils.cursor(40,17)
- print(basicPass3)
- end
- if currentUser == "user1" then
- QuickTils.cursor(40,7)
- print(adminUser)
- QuickTils.cursor(40,8)
- print(string.rep("*",#adminPass))
- QuickTils.cursor(40,10)
- print(basicUser1)
- QuickTils.cursor(40,11)
- print(basicPass1)
- QuickTils.cursor(40,13)
- print(basicUser2)
- QuickTils.cursor(40,14)
- print(string.rep("*",#basicPass2))
- QuickTils.cursor(40,16)
- print(basicUser3)
- QuickTils.cursor(40,17)
- print(string.rep("*",#basicPass3))
- elseif currentUser == "user2" then
- QuickTils.cursor(40,7)
- print(adminUser)
- QuickTils.cursor(40,8)
- print(string.rep("*",#adminPass))
- QuickTils.cursor(40,10)
- print(basicUser1)
- QuickTils.cursor(40,11)
- print(string.rep("*",#basicPass1))
- QuickTils.cursor(40,13)
- print(basicUser2)
- QuickTils.cursor(40,14)
- print(basicPass2)
- QuickTils.cursor(40,16)
- print(basicUser3)
- QuickTils.cursor(40,17)
- print(string.rep("*",#basicPass3))
- elseif currentUser == "user3" then
- QuickTils.cursor(40,7)
- print(adminUser)
- QuickTils.cursor(40,8)
- print(string.rep("*",#adminPass))
- QuickTils.cursor(40,10)
- print(basicUser1)
- QuickTils.cursor(40,11)
- print(string.rep("*",#basicPass1))
- QuickTils.cursor(40,13)
- print(basicUser2)
- QuickTils.cursor(40,14)
- print(string.rep("*",#basicPass2))
- QuickTils.cursor(40,16)
- print(basicUser3)
- QuickTils.cursor(40,17)
- print(basicPass3)
- end
- titleBar()
- end
- function drawBarAppearance()
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.clean(1,1)
- print(" ")
- print(" ")
- print(" AquaOS ")
- print(" System Control Panel ")
- print(" ")
- print(" ")
- print(" Background Image ")
- print(" Desktop > ")
- print(" User Accounts > < ")
- print(" Appearance > ")
- print(" Background Color ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- QuickTils.cursor(2,10)
- QuickTils.bColor(tBarCol)
- QuickTils.color(tBarTextCol)
- print(" Appearance > ")
- QuickTils.color(textColor)
- QuickTils.bColor(backColor)
- QuickTils.cursor(33,9)
- print(bGPic)
- drawCPallet(33,14)
- titleBar()
- end
- drawCP()
- while true do
- local event,button,X,Y = os.pullEvent()
- if event == "mouse_click" then
- if slc == 0 then
- if X>=3 and X<=8 and Y==1 and button==1 then
- return
- shell.run(mFilePath)
- elseif X==17 and Y==8 and button==1 then slc = 1
- drawBarDesktop()
- elseif X==17 and Y==9 and button==1 then slc = 2
- drawBarUsers()
- elseif X==17 and Y==10 and button==1 then slc = 3
- drawBarAppearance()
- end
- elseif slc == 1 then
- if slcTheme == 0 then
- if event == "mouse_click" then
- if X==47 and Y==9 then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(39,9)
- print(" ")
- QuickTils.cursor(39,9)
- local icoVisible = read()
- if icoVisible == "true" then
- configFile.setSectionedValue("Other","showIcons","true")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif icoVisible == "false" then
- configFile.setSectionedValue("Other","showIcons","false")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==17 and Y==10 and button==1 then slc = 3
- drawBarAppearance()
- elseif X==17 and Y==9 and button==1 then slc = 2
- drawBarUsers()
- elseif X==47 and Y==11 and button==1 then
- drawThemeMenu()
- slcTheme = 1
- elseif X>=3 and X<=8 and Y==1 and button==1 then
- return
- shell.run(mFilePath)
- end
- end
- elseif slcTheme == 1 then
- if event == "mouse_click" then
- if X>=14 and X<=23 and Y==9 and button == 1 then
- configFile.setSectionedValue("Appearance","tBarCol",themeWater[1])
- configFile.setSectionedValue("Appearance","tBarTextCol",themeWater[2])
- configFile.setSectionedValue("Appearance","backColor",themeWater[3])
- configFile.setSectionedValue("Appearance","textColor",themeWater[4])
- configFile.setSectionedValue("Other","currentTheme","Water")
- configFile.save(configPath)
- slc = 0
- slcTheme = 0
- shell.run(cFilePath)
- elseif X>=28 and X<=33 and Y==9 and button == 1 then
- configFile.setSectionedValue("Appearance","tBarCol",themeFire[1])
- configFile.setSectionedValue("Appearance","tBarTextCol",themeFire[2])
- configFile.setSectionedValue("Appearance","backColor",themeFire[3])
- configFile.setSectionedValue("Appearance","textColor",themeFire[4])
- configFile.setSectionedValue("Other","currentTheme","Fire")
- configFile.save(configPath)
- slc = 0
- slcTheme = 0
- shell.run(cFilePath)
- elseif X>=14 and X<=21 and Y==11 and button == 1 then
- configFile.setSectionedValue("Appearance","tBarCol",themeCarbon[1])
- configFile.setSectionedValue("Appearance","tBarTextCol",themeCarbon[2])
- configFile.setSectionedValue("Appearance","backColor",themeCarbon[3])
- configFile.setSectionedValue("Appearance","textColor",themeCarbon[4])
- configFile.setSectionedValue("Other","currentTheme","Carbon")
- configFile.save(configPath)
- slc = 0
- slcTheme = 0
- shell.run(cFilePath)
- elseif X>=28 and X<=38 and Y==11 and button == 1 then
- configFile.setSectionedValue("Appearance","tBarCol",themeGreyScale[1])
- configFile.setSectionedValue("Appearance","tBarTextCol",themeGreyScale[2])
- configFile.setSectionedValue("Appearance","backColor",themeGreyScale[3])
- configFile.setSectionedValue("Appearance","textColor",themeGreyScale[4])
- configFile.setSectionedValue("Other","currentTheme","Greyscale")
- configFile.save(configPath)
- slc = 0
- slcTheme = 0
- shell.run(cFilePath)
- end
- end
- end
- elseif slc == 2 then
- if event == "mouse_click" then
- if X>=3 and X<=8 and Y==1 and button==1 then
- return
- shell.run(mFilePath)
- elseif X==17 and Y==8 and button==1 then slc = 1
- drawBarDesktop()
- elseif X==17 and Y==10 and button==1 then slc = 3
- drawBarAppearance()
- elseif X==51 and Y==7 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,7)
- print(string.rep(" ",10))
- QuickTils.cursor(40,7)
- local newUserAdmin = read()
- configFile.setSectionedValue("Accounts","adminUser",newUserAdmin)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==51 and Y==8 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,8)
- print(string.rep(" ",10))
- QuickTils.cursor(40,8)
- local newPassAdmin = read()
- configFile.setSectionedValue("Accounts","adminPass",newPassAdmin)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==51 and Y==10 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,10)
- print(string.rep(" ",10))
- QuickTils.cursor(40,10)
- local newUser1 = read()
- configFile.setSectionedValue("Accounts","basicUser1",newUser1)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif currentUser == "user1" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,10)
- print(string.rep(" ",10))
- QuickTils.cursor(40,10)
- local newUser1 = read()
- configFile.setSectionedValue("Accounts","basicUser1",newUser1)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==51 and Y==11 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,11)
- print(string.rep(" ",10))
- QuickTils.cursor(40,11)
- local newPass1 = read()
- configFile.setSectionedValue("Accounts","basicPass1",newPass1)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif currentUser == "user1" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,11)
- print(string.rep(" ",10))
- QuickTils.cursor(40,11)
- local newPass1 = read()
- configFile.setSectionedValue("Accounts","basicPass1",newPass1)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==51 and Y==13 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,13)
- print(string.rep(" ",10))
- QuickTils.cursor(40,13)
- local newUser2 = read()
- configFile.setSectionedValue("Accounts","basicUser2",newUser2)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif currentUser == "user2" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,13)
- print(string.rep(" ",10))
- QuickTils.cursor(40,13)
- local newUser2 = read()
- configFile.setSectionedValue("Accounts","basicUser2",newUser2)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==51 and Y==14 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,14)
- print(string.rep(" ",10))
- QuickTils.cursor(40,14)
- local newPass2 = read()
- configFile.setSectionedValue("Accounts","basicPass2",newPass2)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif currentUser == "user2" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,14)
- print(string.rep(" ",10))
- QuickTils.cursor(40,14)
- local newPass2 = read()
- configFile.setSectionedValue("Accounts","basicPass2",newPass2)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==51 and Y==16 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,16)
- print(string.rep(" ",10))
- QuickTils.cursor(40,16)
- local newUser3 = read()
- configFile.setSectionedValue("Accounts","basicUser3",newUser3)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif currentUser == "user3" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,16)
- print(string.rep(" ",10))
- QuickTils.cursor(40,16)
- local newUser3 = read()
- configFile.setSectionedValue("Accounts","basicUser3",newUser3)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X==51 and Y==17 and button==1 then
- if currentUser == "admin" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,17)
- print(string.rep(" ",10))
- QuickTils.cursor(40,17)
- local newPass3 = read()
- configFile.setSectionedValue("Accounts","basicPass3",newPass3)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif currentUser == "user3" then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(40,17)
- print(string.rep(" ",10))
- QuickTils.cursor(40,17)
- local newPass3 = read()
- configFile.setSectionedValue("Accounts","basicPass3",newPass3)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- end
- end
- elseif slc == 3 then
- palletX, palletY = 33, 14
- if event == "mouse_click" then
- if X==47 and Y==9 and button==1 then
- QuickTils.bColor(backColor)
- QuickTils.color(textColor)
- QuickTils.cursor(33,9)
- print(" ")
- QuickTils.cursor(33,9)
- local bgImage = read()
- if fs.exists("/AquaOS/Resources/.backgrounds/"..bgImage) then
- configFile.setSectionedValue("Appearance","bGPic",bgImage)
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- elseif X>=3 and X<=8 and Y==1 and button==1 then
- return
- shell.run(mFilePath)
- elseif X==17 and Y==9 and button==1 then slc = 2
- drawBarUsers()
- elseif X==17 and Y==8 and button==1 then slc = 1
- drawBarDesktop()
- elseif X==palletX and Y==palletY and button==1 then
- configFile.setSectionedValue("Appearance","backColor","1")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+2 and Y==palletY and button==1 then
- configFile.setSectionedValue("Appearance","backColor","2")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+4 and Y==palletY and button==1 then
- configFile.setSectionedValue("Appearance","backColor","4")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+6 and Y==palletY and button==1 then
- configFile.setSectionedValue("Appearance","backColor","8")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX and Y==palletY+1 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","16")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+2 and Y==palletY+1 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","32")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+4 and Y==palletY+1 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","64")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+6 and Y==palletY+1 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","128")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX and Y==palletY+2 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","256")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+2 and Y==palletY+2 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","512")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+4 and Y==palletY+2 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","1024")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+6 and Y==palletY+2 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","2048")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX and Y==palletY+3 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","4096")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+2 and Y==palletY+3 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","8192")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+4 and Y==palletY+3 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","16384")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- elseif X==palletX+6 and Y==palletY+3 and button==1 then
- configFile.setSectionedValue("Appearance","backColor","32768")
- configFile.save(configPath)
- slc = 0
- shell.run(cFilePath)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment