Debug shortcuts: loadgame, new game without intro
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
# A simple main menu
|
# A simple main menu
|
||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
|
func _input(event: InputEvent) -> void:
|
||||||
|
if event.is_action_pressed("debug_loadgame"):
|
||||||
|
_on_load_game_pressed()
|
||||||
|
if event.is_action_pressed("debug_no_intro"):
|
||||||
|
_on_new_without_intro_pressed()
|
||||||
|
|
||||||
# Start the game
|
# Start the game
|
||||||
func _on_new_game_pressed():
|
func _on_new_game_pressed():
|
||||||
escoria.new_game()
|
escoria.new_game()
|
||||||
@@ -41,6 +47,8 @@ func reset():
|
|||||||
$main.show()
|
$main.show()
|
||||||
|
|
||||||
func _on_new_without_intro_pressed():
|
func _on_new_without_intro_pressed():
|
||||||
|
escoria.new_game()
|
||||||
|
escoria.globals_manager.set_global("skip_intro",true)
|
||||||
escoria.globals_manager.set_global("cocina_delante_intro_played",true)
|
escoria.globals_manager.set_global("cocina_delante_intro_played",true)
|
||||||
escoria.globals_manager.set_global("cocina_intro_played",true)
|
escoria.globals_manager.set_global("cocina_intro_played",true)
|
||||||
escoria.new_game()
|
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
# A menu shown in game
|
# A menu shown in game
|
||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
|
func _input(event: InputEvent) -> void:
|
||||||
|
if event.is_action_pressed("debug_loadgame"):
|
||||||
|
_on_load_game_pressed()
|
||||||
|
if event.is_action_pressed("debug_no_intro"):
|
||||||
|
_on_new_without_intro_pressed()
|
||||||
|
|
||||||
# Make the pause menu process in pause mode and hide it just to be sure
|
# Make the pause menu process in pause mode and hide it just to be sure
|
||||||
func _ready():
|
func _ready():
|
||||||
@@ -74,3 +79,10 @@ func _on_new_game_pressed():
|
|||||||
#yield(escoria.new_game(), "completed")
|
#yield(escoria.new_game(), "completed")
|
||||||
escoria.new_game()
|
escoria.new_game()
|
||||||
escoria.main.current_scene.game.unpause_game()
|
escoria.main.current_scene.game.unpause_game()
|
||||||
|
|
||||||
|
func _on_new_without_intro_pressed():
|
||||||
|
escoria.new_game()
|
||||||
|
escoria.globals_manager.set_global("skip_intro",true)
|
||||||
|
escoria.globals_manager.set_global("cocina_delante_intro_played",true)
|
||||||
|
escoria.globals_manager.set_global("cocina_intro_played",true)
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
play_video res://gymkhana/videos/turno_cocina/intro.ogv
|
play_video res://gymkhana/videos/turno_cocina/intro.ogv
|
||||||
|
|
||||||
inventory_add turno_cocina_frontal [!turno_cocina_frontal_entregado]
|
inventory_add turno_cocina_frontal [!turno_cocina_frontal_entregado]
|
||||||
|
inventory_add turno_cocina_libro_de_cocina [skip_intro]
|
||||||
|
|
||||||
|
|
||||||
set_active turno_cocina_ajo false [!turno_cocina_eneko_catando]
|
set_active turno_cocina_ajo false [!turno_cocina_eneko_catando]
|
||||||
|
|||||||
@@ -897,7 +897,7 @@ _global_script_class_icons={
|
|||||||
"InventoryAddCommand": "",
|
"InventoryAddCommand": "",
|
||||||
"InventoryRemoveCommand": "",
|
"InventoryRemoveCommand": "",
|
||||||
"ItemCountAddCommand": "",
|
"ItemCountAddCommand": "",
|
||||||
"ItemOutline": "",
|
"ItemOutline": "res://addons/escoria-core/design/esc_item.svg",
|
||||||
"MusicEnableCommand": "",
|
"MusicEnableCommand": "",
|
||||||
"PlayLibSound": "",
|
"PlayLibSound": "",
|
||||||
"PlaySndCommand": "",
|
"PlaySndCommand": "",
|
||||||
@@ -1061,6 +1061,16 @@ ui_show_room_selector={
|
|||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":16777246,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":16777246,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
debug_loadgame={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":true,"control":true,"meta":false,"command":true,"pressed":false,"scancode":76,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
debug_no_intro={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":true,"control":true,"meta":false,"command":true,"pressed":false,"scancode":0,"physical_scancode":78,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
[locale]
|
[locale]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user