Skip to content

Commit

Permalink
Rename UpdateMouseBehavior to SetMouseBehavior for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Feb 3, 2024
1 parent ec8d293 commit ee4d6cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GUI/GeneralConfigPanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function EnhancedRaidFrames:CreateGeneralOptions()
end,
set = function(_, value)
self.db.profile.mouseoverCastCompat = value
self:UpdateAllMouseBehavior()
self:SetAllMouseBehavior()
end,
width = THIRD_WIDTH,
order = 34,
Expand Down
10 changes: 5 additions & 5 deletions Modules/AuraIndicators.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function EnhancedRaidFrames:CreateIndicators(frame)
end

-- Set our mouse behavior for our indicators
self:UpdateMouseBehavior(frame)
self:SetMouseBehavior(frame)

-- Set our initial indicator appearance
self:SetIndicatorAppearance(frame)
Expand Down Expand Up @@ -122,7 +122,7 @@ end
--- Update the mouse behavior for a given frame
--- This is used to update the mouse behavior when the user changes the mouseoverCastCompat option
--- @param frame table @The raid frame to update mouse behavior for
function EnhancedRaidFrames:UpdateMouseBehavior(frame)
function EnhancedRaidFrames:SetMouseBehavior(frame)
-- Stop here if we don't have any indicators
if not frame.ERF_indicatorFrames then
return
Expand All @@ -148,15 +148,15 @@ end

--- Update all mouse behavior for all indicators
--- This is used to update all indicators when the user changes the mouseoverCastCompat option
function EnhancedRaidFrames:UpdateAllMouseBehavior()
function EnhancedRaidFrames:SetAllMouseBehavior()
if not self.isWoWClassicEra and not self.isWoWClassic then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:UpdateMouseBehavior(frame)
self:SetMouseBehavior(frame)
end)
else
CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", function(frame)
self:UpdateMouseBehavior(frame)
self:SetMouseBehavior(frame)
end)
end
end
Expand Down

0 comments on commit ee4d6cd

Please sign in to comment.