Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Setting a CVar doesn't work when including it in an addon

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off