Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollyonn committed Jan 5, 2019
1 parent 65f0453 commit 55fbfc4
Show file tree
Hide file tree
Showing 19 changed files with 226 additions and 271 deletions.
7 changes: 4 additions & 3 deletions ElvUI/core/cooldowns.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local E, L, V, P, G = unpack(ElvUI)
local LSM = E.LSM

local next, ipairs, pairs = next, ipairs, pairs
local floor = math.floor
Expand Down Expand Up @@ -60,7 +61,7 @@ function E:Cooldown_OnSizeChanged(cd, parent, width, force)
else
local text = cd.text or cd.time
if text then
local useCustomFont = (cd.timerOptions and cd.timerOptions.fontOptions and cd.timerOptions.fontOptions.enable) and E.LSM:Fetch("font", cd.timerOptions.fontOptions.font)
local useCustomFont = (cd.timerOptions and cd.timerOptions.fontOptions and cd.timerOptions.fontOptions.enable) and LSM:Fetch("font", cd.timerOptions.fontOptions.font)
if useCustomFont then
local customSize = (parent and parent.CooldownFontSize and cd.timerOptions.fontOptions.fontSize) or (fontScale * cd.timerOptions.fontOptions.fontSize)
text:FontTemplate(useCustomFont, customSize, cd.timerOptions.fontOptions.fontOutline)
Expand Down Expand Up @@ -254,14 +255,14 @@ function E:UpdateCooldownOverride(module)
if text then
if CD.timerOptions.fontOptions and CD.timerOptions.fontOptions.enable then
if not customFont then
customFont = E.LSM:Fetch("font", CD.timerOptions.fontOptions.font)
customFont = LSM:Fetch("font", CD.timerOptions.fontOptions.font)
end
if customFont then
text:FontTemplate(customFont, CD.timerOptions.fontOptions.fontSize, CD.timerOptions.fontOptions.fontOutline)
end
elseif cd.CooldownOverride then
if not customFont then
customFont = E.LSM:Fetch("font", E.db[cd.CooldownOverride].font)
customFont = LSM:Fetch("font", E.db[cd.CooldownOverride].font)
end
if customFont then
-- cd.auraType defined in `A:UpdateHeader` and `A:CreateIcon`
Expand Down
2 changes: 0 additions & 2 deletions ElvUI/core/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,10 @@ end
function E:CheckIncompatible()
if E.global.ignoreIncompatible then return end

--[[
if IsAddOnLoaded("SnowfallKeyPress") and E.private.actionbar.enable then
E.private.actionbar.keyDown = true
E:IncompatibleAddOn("SnowfallKeyPress", "ActionBar")
end
]]

if IsAddOnLoaded("Chatter") and E.private.chat.enable then
E:IncompatibleAddOn("Chatter", "Chat")
Expand Down
3 changes: 2 additions & 1 deletion ElvUI/layout/layout.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local E, L, V, P, G = unpack(ElvUI)
local LO = E:NewModule("Layout", "AceEvent-3.0")
local LSM = E.LSM

local CreateFrame = CreateFrame
local UIFrameFadeIn, UIFrameFadeOut = UIFrameFadeIn, UIFrameFadeOut
Expand Down Expand Up @@ -438,7 +439,7 @@ function LO:CreateMinimapPanels()
configtoggle:Width(E.RBRWidth)
configtoggle:SetTemplate(E.db.datatexts.panelTransparency and "Transparent" or "Default", true)
configtoggle.text = configtoggle:CreateFontString(nil, "OVERLAY")
configtoggle.text:FontTemplate(E.LSM:Fetch("font", E.db.datatexts.font), E.db.datatexts.fontSize, E.db.datatexts.fontOutline)
configtoggle.text:FontTemplate(LSM:Fetch("font", E.db.datatexts.font), E.db.datatexts.fontSize, E.db.datatexts.fontOutline)
configtoggle.text:SetText("C")
configtoggle.text:SetPoint("CENTER")
configtoggle.text:SetJustifyH("CENTER")
Expand Down
9 changes: 5 additions & 4 deletions ElvUI/modules/bags/bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local E, L, V, P, G = unpack(ElvUI)
local B = E:NewModule("Bags", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0")
local Search = LibStub("LibItemSearch-1.2")
local LIP = LibStub("ItemPrice-1.1")
local LSM = E.LSM

local _G = _G
local type, ipairs, pairs, unpack, select, assert, pcall = type, ipairs, pairs, unpack, select, assert, pcall
Expand Down Expand Up @@ -231,7 +232,7 @@ function B:UpdateItemLevelDisplay()
for slotID = 1, GetContainerNumSlots(bagID) do
local slot = bagFrame.Bags[bagID][slotID]
if slot and slot.itemLevel then
slot.itemLevel:FontTemplate(E.LSM:Fetch("font", E.db.bags.itemLevelFont), E.db.bags.itemLevelFontSize, E.db.bags.itemLevelFontOutline)
slot.itemLevel:FontTemplate(LSM:Fetch("font", E.db.bags.itemLevelFont), E.db.bags.itemLevelFontSize, E.db.bags.itemLevelFontOutline)
end
end
end
Expand All @@ -251,7 +252,7 @@ function B:UpdateCountDisplay()
for slotID = 1, GetContainerNumSlots(bagID) do
local slot = bagFrame.Bags[bagID][slotID]
if slot and slot.Count then
slot.Count:FontTemplate(E.LSM:Fetch("font", E.db.bags.countFont), E.db.bags.countFontSize, E.db.bags.countFontOutline)
slot.Count:FontTemplate(LSM:Fetch("font", E.db.bags.countFont), E.db.bags.countFontSize, E.db.bags.countFontOutline)
slot.Count:SetTextColor(color.r, color.g, color.b)
end
end
Expand Down Expand Up @@ -579,7 +580,7 @@ function B:Layout(isBank)
f.Bags[bagID][slotID].Count = _G[f.Bags[bagID][slotID]:GetName().."Count"]
f.Bags[bagID][slotID].Count:ClearAllPoints()
f.Bags[bagID][slotID].Count:Point("BOTTOMRIGHT", 0, 3)
f.Bags[bagID][slotID].Count:FontTemplate(E.LSM:Fetch("font", E.db.bags.countFont), E.db.bags.countFontSize, E.db.bags.countFontOutline)
f.Bags[bagID][slotID].Count:FontTemplate(LSM:Fetch("font", E.db.bags.countFont), E.db.bags.countFontSize, E.db.bags.countFontOutline)
f.Bags[bagID][slotID].Count:SetTextColor(countColor.r, countColor.g, countColor.b)

if not f.Bags[bagID][slotID].QuestIcon then
Expand Down Expand Up @@ -613,7 +614,7 @@ function B:Layout(isBank)

f.Bags[bagID][slotID].itemLevel = f.Bags[bagID][slotID]:CreateFontString(nil, "OVERLAY")
f.Bags[bagID][slotID].itemLevel:Point("BOTTOMRIGHT", 0, 3)
f.Bags[bagID][slotID].itemLevel:FontTemplate(E.LSM:Fetch("font", E.db.bags.itemLevelFont), E.db.bags.itemLevelFontSize, E.db.bags.itemLevelFontOutline)
f.Bags[bagID][slotID].itemLevel:FontTemplate(LSM:Fetch("font", E.db.bags.itemLevelFont), E.db.bags.itemLevelFontSize, E.db.bags.itemLevelFontOutline)
end

f.Bags[bagID][slotID]:SetID(slotID)
Expand Down
Loading

0 comments on commit 55fbfc4

Please sign in to comment.