From 7dbc1b80a0d65e97b459f854018dad0a9a8d0cf4 Mon Sep 17 00:00:00 2001 From: Aviana Date: Sat, 24 Sep 2022 19:29:35 +0200 Subject: [PATCH] font error & autoprofile fix --- LunaUnitFrames.lua | 4 ++-- LunaUnitFrames.toc | 2 +- modules/layout.lua | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/LunaUnitFrames.lua b/LunaUnitFrames.lua index 8344bc7..fdda8bb 100755 --- a/LunaUnitFrames.lua +++ b/LunaUnitFrames.lua @@ -1,7 +1,7 @@ -- Luna Unit Frames 4.0 by Aviana LUF = select(2, ...) -LUF.version = 4336 +LUF.version = 4337 local L = LUF.L local ACR = LibStub("AceConfigRegistry-3.0", true) @@ -1814,7 +1814,6 @@ frame:RegisterEvent("ADDON_LOADED") frame:RegisterEvent("PLAYER_REGEN_DISABLED") frame:RegisterEvent("PLAYER_REGEN_ENABLED") frame:RegisterEvent("PLAYER_ENTERING_WORLD") -frame:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED") frame:SetScript("OnEvent", function(self, event, arg1) if( event == "PLAYER_LOGIN" ) then LUF:OnLoad() @@ -1852,6 +1851,7 @@ frame:SetScript("OnEvent", function(self, event, arg1) queuedEvent = event end elseif event == "PLAYER_ENTERING_WORLD" then + frame:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED") if not LUF.InCombatLockdown then LUF:AutoswitchProfile(event) else diff --git a/LunaUnitFrames.toc b/LunaUnitFrames.toc index b075074..8e2d88d 100755 --- a/LunaUnitFrames.toc +++ b/LunaUnitFrames.toc @@ -2,7 +2,7 @@ ## Title: Luna Unit Frames ## Notes: ## Author: Aviana -## Version: 4336 +## Version: 4337 ## SavedVariables: LunaUFDB ## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets, Clique ## X-License: WTFPL (http://www.wtfpl.net/about/) diff --git a/modules/layout.lua b/modules/layout.lua index bcca541..89bd5bf 100755 --- a/modules/layout.lua +++ b/modules/layout.lua @@ -787,12 +787,15 @@ function LUF.InitializeUnit(frame, unit, notHeaderChild) fstrings.left = parent:CreateFontString(nil, "OVERLAY") fstrings.left:SetDrawLayer("OVERLAY", 7) fstrings.left:SetJustifyH("LEFT") + fstrings.left:SetFont("Fonts\\FRIZQT__.TTF", 8) -- prevent "font not set" errors fstrings.center = parent:CreateFontString(nil, "OVERLAY") fstrings.center:SetDrawLayer("OVERLAY", 7) fstrings.center:SetJustifyH("CENTER") + fstrings.center:SetFont("Fonts\\FRIZQT__.TTF", 8) fstrings.right = parent:CreateFontString(nil, "OVERLAY") fstrings.right:SetDrawLayer("OVERLAY", 7) fstrings.right:SetJustifyH("RIGHT") + fstrings.right:SetFont("Fonts\\FRIZQT__.TTF", 8) end frame:SetScript("OnEnter", function(self)