Skip to content

Commit

Permalink
font error & autoprofile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviana committed Sep 24, 2022
1 parent fbeafd1 commit 7dbc1b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions LunaUnitFrames.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion LunaUnitFrames.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
3 changes: 3 additions & 0 deletions modules/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7dbc1b8

Please sign in to comment.