Reactivated pickup messages.

main
Martin Felis 2024-08-15 21:10:38 +02:00
parent bdfee0e94b
commit b8cb77f613
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ func _on_player_trigger_message(message):
%MessagesContainer/MessageTextEdit.text = message %MessagesContainer/MessageTextEdit.text = message
%MessagesContainer/MessageTimer.start(1) %MessagesContainer/MessageTimer.start(1)
%MessagesContainer.visible = true %MessagesContainer.visible = true
print(message)
func _unhandled_key_input(event:InputEvent): func _unhandled_key_input(event:InputEvent):

View File

@ -18,6 +18,8 @@ func _ready():
var recipe:Recipe = load(resource_file) as Recipe var recipe:Recipe = load(resource_file) as Recipe
_all_recipes.append(recipe) _all_recipes.append(recipe)
player.connect("trigger_message", ui_panels[2]._on_player_trigger_message)
set_root_ui_state(ROOT_UI_STATE.GAME) set_root_ui_state(ROOT_UI_STATE.GAME)
func activate_ui_panel(ui_panel:Control): func activate_ui_panel(ui_panel:Control):