Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menu = paintutils.loadImage('photoMenu')
- while true do
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.blue)
- term.clear()
- paintutils.drawImage(menu, 2, 1)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.setCursorPos(1, 1)
- write('<--')
- term.setCursorPos(6, 1)
- write('TDE Desktop')
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.blue)
- term.setCursorPos(38, 7)
- term.setBackgroundColor(colors.yellow)
- term.setTextColor(colors.gray)
- write('[][][]')
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.lightGray)
- term.setCursorPos(28, 8)
- write('TimaOS')
- term.setCursorPos(9, 16)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- write('View Photos')
- term.setCursorPos(29, 16)
- write('Take photo')
- term.setCursorPos(3, 18)
- write("need ")
- term.setBackgroundColor(colors.lightGray)
- write("Computronics mod camera in back")
- local event, button, X, Y = os.pullEventRaw()
- if event == 'mouse_click' then
- if X >= 5 and X <= 22 and Y >= 5 and Y <= 14 then
- shell.run('tde-view')
- elseif X >= 26 and X <= 44 and Y >= 5 and Y <= 14 then
- term.setBackgroundColor(colors.black)
- shell.run('tde-photo')
- elseif X >= 1 and X <= 3 and Y == 1 then
- break
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement