WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR API and Graphics Changes (https://www.wowinterface.com/forums/forumdisplay.php?f=175)
-   -   CheckButton error en 9.01 (https://www.wowinterface.com/forums/showthread.php?t=58123)

Zax 07-28-20 08:44 AM

CheckButton error en 9.01
 
Hello,

Testing addon on beta (9.01), I got an error when clicking on CheckButton defined as follow:
Code:

<CheckButton name="Ck_cfg_sound_Chk" inherits="OptionsCheckButtonTemplate">
Error message:
Code:

Message: Interface\FrameXML\OptionsPanelTemplates.lua:151: attempt to call method 'SetValue' (a nil value)
Time: Tue Jul 28 16:36:39 2020
Count: 2
Stack: Interface\FrameXML\OptionsPanelTemplates.lua:151: attempt to call method 'SetValue' (a nil value)
[string "@Interface\FrameXML\OptionsPanelTemplates.lua"]:151: in function `BlizzardOptionsPanel_CheckButton_SetNewValue'
[string "@Interface\FrameXML\OptionsPanelTemplates.lua"]:131: in function `BlizzardOptionsPanel_CheckButton_OnClick'
[string "*:OnClick"]:6: in function <[string "*:OnClick"]:1>

What should I do in order to fix this error?

Thanks.

Zax 07-28-20 10:01 AM

Forget my question: its was an old bug...
Since 8.2, OptionsCheckButtonTemplate needs a <OnClick> handler.

Solved.


All times are GMT -6. The time now is 05:52 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI