modification de la scène de cockpit et ajout de lien entre les scènes
This commit is contained in:
@@ -20,6 +20,9 @@ func set_pause(p):
|
||||
elif SceneManager.actual_scene.mouse_captured:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
|
||||
if p:
|
||||
%GiveUp.visible = GameInfo.game_data and GameInfo.game_data.current_region_data
|
||||
|
||||
if not p:
|
||||
GameInfo.save_settings()
|
||||
|
||||
@@ -41,3 +44,8 @@ func _on_settings_pressed():
|
||||
|
||||
func _on_controls_pressed():
|
||||
%Controls.open_controls()
|
||||
|
||||
func _on_give_up_pressed():
|
||||
if GameInfo.game_data:
|
||||
SceneManager.change_to_scene_id('ASTRA')
|
||||
GameInfo.game_data.give_up()
|
||||
|
||||
Reference in New Issue
Block a user