ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   LAM2 button type setting (https://www.esoui.com/forums/showthread.php?t=2495)

Argusus 12/04/14 03:15 PM

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.

Garkin 12/04/14 04:33 PM

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.

Argusus 12/04/14 04:35 PM

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.

Seerah 12/04/14 11:12 PM

I replied to your bug report already as well: http://www.esoui.com/portal.php?id=5...bug&bugid=1160

Argusus 12/05/14 01:10 AM

Okay thanks. I'll try to simplify my code to identify the issue and post how I'm configuring the Window.


All times are GMT -6. The time now is 07:47 AM.

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