menu stuff
This commit is contained in:
parent
89df5eaca0
commit
3ad1b32492
6 changed files with 90 additions and 55 deletions
|
@ -9,12 +9,16 @@ onready var lore_container = $LoreContainer
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
|
||||
get_tree().paused = true
|
||||
$Body/Resume.grab_focus()
|
||||
if Game.marathon_mode:
|
||||
$Body/Restart.disabled = true
|
||||
$Body/Restart.focus_mode = Control.FOCUS_NONE
|
||||
$"%GreyedRestart".visible = true
|
||||
$Body.text = "RESUME\nRESTART\nOPTIONS\nQUIT GAME"
|
||||
else:
|
||||
$Body.text = "RESUME\nRESTART\nOPTIONS\nEXIT LEVEL"
|
||||
#Random lore
|
||||
if lore_entries != null and not lore_entries.empty():
|
||||
current_lore = randi() % lore_entries.size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue