CVars set via addon reset when entering Interface options
Hi,
I'm currently setting CVars via AddOn (nameplate-related to be specific). Unfortunately, the CVars reset whenever I go to Interface options... I tried resetting my Interface, that didn't fix the issue. Any1 has an idea? Edit: NamePlateVerticalScale always resets to its default value by InterfaceOptionsPanel.lua Here's the code of InterfaceOptionsPanel.lua: Code:
function InterfaceOptionsLargerNamePlate_OnLoad(self) |
InterfaceOptionsLargerNamePlate_OnLoad() just sets up those functions to run when you click on the button. :setFunc() gets called by InterfaceOptionsPanel_CheckButton_Update() through InterfaceOptionsPanel_CheckButton_OnClick(). This is also called from InterfaceOptionsPanel_CancelControl() under certain circumstances.
The easiest method would be to nuke :setFunc(). I would also advise disabling the button if this is to be in a published addon. Lua Code:
|
Quote:
The addon is just for private use and just working with CVars n stuff, just to make sure that every single character has the same settings etc. :) |
All times are GMT -6. The time now is 01:38 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI