27 lines
461 B
Lua
27 lines
461 B
Lua
require 'menu.state'
|
|
require 'button'
|
|
require 'text'
|
|
|
|
local common = require 'menu.common'
|
|
|
|
local backToGameButton = Button:new(
|
|
common.buttonTopPos,
|
|
common.buttonSize,
|
|
'Continue',
|
|
nil,
|
|
nil,
|
|
function()
|
|
Menu.current_state = MenuStateIndex.hidden
|
|
end
|
|
)
|
|
|
|
local title = Text:new(
|
|
common.titlePos,
|
|
common.buttonSize,
|
|
'Paused'
|
|
)
|
|
|
|
return MenuState:new(
|
|
{ backToGameButton, common.exitToMenuButton },
|
|
{ title }
|
|
)
|