summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/button.tscn1
-rw-r--r--components/textreveal.gd4
2 files changed, 3 insertions, 2 deletions
diff --git a/components/button.tscn b/components/button.tscn
index 153f469..e3d784a 100644
--- a/components/button.tscn
+++ b/components/button.tscn
@@ -24,6 +24,7 @@ scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
[node name="Hitbox" type="CollisionShape2D" parent="."]
+
[connection signal="input_event" from="." to="." method="_on_ButtonTest_input_event"]
[connection signal="mouse_entered" from="." to="." method="_on_ButtonTest_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_ButtonTest_mouse_exited"]
diff --git a/components/textreveal.gd b/components/textreveal.gd
index 3520882..ab346f0 100644
--- a/components/textreveal.gd
+++ b/components/textreveal.gd
@@ -40,8 +40,8 @@ func _process(delta):
if additional > 0:
if text.ends_with("\n"):
t = -7
- elif text.ends_with(" "):
- t = -1
+ if text.ends_with(" "):
+ t += 1
rect_position = -rect_size / 2 + Vector2(xpos, ypos)
if to_render.length() <= revealed:
started = false