Thread Tools Display Modes
07-28-20, 08:44 AM   #1
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
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.
  Reply With Quote
07-28-20, 10:01 AM   #2
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
Forget my question: its was an old bug...
Since 8.2, OptionsCheckButtonTemplate needs a <OnClick> handler.

Solved.
  Reply With Quote

WoWInterface » PTR » PTR API and Graphics Changes » CheckButton error en 9.01

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