print version in the main menu
This commit is contained in:
parent
27a0003579
commit
a47e14ffca
1 changed files with 13 additions and 1 deletions
|
|
@ -1,9 +1,14 @@
|
|||
require 'menu.state'
|
||||
require 'button'
|
||||
require 'text'
|
||||
require 'point'
|
||||
require 'config'
|
||||
|
||||
local common = require 'menu.common'
|
||||
|
||||
local versionPos = Point:new( 0, 468 )
|
||||
local versionSize = Point:new( 800 )
|
||||
|
||||
local startButton = Button:new(
|
||||
common.buttonTopPos,
|
||||
common.buttonSize,
|
||||
|
|
@ -34,7 +39,14 @@ local title = Text:new(
|
|||
'Lines'
|
||||
)
|
||||
|
||||
local versionText = Text:new(
|
||||
versionPos,
|
||||
versionSize,
|
||||
string.format("Version %s", VERSION),
|
||||
'left'
|
||||
)
|
||||
|
||||
return MenuState:new(
|
||||
{ startButton, exitGameButton },
|
||||
{ title }
|
||||
{ title, versionText }
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue