diff --git a/arrow.gd b/arrow.gd index a76b9e9..319ef35 100644 --- a/arrow.gd +++ b/arrow.gd @@ -18,7 +18,7 @@ func _process(_delta): if $Target.text.substr(0, 5) != "refs/": $Target.text = ""#$Target.text.substr(0,8) $Target.show() - $Line.points[1] = end - global_position + $Line.points[1] = (end - global_position)/repository.find_node("Nodes").rect_scale.x $Label.position = ($Line.points[0] + $Line.points[1])/1.3 $Tip.position = ($Line.points[0] + $Line.points[1])/1.3 $Tip.rotation = PI+$Line.points[0].angle_to($Line.points[1]) diff --git a/arrow.tscn b/arrow.tscn index 3eaa6cf..84263e2 100644 --- a/arrow.tscn +++ b/arrow.tscn @@ -47,7 +47,6 @@ __meta__ = { } [node name="Target" type="Label" parent="."] -visible = false margin_left = -229.024 margin_top = 63.3118 margin_right = 232.976