ingame/guild/gamepad/guildheraldry_gamepad.lua:429 -- self.colorList:SetOnSelectedDataChangedCallback(function(list, selectedData, oldSelectedData, reachedTarget)
if reachedTarget then
if self.targetSwatchToHighlight then
self:HighlightColor(self.targetSwatchToHighlight)
self.targetSwatchToHighlight = nil
elseif selectedData and not self.isPopulatingColors then
-- We need to maintain the color highlight on the same column (if possible) when the list triggers are used (to jump between headers).
local oldSwatch = self.colorIndexToSwatch[self.activeData.getHighlightedColor()]
local newIndex = zo_clamp(oldSwatch.indexInRow, 1, #selectedData.swatches)
self:HighlightColor(selectedData.swatches[newIndex])
end
self:UpdateKeybindGroups()
end
end)