Thread Tools Display Modes
12/04/14, 03:15 PM   #1
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
LAM2 button type setting

hello,

i'm using a "button" type in my config which will "clear" a users saved vars if they wish to. however, they "func" arg is being called "onload" of the addon settings window rather than when I "click" the button to actually fire the event , which is not good . any adviceon how to correct ? I'm using drop downs and check boxes without issue for other items.
  Reply With Quote
12/04/14, 04:33 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
You have posted exactly the same qustion as a comment to the LibAddonMenu. I was looking into the library code before and I have looked now, but I still didn't find line where is "buttonData.func" called in the code except of "OnClicked" handler:
Lua Code:
  1. button:SetHandler("OnClicked", function(self, ...)
  2.         buttonData.func(self, ...)
  3.         if control.panel.data.registerForRefresh then
  4.             cm:FireCallbacks("LAM-RefreshPanel", control)
  5.         end
  6.     end)

Maybe if you post a code which you use we can find what is going on.
  Reply With Quote
12/04/14, 04:35 PM   #3
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
Yes I did, sorry about that. I wasn't sure if that thread was monitored. Okay, I'll posted the code when I get a chance.
  Reply With Quote
12/04/14, 11:12 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
I replied to your bug report already as well: http://www.esoui.com/portal.php?id=5...bug&bugid=1160
  Reply With Quote
12/05/14, 01:10 AM   #5
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
Okay thanks. I'll try to simplify my code to identify the issue and post how I'm configuring the Window.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » LAM2 button type setting

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