Advertisement
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 About Screen!
- REQUIREMENTS:
- - HTTP API needs to be enabled
- - Computer Width = 51
- - Computer Height = 19
- --]]
- version = "1.51"
- os.loadAPI("/AquaOS/Resources/APIs/QuickTils")
- os.loadAPI("/AquaOS/Resources/APIs/Settings")
- 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")
- basicPass3 = 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(1,1)
- QuickTils.printCentered("About AquaOS")
- end
- function mainScreen()
- local running = true
- while running do
- QuickTils.bColor(backColor)
- QuickTils.cursor(1,4)
- QuickTils.color(tBarCol)
- QuickTils.printCentered("Welcome to AquaOS!")
- QuickTils.color(textColor)
- QuickTils.printCentered("An OS made with QuickTils!")
- QuickTils.cursor(1,7)
- QuickTils.printCentered("Thanks to NDFJay")
- QuickTils.printCentered("for his excellent design!")
- QuickTils.cursor(2,11)
- print("Version: "..version)
- QuickTils.cursor(2,12)
- print("User: "..string.upper(currentUser))
- QuickTils.cursor(2,13)
- print("Theme: "..string.upper(currentTheme))
- QuickTils.cursor(16,18)
- print("Press 'Enter' to exit!")
- titleBar()
- local event,key = os.pullEvent()
- if event == "key" then
- if key == keys.enter then
- return
- shell.run("/AquaOS/.Boot/Main")
- end
- end
- end
- end
- QuickTils.bColor(backColor)
- QuickTils.clean(1,1)
- mainScreen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement