Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- constants = require("shared/constants")
- monitor = peripheral.wrap("top")
- -- Draws the welcome screen
- -- Returns all buttons and their bounding box
- function print_welcome_screen()
- default_color()
- monitor.clear()
- monitor.setCursorPos(2, 1)
- monitor.write("Lotto")
- monitor.setCursorPos(1, 3)
- monitor.write("Leg 1 Diamant in das Fass und klicke")
- invert_color()
- monitor.setCursorPos(3, 8)
- monitor.write(" ")
- monitor.write(" Hier ")
- monitor.write(" ")
- end
- function default_color()
- monitor.setBackgroundColor(constants.default_bg)
- monitor.setTextColor(constants.default_fg)
- end
- function invert_color()
- local current_fg = monitor.getTextColor()
- local current_bg = monitor.getBackgroundColor()
- monitor.setBackgroundColor(current_fg)
- monitor.setTextColor(current_bg)
- end
- print_welcome_screen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement