This commit is contained in:
Crum
2018-12-21 21:17:40 -06:00
parent 1027250243
commit a07d3d8e99
2 changed files with 56 additions and 14 deletions
+41
View File
@@ -892,24 +892,44 @@ function E:UpdateAll(ignoreInstall)
Layout:TopPanelVisibility() Layout:TopPanelVisibility()
Layout:SetDataPanelStyle() Layout:SetDataPanelStyle()
if E.private.actionbar.enable then
ActionBars:UpdateButtonSettings() ActionBars:UpdateButtonSettings()
ActionBars:UpdateMicroPositionDimensions() ActionBars:UpdateMicroPositionDimensions()
end
AFK:Toggle() AFK:Toggle()
if E.private.bags.enable then
Bags:Layout() Bags:Layout()
Bags:Layout(true) Bags:Layout(true)
Bags:SizeAndPositionBagBar() Bags:SizeAndPositionBagBar()
Bags:UpdateCountDisplay() Bags:UpdateCountDisplay()
Bags:UpdateItemLevelDisplay() Bags:UpdateItemLevelDisplay()
end
if E.private.chat.enable then
Chat:PositionChat(true) Chat:PositionChat(true)
Chat:SetupChat() Chat:SetupChat()
Chat:UpdateAnchors() Chat:UpdateAnchors()
end
DataBars:EnableDisable_ExperienceBar() DataBars:EnableDisable_ExperienceBar()
DataBars:EnableDisable_ReputationBar() DataBars:EnableDisable_ReputationBar()
DataBars:UpdateDataBarDimensions() DataBars:UpdateDataBarDimensions()
DataTexts:LoadDataTexts() DataTexts:LoadDataTexts()
if E.private.general.minimap.enable then
Minimap:UpdateSettings() Minimap:UpdateSettings()
end
if E.private.nameplates.enable then
NamePlates:ConfigureAll() NamePlates:ConfigureAll()
end
if E.private.unitframe.enable then
UnitFrames:Update_AllFrames() UnitFrames:Update_AllFrames()
end
if E.RefreshGUI then if E.RefreshGUI then
E:RefreshGUI() E:RefreshGUI()
@@ -1040,6 +1060,27 @@ end
--DATABASE CONVERSIONS --DATABASE CONVERSIONS
function E:DBConversions() function E:DBConversions()
--Make sure default filters use the correct filter type
for filter, filterType in pairs(E.DEFAULT_FILTER) do
E.global.unitframe.aurafilters[filter].type = filterType
end
--Combat & Resting Icon options update
if E.db.unitframe.units.player.combatIcon ~= nil then
E.db.unitframe.units.player.CombatIcon.enable = E.db.unitframe.units.player.combatIcon
E.db.unitframe.units.player.combatIcon = nil
end
if E.db.unitframe.units.player.restIcon ~= nil then
E.db.unitframe.units.player.RestIcon.enable = E.db.unitframe.units.player.restIcon
E.db.unitframe.units.player.restIcon = nil
end
if not E.db.chat.panelColorConverted then
local color = E.db.general.backdropfadecolor
E.db.chat.panelColor = {r = color.r, g = color.g, b = color.b, a = color.a}
E.db.chat.panelColorConverted = true
end
--Vendor Greys option is now in bags table --Vendor Greys option is now in bags table
if E.db.general.vendorGrays then if E.db.general.vendorGrays then
E.db.bags.vendorGrays.enable = E.db.general.vendorGrays E.db.bags.vendorGrays.enable = E.db.general.vendorGrays
+2 -1
View File
@@ -51,6 +51,7 @@ function AB:HandleMicroButton(button)
HookScript(button, "OnEnter", onEnter) HookScript(button, "OnEnter", onEnter)
HookScript(button, "OnLeave", onLeave) HookScript(button, "OnLeave", onLeave)
button:SetHitRectInsets(0, 0, 0, 0) button:SetHitRectInsets(0, 0, 0, 0)
button:SetAlpha(self.db.microbar.alpha)
button:Show() button:Show()
pushed:SetTexCoord(0.17, 0.87, 0.5, 0.908) pushed:SetTexCoord(0.17, 0.87, 0.5, 0.908)
@@ -130,5 +131,5 @@ function AB:SetupMicroBar()
E:Kill(MainMenuBarPerformanceBarFrame) E:Kill(MainMenuBarPerformanceBarFrame)
E:CreateMover(ElvUI_MicroBar, 'MicrobarMover', L["Micro Bar"], nil, nil, nil, "ALL,ACTIONBARS", nil, "actionbar,microbar") E:CreateMover(ElvUI_MicroBar, "MicrobarMover", L["Micro Bar"], nil, nil, nil, "ALL,ACTIONBARS", nil, "actionbar,microbar")
end end