summaryrefslogtreecommitdiffhomepage
path: root/config/menustart.lua
blob: 1830f0d59ebf08f26d2b42ab4849eb5cd70be68d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local menu = ...

local button = require "button"
local selector = require "selector"

local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()

return {
	button:new(menu)
		:setText("Go back")
		:setPosition(10,height-25)
		:set("active", function (self)
				self.parent:load("menumain")
			end)
	,
}