From b8cb77f61350ddf156f7ac230f0e5ece3f3ddaf4 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Thu, 15 Aug 2024 21:10:38 +0200 Subject: [PATCH] Reactivated pickup messages. --- game_ui.gd | 1 + root_ui.gd | 2 ++ 2 files changed, 3 insertions(+) diff --git a/game_ui.gd b/game_ui.gd index b3ec0a5..a166da1 100644 --- a/game_ui.gd +++ b/game_ui.gd @@ -12,6 +12,7 @@ func _on_player_trigger_message(message): %MessagesContainer/MessageTextEdit.text = message %MessagesContainer/MessageTimer.start(1) %MessagesContainer.visible = true + print(message) func _unhandled_key_input(event:InputEvent): diff --git a/root_ui.gd b/root_ui.gd index 72e859a..2d3e556 100644 --- a/root_ui.gd +++ b/root_ui.gd @@ -18,6 +18,8 @@ func _ready(): var recipe:Recipe = load(resource_file) as Recipe _all_recipes.append(recipe) + player.connect("trigger_message", ui_panels[2]._on_player_trigger_message) + set_root_ui_state(ROOT_UI_STATE.GAME) func activate_ui_panel(ui_panel:Control):