local Menu = {} local Gui = require "Quickie" local Utils = require "Utils" local GUI = { Menu = require("GUI/Menu")} local Gamestates = require "Gamestates/Init" function Menu:update(dt) Gui.group{grow = "down", pos = {Utils.percentCoordinates(10, 10)}, function() for _, name in ipairs(GUI.Menu.Buttons) do if Gui.Button{text = name, size = {Utils.percentCoordinates(80, 20)}} then Gamestate.switch(Gamestates[name]) end end end} end function Menu:draw() Gui.core.draw() end return Menu