Skip to content

Commit

Permalink
fix(visualizer): vertically connected nodes now connect properly
Browse files Browse the repository at this point in the history
  • Loading branch information
clevercrowgames committed Nov 9, 2024
1 parent b3dd08f commit 321e47e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ private void PaintDivider () {
}

var position = new Rect(
_divider.GlobalPositionX + _box.PaddingY / 2 + _node.DividerLeftOffset - 2,
// @TODO Should not need to offset this
_divider.GlobalPositionX + _box.PaddingX / 2 + _node.DividerLeftOffset - 2,
_divider.GlobalPositionY + _box.PaddingY / 2,
_divider.Width + graphicSizeIncrease,
10);
// @NOTE I have no clue why 3 works here...
3);

GUI.Label(position, _dividerGraphic);
}
Expand All @@ -116,7 +116,7 @@ private void PaintVerticalBottom () {
_box.GlobalPositionX + _node.Width / 2 + _box.PaddingX - 2,
_box.GlobalPositionY + _node.Height + _box.PaddingY - 1,
100,
_box.PaddingY - 1);
_box.PaddingY);

GUI.Label(position, _verticalBottom);
}
Expand All @@ -130,7 +130,7 @@ private void PaintVerticalTop () {
_box.GlobalPositionX + _node.Width / 2 + _box.PaddingX - 2,
_box.GlobalPositionY + _box.PaddingY / 2,
100,
10);
_box.PaddingY / 2);

GUI.Label(position, _verticalTop);
}
Expand Down

0 comments on commit 321e47e

Please sign in to comment.