nameplates: setup game variables on launch

This commit is contained in:
shagu
2020-09-14 00:34:18 +02:00
parent 99c5ccdef3
commit de15c42c65
+5
View File
@@ -160,6 +160,11 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
-- create nameplate core
local nameplates = CreateFrame("Frame", "pfNameplates", UIParent)
nameplates:RegisterEvent("PLAYER_ENTERING_WORLD")
nameplates:SetScript("OnEvent", function()
this:SetGameVariables()
end)
nameplates:SetScript("OnUpdate", function()
parentCount = WorldFrame:GetNumChildren()
if initialized < parentCount then