Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force skill groups to display as active based on main skill #6317

Merged
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
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