update tables

This commit is contained in:
Crum
2018-12-06 19:55:03 -06:00
parent cb90d0f1e5
commit 4d0cc6c85c
68 changed files with 705 additions and 597 deletions
+38 -45
View File
@@ -1,9 +1,6 @@
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local LSM = LibStub("LibSharedMedia-3.0");
--Cache global variables
--Lua functions
--WoW API / Variables
local SetCVar = SetCVar
@@ -18,9 +15,9 @@ local function SetFont(obj, font, size, style, r, g, b, sr, sg, sb, sox, soy)
end
function E:UpdateBlizzardFonts()
local NORMAL = self["media"].normFont
local NORMAL = self.media.normFont
local COMBAT = LSM:Fetch("font", self.private.general.dmgfont)
local NUMBER = self["media"].normFont
local NUMBER = self.media.normFont
local NAMEFONT = LSM:Fetch("font", self.private.general.namefont)
local MONOCHROME = ""
@@ -42,49 +39,45 @@ function E:UpdateBlizzardFonts()
InterfaceOptionsCombatTextPanelPeriodicDamage:Hide()
InterfaceOptionsCombatTextPanelPetDamage:Hide()
InterfaceOptionsCombatTextPanelHealing:Hide()
SetCVar("CombatLogPeriodicSpells",0)
SetCVar("PetMeleeDamage",0)
SetCVar("CombatDamage",0)
SetCVar("CombatHealing",0)
SetCVar("CombatLogPeriodicSpells", 0)
SetCVar("PetMeleeDamage", 0)
SetCVar("CombatDamage", 0)
SetCVar("CombatHealing", 0)
-- set an invisible font for xp, honor kill, etc
local INVISIBLE = "Interface\\Addons\\ElvUI\\Media\\Fonts\\Invisible.ttf"
local INVISIBLE = [[Interface\Addons\ElvUI\media\fonts\Invisible.ttf]]
COMBAT = INVISIBLE
end
if(self.private.general.replaceBlizzFonts) then
SetFont(SystemFont, NORMAL, self.db.general.fontSize);
SetFont(GameFontNormal, NORMAL, self.db.general.fontSize);
SetFont(GameFontNormalSmall, NORMAL, self.db.general.fontSize);
SetFont(GameFontNormalLarge, NORMAL, self.db.general.fontSize);
SetFont(GameFontNormalHuge, NORMAL, 25, MONOCHROME .. "OUTLINE");
-- SetFont(BossEmoteNormalHuge, NORMAL, 25, MONOCHROME .. "OUTLINE");
SetFont(GameFontBlack, NORMAL, self.db.general.fontSize);
SetFont(NumberFontNormal, NUMBER, self.db.general.fontSize, MONOCHROME .. "OUTLINE");
SetFont(NumberFontNormalSmall, NUMBER, self.db.general.fontSize);
SetFont(NumberFontNormalLarge, NUMBER, self.db.general.fontSize);
SetFont(NumberFontNormalHuge, NUMBER, self.db.general.fontSize);
SetFont(ChatFontNormal, NORMAL, self.db.general.fontSize);
SetFont(ChatFontSmall, NORMAL, self.db.general.fontSize);
SetFont(QuestTitleFont, NORMAL, self.db.general.fontSize + 8);
SetFont(QuestFont, NORMAL, self.db.general.fontSize);
SetFont(QuestFontHighlight, NORMAL, self.db.general.fontSize);
SetFont(ItemTextFontNormal, NORMAL, self.db.general.fontSize);
SetFont(ItemTextFontNormal, NORMAL, self.db.general.fontSize);
SetFont(MailTextFontNormal, NORMAL, self.db.general.fontSize);
SetFont(SubSpellFont, NORMAL, self.db.general.fontSize);
SetFont(DialogButtonNormalText, NORMAL, self.db.general.fontSize);
SetFont(ZoneTextFont, NORMAL, 32, MONOCHROME .. "OUTLINE");
SetFont(SubZoneTextFont, NORMAL, 25, MONOCHROME .. "OUTLINE");
SetFont(PVPInfoTextFont, NORMAL, 22, MONOCHROME .. "OUTLINE");
SetFont(TextStatusBarText, NORMAL, self.db.general.fontSize);
SetFont(TextStatusBarTextSmall, NORMAL, self.db.general.fontSize);
-- SetFont(GameTooltipText, NORMAL, self.db.general.fontSize);
-- SetFont(GameTooltipTextSmall, NORMAL, self.db.general.fontSize);
-- SetFont(GameTooltipHeaderText, NORMAL, self.db.general.fontSize);
SetFont(WorldMapTextFont, NORMAL, 32, MONOCHROME .. "OUTLINE");
SetFont(InvoiceTextFontNormal, NORMAL, self.db.general.fontSize);
SetFont(InvoiceTextFontSmall, NORMAL, self.db.general.fontSize);
SetFont(CombatTextFont, COMBAT, 25, MONOCHROME .. "OUTLINE");
if self.private.general.replaceBlizzFonts then
SetFont(SystemFont, NORMAL, self.db.general.fontSize)
SetFont(GameFontNormal, NORMAL, self.db.general.fontSize)
SetFont(GameFontNormalSmall, NORMAL, self.db.general.fontSize)
SetFont(GameFontNormalLarge, NORMAL, self.db.general.fontSize)
SetFont(GameFontNormalHuge, NORMAL, 25, MONOCHROME.."OUTLINE")
SetFont(BossEmoteNormalHuge, NORMAL, 25, MONOCHROME.."OUTLINE")
SetFont(GameFontBlack, NORMAL, self.db.general.fontSize)
SetFont(NumberFontNormal, NUMBER, self.db.general.fontSize, MONOCHROME.."OUTLINE")
SetFont(NumberFontNormalSmall, NUMBER, self.db.general.fontSize)
SetFont(NumberFontNormalLarge, NUMBER, self.db.general.fontSize)
SetFont(NumberFontNormalHuge, NUMBER, self.db.general.fontSize)
SetFont(ChatFontNormal, NORMAL, self.db.general.fontSize)
SetFont(ChatFontSmall, NORMAL, self.db.general.fontSize)
SetFont(QuestTitleFont, NORMAL, self.db.general.fontSize + 8)
SetFont(QuestFont, NORMAL, self.db.general.fontSize)
SetFont(QuestFontHighlight, NORMAL, self.db.general.fontSize)
SetFont(ItemTextFontNormal, NORMAL, self.db.general.fontSize)
SetFont(ItemTextFontNormal, NORMAL, self.db.general.fontSize)
SetFont(MailTextFontNormal, NORMAL, self.db.general.fontSize)
SetFont(SubSpellFont, NORMAL, self.db.general.fontSize)
SetFont(DialogButtonNormalText, NORMAL, self.db.general.fontSize)
SetFont(ZoneTextFont, NORMAL, 32, MONOCHROME.."OUTLINE")
SetFont(SubZoneTextFont, NORMAL, 24, MONOCHROME.."OUTLINE")
SetFont(PVPInfoTextFont, NORMAL, 22, MONOCHROME.."OUTLINE")
SetFont(TextStatusBarText, NORMAL, self.db.general.fontSize)
SetFont(TextStatusBarTextSmall, NORMAL, self.db.general.fontSize)
SetFont(InvoiceTextFontNormal, NORMAL, self.db.general.fontSize)
SetFont(InvoiceTextFontSmall, NORMAL, self.db.general.fontSize)
SetFont(CombatTextFont, COMBAT, 25, MONOCHROME.."OUTLINE")
end
end
end