From 0e8c7ccea467191999d66c614ff98200bea5d0e8 Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Mon, 8 Jan 2024 00:24:05 +0100 Subject: [PATCH] Finish History open/close methods --- .../DefaultLayoutParts/Layer_History/history_layer.gd | 1 + addons/dialogic/Modules/History/subsystem_history.gd | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd b/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd index 86b371656..b524cd014 100644 --- a/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd +++ b/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd @@ -39,6 +39,7 @@ func _ready() -> void: if Engine.is_editor_hint(): return Dialogic.History.open_requested.connect(_on_show_history_pressed) + Dialogic.History.close_requested.connect(_on_hide_history_pressed) func _apply_export_overrides() -> void: diff --git a/addons/dialogic/Modules/History/subsystem_history.gd b/addons/dialogic/Modules/History/subsystem_history.gd index dd84094f0..e1dc76ef4 100644 --- a/addons/dialogic/Modules/History/subsystem_history.gd +++ b/addons/dialogic/Modules/History/subsystem_history.gd @@ -25,6 +25,7 @@ signal not_read_event_reached signal open_requested +signal close_requested #################################################################################################### ## INITIALIZE @@ -44,6 +45,10 @@ func open_history() -> void: open_requested.emit() +func close_history() -> void: + close_requested.emit() + + #################################################################################################### ## STATE ####################################################################################################