Posted 07 July 2013 - 09:12 AM
Welll the gui doesn't work
build = "4.2"
desktop = "gnome"
screenX, screenY = term.getSize()
print("Setting up the API")
sleep(2)
while true do
term.clear()
term.setBackgroundColor(colors.cyan)
term.clear()
paintutils.drawLine(1, 1, screenX, 1, colors.black)
term.setCursorPos(2, 1)
term.setTextColor(colors.white)
print("(Activities)")
term.setCursorPos(42, 1)
term.setTextColor(colors.white)
print("(Shutdown)")
local event, button, X, Y = os.pullEvent("mouse_click")
if event == "mouse_click" then
if X >= 2 and X <= 10 and Y == 1 and button == 1 then
shell.run("active")
elseif X >= 42 and X <= 20 and Y == 1 and button == 1 then
break
end
end
end
well.