Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("col")
- col.setBackground(colors.black)
- local sprache = "englisch"
- function englisch()
- col.clear()
- col.msg(01,"-englisch-")
- end
- function deutsch()
- col.clear()
- col.msg(01,"-deutsch--")
- end
- englisch()
- while true do
- local event, side, X, Y = os.pullEvent("monitor_touch")
- if X >= 1 and X <=10 and Y >= 1 and Y <= 1 and side == "top" then
- if sprache == "englisch" then
- sprache = "deutsch"
- deutsch()
- else
- sprache = "englisch"
- englisch()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement