Skip to content

Commit

Permalink
Start to fix some errors on 11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Merathilis committed Jan 8, 2025
1 parent 701b619 commit fe52eed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
11 changes: 7 additions & 4 deletions ElvUI/Mainline/Modules/Skins/AddonManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ local hooksecurefunc = hooksecurefunc

local GetAddOnInfo = C_AddOns.GetAddOnInfo

local function HandleButton(entry, addonIndex)
local function HandleButton(entry, treeNode)
local addonIndex = treeNode:GetData().addonIndex
local name, title, notes, _, _, security = GetAddOnInfo(addonIndex)

if not entry.IsSkinned then
S:HandleCheckBox(entry.Enabled)
S:HandleButton(entry.LoadAddonButton)
Expand Down Expand Up @@ -53,10 +56,10 @@ function S:AddonList()
S:HandleButton(AddonList.CancelButton, nil, nil, nil, true, nil, nil, nil, true)
S:HandleDropDownBox(_G.AddonList.Dropdown, 165)
S:HandleTrimScrollBar(_G.AddonList.ScrollBar)
S:HandleCheckBox(_G.AddonListForceLoad)
_G.AddonListForceLoad:Size(26)
S:HandleCheckBox(_G.AddonList.ForceLoad)
_G.AddonList.ForceLoad:Size(26)

hooksecurefunc('AddonList_InitButton', HandleButton)
hooksecurefunc('AddonList_InitAddon', HandleButton)
end

S:AddCallback('AddonList')
7 changes: 3 additions & 4 deletions ElvUI/Mainline/Modules/Skins/WorldMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ function S:WorldMapFrame()
QuestScrollBar:Point('TOPLEFT', _G.QuestDetailFrame, 'TOPRIGHT', 4, -15)
QuestScrollBar:Point('BOTTOMLEFT', _G.QuestDetailFrame, 'BOTTOMRIGHT', 9, 10)

local CampaignOverview = QuestMapFrame.CampaignOverview
SkinHeaders(CampaignOverview.Header)
CampaignOverview.BorderFrame.Border:SetAlpha(0)

if E.private.skins.blizzard.tooltip then
TT:SetStyle(QuestMapFrame.QuestsFrame.StoryTooltip)
end
Expand Down Expand Up @@ -261,6 +257,9 @@ function S:WorldMapFrame()
MapLegendScroll:StripTextures()
MapLegendScroll:SetTemplate()
S:HandleTrimScrollBar(MapLegendScroll.ScrollBar)

-- 11.1 Stuff

end

S:AddCallback('WorldMapFrame')
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,6 @@ if ActionButton_UpdateFlyout then
end
else
function UpdateFlyout(self, isButtonDownOverride)
self.FlyoutBorderShadow:Hide()
if self._state_type == "action" then
-- based on ActionButton_UpdateFlyout in ActionButton.lua
local actionType = GetActionInfo(self._state_action)
Expand Down Expand Up @@ -2618,8 +2617,6 @@ else
return
end
end

self.FlyoutArrowContainer:Hide()
end
end
Generic.UpdateFlyout = UpdateFlyout
Expand Down

0 comments on commit fe52eed

Please sign in to comment.