remove dialog tip

This commit is contained in:
2024-11-03 01:07:28 +01:00
parent 7846dd082f
commit 1b2c65086d
3 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
extends Label
func _process(_delta):
self.visible = escoria.inputs_manager.input_mode != escoria.inputs_manager.INPUT_NONE

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://addons/escoria-ui-return-monkey-island/fonts/dialog_tip.tres" type="DynamicFont" id=1]
[ext_resource path="res://addons/escoria-ui-return-monkey-island-dialog-simple/dialog_tip.gd" type="Script" id=2]
[node name="Label" type="Label"]
margin_left = 1057.0
@@ -9,3 +10,4 @@ margin_right = 1259.0
margin_bottom = 551.0
custom_fonts/font = ExtResource( 1 )
text = "Haz click para acelerar el texto"
script = ExtResource( 2 )

View File

@@ -26,6 +26,8 @@ var _should_preserve_dialog_box: bool = false
func _ready() -> void:
add_child(state_machine)
escoria.connect("paused", self, "_on_paused")
# Check whether a specific type is supported by the
@@ -228,3 +230,6 @@ func add_dialog_tip():
func remove_dialop_tip():
_dialog_player.remove_child(_dialog_tip)
func _on_paused():
remove_dialop_tip()