mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
Fix a problem where arrows sometimes disappear
This commit is contained in:
parent
61304803bc
commit
2dc04b1682
2 changed files with 2 additions and 1 deletions
|
@ -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/":
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue