added restart game button to pause menu
This commit is contained in:
@@ -30,6 +30,11 @@ function PauseMenu:_createRoot()
|
||||
width = 200,
|
||||
onClick = function() self.core:popState() end,
|
||||
}
|
||||
+ button {
|
||||
text = 'Restart',
|
||||
width = 200,
|
||||
onClick = function() self.core:switchState(self.core.states.game) end,
|
||||
}
|
||||
+ button {
|
||||
text = 'Quit to main menu',
|
||||
width = 200,
|
||||
|
||||
Reference in New Issue
Block a user