fix: guard retail-only InterfaceOptions/SpecializationUtil/AscensionSpellbookFrame; port icons to BLP
All checks were successful
release / release (push) Successful in 2s
All checks were successful
release / release (push) Successful in 2s
This commit is contained in:
parent
762cd19a78
commit
9f7e2b3ae8
9 changed files with 12 additions and 8 deletions
|
|
@ -696,7 +696,9 @@ function addon:ApplyAttributes()
|
|||
end
|
||||
|
||||
function addon:TalentGroupChanged()
|
||||
self.talentGroup = SpecializationUtil.GetActiveSpecialization()
|
||||
if SpecializationUtil and SpecializationUtil.GetActiveSpecialization then
|
||||
self.talentGroup = SpecializationUtil.GetActiveSpecialization()
|
||||
end
|
||||
|
||||
if self.settings.specswap then
|
||||
local currentProfile = self.db:GetCurrentProfile()
|
||||
|
|
|
|||
|
|
@ -13,8 +13,10 @@ local MAX_ROWS = 12
|
|||
|
||||
function CliqueConfig:ShowWithSpellBook()
|
||||
self:ClearAllPoints()
|
||||
self:SetParent(AscensionSpellbookFrame)
|
||||
self:SetPoint("LEFT", AscensionSpellbookFrame, "RIGHT", 55, 0)
|
||||
if AscensionSpellbookFrame then
|
||||
self:SetParent(AscensionSpellbookFrame)
|
||||
self:SetPoint("LEFT", AscensionSpellbookFrame, "RIGHT", 55, 0)
|
||||
end
|
||||
self:Show()
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -122,4 +122,4 @@ function panel.okay()
|
|||
opt.boss = not not panel.boss:GetChecked()
|
||||
end
|
||||
|
||||
InterfaceOptions_AddCategory(panel, addon.optpanels.ABOUT)
|
||||
if InterfaceOptions_AddCategory then InterfaceOptions_AddCategory(panel, addon.optpanels.ABOUT) end
|
||||
|
|
|
|||
|
|
@ -166,4 +166,4 @@ function panel.refresh()
|
|||
panel:UpdateScrollFrame()
|
||||
end
|
||||
|
||||
InterfaceOptions_AddCategory(panel, addon.optpanels.ABOUT)
|
||||
if InterfaceOptions_AddCategory then InterfaceOptions_AddCategory(panel, addon.optpanels.ABOUT) end
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ local L = addon.L
|
|||
--- and it's been moved from AddonCore due to taint issues.
|
||||
-------------------------------------------------------------------------]] --
|
||||
|
||||
local about = CreateFrame("Frame", addonName .. "AboutPanel", InterfaceOptionsFramePanelContainer)
|
||||
local about = CreateFrame("Frame", addonName .. "AboutPanel", InterfaceOptionsFramePanelContainer or UIParent)
|
||||
about.name = addonName
|
||||
about:Hide()
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ addon.optpanels = addon.optpanels or {}
|
|||
addon.optpanels.ABOUT = about
|
||||
|
||||
about:SetScript("OnShow", about.OnShow)
|
||||
InterfaceOptions_AddCategory(addon.optpanels.ABOUT)
|
||||
if InterfaceOptions_AddCategory then InterfaceOptions_AddCategory(addon.optpanels.ABOUT) end
|
||||
|
||||
--[[-------------------------------------------------------------------------
|
||||
-- End Dialog
|
||||
|
|
@ -551,4 +551,4 @@ panel.cancel = panel.refresh
|
|||
|
||||
function addon:UpdateOptionsPanel() if panel:IsVisible() and panel.initialized then panel.refresh() end end
|
||||
|
||||
InterfaceOptions_AddCategory(panel, addon.optpanels.ABOUT)
|
||||
if InterfaceOptions_AddCategory then InterfaceOptions_AddCategory(panel, addon.optpanels.ABOUT) end
|
||||
|
|
|
|||
BIN
Clique/images/icon_circle_128.blp
Normal file
BIN
Clique/images/icon_circle_128.blp
Normal file
Binary file not shown.
Binary file not shown.
BIN
Clique/images/icon_square_64.blp
Normal file
BIN
Clique/images/icon_square_64.blp
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue