Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- lang = 1
- function deutsch()
- mon.setBackgroundColor(colors.black)
- mon.setCursorPos(1,1)
- mon.clear()
- mon.setTextColor(colors.lime)
- mon.write(" Warp Pump ")
- mon.setTextColor(colors.white)
- mon.setCursorPos(1,4)
- mon.write("- Nach dem Kauf werden dir aller 7 Tage 1500$")
- mon.setCursorPos(3,5)
- mon.write("als Miete abgebucht. (dies passiert automatisch)")
- mon.setCursorPos(1,7)
- mon.write("- Dein Pump-GS wird gelöscht sobald du")
- mon.setCursorPos(3,8)
- mon.write("kein Geld mehr hast um es zu bezahlen.")
- mon.setCursorPos(1,10)
- mon.write("- Benötigst du dein Pump-GS nichtmehr klick")
- mon.setCursorPos(3,11)
- mon.write("einfach erneut auf das Schild.")
- mon.setTextColor(colors.lightGray)
- mon.setBackgroundColor(colors.gray)
- mon.setCursorPos(1,17)
- mon.write(" ")
- mon.setCursorPos(1,18)
- mon.write(" change language ")
- mon.setCursorPos(1,19)
- mon.write(" ")
- end
- function english()
- mon.setBackgroundColor(colors.black)
- mon.setCursorPos(1,1)
- mon.clear()
- mon.setTextColor(colors.lime)
- mon.write(" Warp Pump ")
- mon.setTextColor(colors.white)
- mon.setCursorPos(1,4)
- mon.write("- After the purchase you will be charged for")
- mon.setCursorPos(3,5)
- mon.write("1500$ every 7 days (that happens automatically).")
- mon.setCursorPos(1,7)
- mon.write("- Your pumping-plot will be deleted the moment you")
- mon.setCursorPos(3,8)
- mon.write("dont have enough money to pay for the next days.")
- mon.setCursorPos(1,10)
- mon.write("- If you dont need the pumping-plot anylonger,")
- mon.setCursorPos(3,11)
- mon.write("just click again on the sign.")
- mon.setTextColor(colors.lightGray)
- mon.setBackgroundColor(colors.gray)
- mon.setCursorPos(1,17)
- mon.write(" ")
- mon.setCursorPos(1,18)
- mon.write(" change language ")
- mon.setCursorPos(1,19)
- mon.write(" ")
- end
- while true do
- if lang == 1 then
- english()
- elseif lang == 2 then
- deutsch()
- end
- event, side, x, y = os.pullEvent()
- if event == "monitor_touch" then
- if x >= 1 and x <= 19 and y >= 17 and y <= 19 then
- if lang == 1 then
- lang = 2
- elseif lang == 2 then
- lang = 1
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment