Reactivated pickup messages.
parent
bdfee0e94b
commit
b8cb77f613
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue