CCCPaste

6d6d6177fd43c

monitor = peripheral.wrap("monitor_1")
function pos(...) return term.setCursorPos(...) end
function cls(...) return term.clear() end
function tCol(...) return term.setTextColor(...) end
function bCol(...) return term.setBackgroundColor(...) end
function box(...) return paintutils.drawFilledBox(...) end
function line(...) return paintutils.drawLine(...) end
term.redirect(monitor)
w, h = monitor.getSize()

function getSize() w,h = monitor.getSize() end
------------------------------------------------------------

function drawMenu()
    monitor.setTextScale(2)
    getSize()
    bCol(colors.blue)
    box(1,1,w,h,colors.blue)
    pos(w/2-#"MENU"/2,1)
    monitor.write("MENU")

end

function foundry()
    monitor.setTextScale(2)
        getSize()
        bCol(colors.blue)
        box(1,1,w,h,colors.blue)
        pos(w/2-#"MENU"/2,2)
        monitor.write("MENU")
end

function create()

end

function main()
    drawMenu()
    
    --[[while true do
    
        local event, button, mx, my = os.pullEvent()
        if event == "monitor_touch" then
        
            if mx >= 23 and mx <= 38 and my == 8 and button == 1 then
                             
            end
        end
    end --]]
end

--------------------------------------------------------------

main()