Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit fd80fa3

Browse files
committed
Fix spelling
1 parent 0159c47 commit fd80fa3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Classes/PassiveTreeView.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
247247
end
248248
end
249249

250-
-- switchAttribute true -> allocating an attribute node, possibly with attribute in path -or- hotswap allocated attribute
250+
-- switchAttribute true -> allocating an attribute node, possibly with attribute in path -or- hot-swap allocated attribute
251251
-- switchAttribute false -> allocating a non-attribute node, possibly with attribute in path
252252
-- we always want to keep track of last used attribute
253253
local function processAttributeHotkeys(switchAttribute)
@@ -313,7 +313,7 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
313313
else
314314
-- a way for us to bypass the popup when allocating attribute nodes, last used hotkey + RMB
315315
-- RMB + non attribute node logic
316-
-- RMB hotswap logic
316+
-- RMB hot-swap logic
317317
if hotkeyPressed then
318318
processAttributeHotkeys(hoverNode.isAttribute)
319319
elseif hoverNode.isAttribute then
@@ -544,9 +544,9 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
544544
local dist = math.sqrt(dx * dx + dy * dy) * (connection.orbit > 0 and 1 or -1)
545545

546546
if dist < r * 2 then
547-
local perp = math.sqrt(r * r - (dist * dist) / 4) * (r > 0 and 1 or -1)
548-
local cx = node1.x + dx / 2 + perp * (dy / dist)
549-
local cy = node1.y + dy / 2 - perp * (dx / dist)
547+
local perpendicular = math.sqrt(r * r - (dist * dist) / 4) * (r > 0 and 1 or -1)
548+
local cx = node1.x + dx / 2 + perpendicular * (dy / dist)
549+
local cy = node1.y + dy / 2 - perpendicular * (dx / dist)
550550
local scx, scy = treeToScreen(cx, cy)
551551

552552
local innerSize = r * scale
@@ -1123,7 +1123,7 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build)
11231123
tooltip:AddLine(16, string.format("AllocMode: %d", node.allocMode or 0))
11241124
tooltip:AddSeparator(14)
11251125

1126-
-- add conection info for debugging
1126+
-- add connection info for debugging
11271127
for _, connection in ipairs(node.connections) do
11281128
tooltip:AddLine(16, string.format("^7Connection: %d, Orbit: %d", connection.id, connection.orbit))
11291129
end

0 commit comments

Comments
 (0)