Quantcast
WoWInterface - View Single Post - Setting a CVar doesn't work when including it in an addon
View Single Post
10-18-20, 04:15 PM   #6
Tim
A Frostmaul Preserver
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 289
Originally Posted by Kenjub View Post
How do I implement this?

Code:
local EventFrame = CreateFrame("Frame")
EventFrame:RegisterEvent("VARIABLES_LOADED")
EventFrame:SetScript("OnEvent", function(_, event)

   SetCVar ("nameplateSelfTopInset", .55)
   SetCVar("nameplateSelfAlpha", 1)

end)
  Reply With Quote