diff options
| author | rom <romangraef@gmail.com> | 2021-04-27 02:26:24 +0200 |
|---|---|---|
| committer | rom <romangraef@gmail.com> | 2021-04-27 02:26:24 +0200 |
| commit | 9167422d825ff1451b2eb5e877b4f4abd1a73989 (patch) | |
| tree | 726be47d27ca2dacbe810d6383948f89fe1ffa7a /components | |
| parent | 8755544fd0dbb801f8d593f5891eaee00dd4ecd5 (diff) | |
| download | ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.tar.gz ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.tar.bz2 ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.zip | |
continue
Diffstat (limited to 'components')
| -rw-r--r-- | components/button.tscn | 1 | ||||
| -rw-r--r-- | components/textreveal.gd | 4 |
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 |
