remove dialog tip
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
extends Label
|
||||
|
||||
func _process(_delta):
|
||||
self.visible = escoria.inputs_manager.input_mode != escoria.inputs_manager.INPUT_NONE
|
||||
@@ -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 )
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user