Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --gOS Default Launcher
- local color=colors.lightBlue;
- function redrawLauncher()
- term.setBackgroundColor(color);
- term.clear();
- if color==colors.lightBlue then color=colors.lime;
- else color=colors.lightBlue; end
- term.setCursorPos(1,1);
- term.setBackgroundColor(colors.white);
- term.clearLine();
- end
- redrawLauncher();
- while true do
- local ev={os.pullEvent()};
- if ev[1]=="mouse_click" then
- redrawLauncher();
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment