mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 11:40:01 +00:00
nameplates: setup game variables on launch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user