Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions src/Classes/ControlHost.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ function ControlHostClass:GetMouseOverControl()
end

function ControlHostClass:ProcessControlsInput(inputEvents, viewPort)
local processedImbuedControl
for id, event in ipairs(inputEvents) do
if event.type == "KeyDown" then
if self.selControl then
processedImbuedControl = self.selControl.imbuedSelect and self.selControl.dropped and event.key:match("BUTTON")
self:SelectControl(self.selControl:OnKeyDown(event.key, event.doubleClick))
inputEvents[id] = nil
if processedImbuedControl then -- stop click through of any control behind imbuedSupport dropdown
return
end
end
if not self.selControl and event.key:match("BUTTON") then
self:SelectControl()
Expand Down
5 changes: 5 additions & 0 deletions src/Classes/GemSelectControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function GemSelectClass:CalcOutputWithThisGem(calcFunc, gemData, useFullDPS)
local gemList = self.skillsTab.displayGroup.gemList
local displayGemList = self.skillsTab.displayGroup.displayGemList
local oldGem

-- the imbuedSupport control actively switches to the latest index of the current displayGroup's gemList so we can use the canSupport filtering
if self.imbuedSelect then
self.index = #gemList + 1
end
if gemList[self.index] then
oldGem = copyTable(gemList[self.index], true)
else
Expand Down
9 changes: 0 additions & 9 deletions src/Classes/SkillsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -630,13 +630,6 @@ function SkillsTabClass:PasteSocketGroup(testInput)
end
end

-- the imbued support control actively switches to the latest count of the current displayGroup's gemList so we can use the canSupport filtering
local function updateImbuedSupportIndex(control, gemListCount)
if gemListCount > 0 then
control.index = gemListCount + 1
end
end

-- Create the controls for editing the gem at a given index
function SkillsTabClass:CreateGemSlot(index)
local slot = { }
Expand All @@ -656,7 +649,6 @@ function SkillsTabClass:CreateGemSlot(index)
self.gemSlots[index2].enableGlobal2.state = gemInstance.enableGlobal2
self.gemSlots[index2].count:SetText(gemInstance.count or 1)
end
updateImbuedSupportIndex(self.controls.imbuedSupport, #self.displayGroup.gemList)
self:AddUndoState()
self.build.buildFlag = true
end)
Expand Down Expand Up @@ -1109,7 +1101,6 @@ function SkillsTabClass:ProcessSocketGroup(socketGroup)
end
end
end
updateImbuedSupportIndex(self.controls.imbuedSupport, #socketGroup.gemList)
end

-- Set the skill to be displayed/edited
Expand Down
Loading