Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Classes/PassiveTreeView.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
-- Dragging won't actually commence unless the cursor moves far enough
self.dragX, self.dragY = cursorX, cursorY
end
elseif mOver then
if IsKeyDown("ALT") and event.key == "WHEELDOWN" then
elseif IsKeyDown("ALT") and mOver then
if event.key == "WHEELDOWN" then
spec.allocMode = math.max(0, spec.allocMode - 1)
elseif IsKeyDown("ALT") and event.key == "WHEELUP" then
elseif event.key == "WHEELUP" then
spec.allocMode = math.min(2, spec.allocMode + 1)
end
elseif event.key == "p" then
Expand Down Expand Up @@ -247,7 +247,7 @@
end
end

-- switchAttribute true -> allocating an attribute node, possibly with attribute in path -or- hotswap allocated attribute

Check warning on line 250 in src/Classes/PassiveTreeView.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (hotswap)
-- switchAttribute false -> allocating a non-attribute node, possibly with attribute in path
-- we always want to keep track of last used attribute
local function processAttributeHotkeys(switchAttribute)
Expand Down Expand Up @@ -313,7 +313,7 @@
else
-- a way for us to bypass the popup when allocating attribute nodes, last used hotkey + RMB
-- RMB + non attribute node logic
-- RMB hotswap logic

Check warning on line 316 in src/Classes/PassiveTreeView.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (hotswap)
if hotkeyPressed then
processAttributeHotkeys(hoverNode.isAttribute)
elseif hoverNode.isAttribute then
Expand Down Expand Up @@ -544,9 +544,9 @@
local dist = math.sqrt(dx * dx + dy * dy) * (connection.orbit > 0 and 1 or -1)

if dist < r * 2 then
local perp = math.sqrt(r * r - (dist * dist) / 4) * (r > 0 and 1 or -1)

Check warning on line 547 in src/Classes/PassiveTreeView.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (perp)
local cx = node1.x + dx / 2 + perp * (dy / dist)

Check warning on line 548 in src/Classes/PassiveTreeView.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (perp)
local cy = node1.y + dy / 2 - perp * (dx / dist)

Check warning on line 549 in src/Classes/PassiveTreeView.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (perp)
local scx, scy = treeToScreen(cx, cy)

local innerSize = r * scale
Expand Down Expand Up @@ -1123,7 +1123,7 @@
tooltip:AddLine(16, string.format("AllocMode: %d", node.allocMode or 0))
tooltip:AddSeparator(14)

-- add conection info for debugging

Check warning on line 1126 in src/Classes/PassiveTreeView.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (conection)
for _, connection in ipairs(node.connections) do
tooltip:AddLine(16, string.format("^7Connection: %d, Orbit: %d", connection.id, connection.orbit))
end
Expand Down
Loading