Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Functions
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function windowRun()
- run = paintutils.loadImage("os/bioswift/windows/win")
- paintutils.drawImage(run, 1, 1)
- term.setCursorPos(1, 2)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- end
- function run()
- term.setCursorPos(18,9)
- local input = read()
- term.setCursorPos(18,9)
- windowRun()
- shell.run(input)
- term.setTextColor(colors.black)
- print"Press any key to continue"
- os.pullEvent("key")
- term.setBackgroundColor(colors.black)
- end
- function drawRun()
- window = paintutils.loadImage("os/bioswift/windows/runWin")
- paintutils.drawImage(window, 1, 1)
- term.setBackgroundColor(colors.lightGray)
- term.setTextColor(colors.black)
- end
- --Main Code
- drawRun()
- run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement