Skip to content

Commit

Permalink
Force skill groups to display as active based on main skill (#6317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilylicious authored Aug 13, 2023
1 parent ee5e8d2 commit b394279
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Classes/SkillListControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ end)
function SkillListClass:GetRowValue(column, index, socketGroup)
if column == 1 then
local label = socketGroup.displayLabel or "?"
if not socketGroup.enabled or not socketGroup.slotEnabled then
label = "^x7F7F7F" .. label .. " (Disabled)"
local currentMainSkill = self.skillsTab.build.mainSocketGroup == index
local disabled = not socketGroup.enabled or not socketGroup.slotEnabled
if disabled then
local colour = currentMainSkill and "" or "^x7F7F7F"
label = colour .. label .. " (Disabled)"
end
if self.skillsTab.build.mainSocketGroup == index then
label = label .. colorCodes.RELIC .. " (Active)"
if currentMainSkill then
local activeLabel = disabled and " (Forced Active)" or " (Active)"
label = label .. colorCodes.RELIC .. activeLabel
end
if socketGroup.includeInFullDPS then
label = label .. colorCodes.CUSTOM .. " (FullDPS)"
Expand Down

0 comments on commit b394279

Please sign in to comment.