Compare commits
2 Commits
bdfee0e94b
...
256cd4f1f3
Author | SHA1 | Date |
---|---|---|
Martin Felis | 256cd4f1f3 | |
Martin Felis | b8cb77f613 |
|
@ -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):
|
||||
|
|
|
@ -11,12 +11,12 @@ var editor_child_scene:Node3D = null
|
|||
if value != item:
|
||||
item = value
|
||||
|
||||
if not Engine.is_editor_hint():
|
||||
return
|
||||
|
||||
if editor_child_scene != null:
|
||||
editor_child_scene.queue_free()
|
||||
|
||||
|
||||
if not Engine.is_editor_hint():
|
||||
return
|
||||
|
||||
editor_child_scene = item.scene.instantiate()
|
||||
add_child(editor_child_scene)
|
||||
editor_child_scene.owner = self
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue