Quantcast
WoWInterface - View Single Post - Setting a CVar doesn't work when including it in an addon
View Single Post
10-17-20, 11:47 AM   #1
Kenjub
A Deviate Faerie Dragon
Join Date: Jul 2018
Posts: 15
Setting a CVar doesn't work when including it in an addon

Hi.

Apparently CVars aren't being saved when you log out (well, some aren't being saved) so I gotta hit a macro with the following CVars everytime I log in:

Code:
/run SetCVar ("nameplateSelfTopInset", .55)
/run SetCVar("nameplateSelfAlpha", 1)
but as you can guess, having to hit a macro every time you log in just to have UI looking like you want it to is a bit annoying, so I made a simple addon and included these SetCVars in the addon - nothing major, it's basically the code above just without the /run part.

However it doesn't work at all. I still gotta hit the macro everytime I log in and the altered cvars reset themselves upon logout/reload UI. What am I missing here, what can I do?
  Reply With Quote