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):