Add quest debug overlay
This commit is contained in:
parent
bdc1fdf591
commit
252f9a96dd
16
game/core/debug_overlay.gd
Normal file
16
game/core/debug_overlay.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
extends CanvasLayer
|
||||||
|
|
||||||
|
func _unhandled_input(event: InputEvent) -> void:
|
||||||
|
if event is InputEventKey and event.pressed and not event.echo:
|
||||||
|
match event.keycode:
|
||||||
|
KEY_F1:
|
||||||
|
FlagManager.debug_print_all()
|
||||||
|
KEY_F2:
|
||||||
|
QuestManager.debug_print_all()
|
||||||
|
KEY_F3:
|
||||||
|
# Test rapide : donne 3 badges
|
||||||
|
FlagManager.set_flag(&"badges_gagnes", 3)
|
||||||
|
print("3 badges ajoutés !")
|
||||||
|
KEY_F4:
|
||||||
|
# Test rapide : force la rencontre du Prof
|
||||||
|
FlagManager.set_flag(&"prof_rencontre", true)
|
||||||
1
game/core/debug_overlay.gd.uid
Normal file
1
game/core/debug_overlay.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://cniwr4iowd8we
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://7hglx6nfu063" path="res://addons/controller_icons/objects/ControllerIconTexture.gd" id="1_4xhdt"]
|
[ext_resource type="Script" uid="uid://7hglx6nfu063" path="res://addons/controller_icons/objects/ControllerIconTexture.gd" id="1_4xhdt"]
|
||||||
[ext_resource type="Script" uid="uid://b3ddqgiawrh5c" path="res://game/ui/hud/team_hud.gd" id="2_lkjh2"]
|
[ext_resource type="Script" uid="uid://b3ddqgiawrh5c" path="res://game/ui/hud/team_hud.gd" id="2_lkjh2"]
|
||||||
|
[ext_resource type="Script" uid="uid://cniwr4iowd8we" path="res://game/core/debug_overlay.gd" id="3_euh0j"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_uyiaf"]
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_uyiaf"]
|
||||||
|
|
||||||
|
|
@ -92,3 +93,6 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
script = ExtResource("2_lkjh2")
|
script = ExtResource("2_lkjh2")
|
||||||
|
|
||||||
|
[node name="DebugOverlay" type="CanvasLayer" parent="." unique_id=1710349785]
|
||||||
|
script = ExtResource("3_euh0j")
|
||||||
|
|
|
||||||
|
|
@ -166,6 +166,11 @@ player_aim_switch_target={
|
||||||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
|
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
debug_quests={
|
||||||
|
"deadzone": 0.2,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":67,"key_label":0,"unicode":99,"location":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
[physics]
|
[physics]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue