Fix a problem where arrows sometimes disappear

This commit is contained in:
Sebastian Morr 2020-10-26 19:27:53 +01:00
parent 61304803bc
commit 2dc04b1682
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,8 @@ func _process(_delta):
var t = repository.objects[target] var t = repository.objects[target]
end = t.position end = t.position
$Target.hide() $Target.hide()
$Line.show()
$Tip.show()
else: else:
$Target.text = target $Target.text = target
if $Target.text.substr(0, 5) != "refs/": if $Target.text.substr(0, 5) != "refs/":

View file

@ -3,7 +3,6 @@
[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1] [ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1]
[ext_resource path="res://scenes/arrow.gd" type="Script" id=2] [ext_resource path="res://scenes/arrow.gd" type="Script" id=2]
[node name="Arrow" type="Node2D"] [node name="Arrow" type="Node2D"]
show_behind_parent = true show_behind_parent = true
script = ExtResource( 2 ) script = ExtResource( 2 )