Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local program1 = " Tür "
- local program2 = " AKW "
- local blank = " "
- local ext = "<>"
- local function drawGui()
- image = paintutils.loadImage("backwall.nfp")
- paintutils.drawImage(image, 1, 1)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.setCursorPos(3, 2)
- write(blank)
- term.setCursorPos(3, 3)
- write(program1)
- term.setCursorPos(3, 4)
- write(blank)
- term.setCursorPos(16, 2)
- write(blank)
- term.setCursorPos(16, 3)
- write(program2)
- term.setCursorPos(16, 4)
- write(blank)
- term.setCursorPos(25,20)
- write(ext)
- end
- drawGui()
- while true do
- local event, button, cx, cy = os.pullEvent()
- if event == "mouse_click" then
- if (cx >= 3 and cx <= 3+program1:len()) and (cy == 2 or cy == 3 or cy == 4) and button == 1 then
- shell.run("gui_tuer.lua")
- elseif (cx >= 16 and cx <= 16+program2:len()) and (cy == 2 or cy == 3 or cy == 4) and button == 1 then
- shell.run("gui_akw.lua")
- elseif (cx >= 25 and cx <= 25+ext:len()) and cy == 20 and button == 1 then
- os.reboot()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement