Go to Page... |
Compatibility: | Gold Road (10.0.0) |
Updated: | 06/03/24 01:19 PM |
Created: | 02/14/14 10:28 PM |
Monthly downloads: | 36,668 |
Total downloads: | 5,008,309 |
Favorites: | 2,824 |
MD5: |
IMPORTANT In case you get an error that contains text like this: user:/AddOns/<some other addon>/Libs/LibAddonMenu-2.0 Some other addon you have installed likely contains an old version of LibAddonMenu which is loaded before the most current one. Make sure to search for LibAddonMenu-2.0 folders in your AddOns folder and delete all of them. Afterwards install the latest version of LibAddonMenu-2.0 separately. Check Kyzderp's guide for more detailed instructions |
## DependsOn: LibAddonMenu-2.0
## DependsOn: LibAddonMenu-2.0>=30
local LAM = LibAddonMenu2 local saveData = {} -- TODO this should be a reference to your actual saved variables table local panelName = "MyAddOnSettingsPanel" -- TODO the name will be used to create a global variable, pick something unique or you may overwrite an existing variable! local panelData = { type = "panel", name = "MyAddOn Settings", author = "me", } local panel = LAM:RegisterAddonPanel(panelName, panelData) local optionsData = { { type = "checkbox", name = "My First Checkbox", getFunc = function() return saveData.myValue end, setFunc = function(value) saveData.myValue = value end } } LAM:RegisterOptionControls(panelName, optionsData)
- use the callbacks "LAM-PanelControlsCreated", "LAM-PanelOpened" and "LAM-PanelClosed" instead- updated Brazilian translation (thanks FelipeS11)
- the panel control is returned by RegisterAddonPanel- added "translation", "feedback" and "donation" properties to panel (#88, thanks Baertram)
- all three (and also the "website" property) accept a function or a string- added "disabled" and "disabledLabel" property for submenus (#86, #90, thanks klingo)
- the function receives the value, min and max as arguments and has to return a clamped value- added optional support for LibDebugLogger
- in case it is loaded, it logs the full error when control creation failed- updated LibStub to r5
- when set to true it changes the text color of the button to red and opens a dialog which shows the label and the warning text before running the callback- added new options for sliders and fixed some bugs (#49)
- autoSelect (boolean): when set to true it makes the input field select all text when it gains focus- for other internal code changes take a look at the git history
- inputLocation (string): setting it to "right" will move the input field to the right side of the slider and make it slightly bigger. For aesthetic reasons this should only be used in custom panels and not in the addon menu
- clampInput (boolean): true by default and if set to false it allows the input values of the slider to exceed the min and max value
- NOTE: the menu is now a bit wider than before, if you created custom elements you might need to update them accordingly- added search box to addon list (thanks votan & merlight)
File Name |
Version |
Size |
Uploader |
Date |
2.0 r36 |
49kB |
sirinsidiator |
03/10/24 04:21 PM |
|
2.0 r35 |
49kB |
sirinsidiator |
10/31/23 01:16 PM |
|
2.0 r34 |
48kB |
sirinsidiator |
06/06/22 05:35 AM |
|
2.0 r33 |
48kB |
sirinsidiator |
03/14/22 02:51 PM |
|
2.0 r32 |
48kB |
sirinsidiator |
12/17/20 02:04 PM |
|
2.0 r31 |
49kB |
sirinsidiator |
06/21/20 03:06 PM |
|
2.0 r30 |
48kB |
sirinsidiator |
10/21/19 03:23 AM |
|
2.0 r29 |
48kB |
sirinsidiator |
05/07/19 11:00 AM |
|
2.0 r28 |
47kB |
sirinsidiator |
05/01/19 09:33 AM |
|
2.0 r27 |
47kB |
sirinsidiator |
04/18/19 03:07 PM |
|
2.0 r26 |
45kB |
sirinsidiator |
05/21/18 02:36 AM |
|
2.0 r25 |
45kB |
sirinsidiator |
09/29/17 12:28 PM |
|
2.0 r24 |
45kB |
sirinsidiator |
07/14/17 01:00 PM |
|
2.0 r23 |
42kB |
sirinsidiator |
10/30/16 10:00 AM |
|
2.0 r22 |
39kB |
sirinsidiator |
08/06/16 07:42 AM |
|
2.0 r21 |
38kB |
sirinsidiator |
07/17/16 11:04 AM |
|
2.0 r20 |
41kB |
sirinsidiator |
03/26/16 10:45 AM |
|
2.0 r19 |
37kB |
sirinsidiator |
02/24/16 12:24 PM |
|
2.0 r18 |
36kB |
sirinsidiator |
06/14/15 01:12 PM |
|
2.0 r17 |
30kB |
sirinsidiator |
02/22/15 11:09 AM |
|
2.0 r16 |
27kB |
Seerah |
11/02/14 02:03 PM |
|
2.0 r14 |
26kB |
Seerah |
07/27/14 10:17 PM |
|
2.0 r13 |
26kB |
Seerah |
07/20/14 09:35 PM |
|
2.0 r12 |
26kB |
Seerah |
07/20/14 07:55 PM |
|
2.0 r11 |
26kB |
Seerah |
07/19/14 02:49 PM |
|
2.0 r10 |
25kB |
Seerah |
07/13/14 09:18 PM |
|
2.0 r9 |
25kB |
Seerah |
07/05/14 06:55 PM |
|
2.0 r8 |
25kB |
Seerah |
06/22/14 09:47 PM |
|
2.0 r7 |
25kB |
Seerah |
06/15/14 05:17 PM |
|
2.0 r6 |
25kB |
Seerah |
06/13/14 11:28 PM |
|
2.0 r5 |
25kB |
Seerah |
06/12/14 10:32 PM |
|
2.0 r4 |
25kB |
Seerah |
06/11/14 08:56 PM |
|
2.0 r3 |
25kB |
Seerah |
06/11/14 07:49 PM |
|
2.0 r2 |
24kB |
Seerah |
06/10/14 10:06 PM |
|
1.0 r8 |
6kB |
Seerah |
05/24/14 10:01 PM |
Comment Options |
vecny.samotar |
View Public Profile |
Send a private message to vecny.samotar |
Send email to vecny.samotar |
Find More Posts by vecny.samotar |
Add vecny.samotar to Your Buddy List |
05/07/19, 11:47 AM | ||
|
|
|
|
Rhyono |
View Public Profile |
Send a private message to Rhyono |
Send email to Rhyono |
Find More Posts by Rhyono |
Add Rhyono to Your Buddy List |
05/06/19, 08:41 PM | ||
Forum posts: 0
File comments: 15
Uploads: 0
|
Update: version 2.0 r29 has fixed this issue. Thank you! "- fixed SetHandler warning showing when a scrollable dropdown is used (#97)" It seems that having a dropdown control with the 'scrollable' attribute set while directly on 'optionsData' is causing the LAM message "setting a handler on a panel is not recommended". When I remove the 'scrollable' attribute (or place inside submenu table) the message goes away, but if I set the attribute to anything then I get the LAM handler message. Also, I only get the LAM handler messages after opening/closing the panels in the settings menu. In file 'LibAddonMenu-2.0\controls\dropdown.lua', within function 'ScrollableDropdownHelper:Initialize(parent, control, visibleRows)', is line 'parent:SetHandler("OnEffectivelyHidden", doHide)' - would this be causing the message about a handler being set directly on a panel? Here is example of dropdown/scrollable causing LAM handler message:
Warning: Spoiler
Code:
local panelData = { type = "panel", name = "MyAddonName", displayName = "MyAddonLongName", author = "MyAddonAuthor", version = "MyAddonVersion", website = "MyAddonWebsite", registerForRefresh = true, registerForDefaults = true, } local optionsData = {} -- ... table.insert(optionsData,{ type = "dropdown", name = "Sort Order", choices = {"Order1", "Order2", "Order3"}, choicesValues = {1, 2, 3}, getFunc = function() return db.sortOrder end, setFunc = function(value) db.sortOrder = value end, tooltip = "Select the sort order.", sort = "value-up", width = "full", disabled = false, default = 1, -- setting 'scrollable' will cause the LAM handler message! scrollable = true, }) local LAM2 = LibStub:GetLibrary("LibAddonMenu-2.0") LAM2:RegisterAddonPanel("MyAddonPanelName", panelData) LAM2:RegisterOptionControls("MyAddonPanelName", optionsData)
Last edited by N00BxV1 : 05/08/19 at 06:26 AM.
|
|
|
N00BxV1 |
View Public Profile |
Send a private message to N00BxV1 |
Send email to N00BxV1 |
Find More Posts by N00BxV1 |
Add N00BxV1 to Your Buddy List |
05/04/19, 06:18 PM | |
Forum posts: 0
File comments: 4
Uploads: 0
|
need help with liliths auto invite
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: attempt to index a nil value
stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: in function 'RefreshReloadUIButton' user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:167: in function 'RequestRefreshIfNeeded' user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:65: in function 'UpdateValue' user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:111: in function '(anonymous)' |
|
letice721 |
View Public Profile |
Send a private message to letice721 |
Send email to letice721 |
Find More Posts by letice721 |
Add letice721 to Your Buddy List |
05/03/19, 03:06 PM | ||
2nd: Most users barely can figure out how to install addons and now you want them to report unknown bugs to unknown authors without a copy paste function because they are spamed in chat instead of a lua error box as usual? I'd say 50% will ignore it, 48% will just disable addons and I'm maybe one of the 2 percenters that reported it here to find ot the source of this chat spam. 3rd: If you woud know me, you woud not says this, I have a history of reporting every little bug to every addon I have ever tested or used. I'm thankfull for all addons and I have spent thousends of hours myself to figure out bugs, trying to fix bugs or helping athors find bugs. As you can imagin I have worked together with lots of AddOn creators and I have seen everything, from thankfull authors that praise me for beeing interested in helping them to find a bug in their code to ppl that told me to **** of and fix it myself. To the later ones all I can say is if you are not interested in making addons userfriendly, why release the addon to the publiic at all?
Last edited by Tonyleila : 05/03/19 at 03:11 PM.
|
||
|
Tonyleila |
View Public Profile |
Send a private message to Tonyleila |
Send email to Tonyleila |
Find More Posts by Tonyleila |
Add Tonyleila to Your Buddy List |
05/02/19, 12:58 PM | |||
|
1st: How should an addon determine if a user is an addon developer? 2nd: YOU as addon user should report this to the addon dev of the addon mentioned, or noone will do it. Not everyone is using every addon and thus showing the messages to all users is the only way to fix this 3rd: If you are not interested in helping, why should devs be interested in updating stuff for you at all? In the end it's your choice if you want to use older versions but don't complain if it's not working anymore with any of your addons in the future. And since when is a chat info breaking any addon? You could easily put the chat output for system messages on it's own chat tab and just igonore it.
Last edited by Baertram : 05/02/19 at 01:00 PM.
|
||
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Send email to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
05/02/19, 12:17 PM | ||
|
||
|
Tonyleila |
View Public Profile |
Send a private message to Tonyleila |
Send email to Tonyleila |
Find More Posts by Tonyleila |
Add Tonyleila to Your Buddy List |
05/02/19, 10:41 AM | ||
Next will be simplifying and clarifying the file comments, and then updating the wiki to match them again, which is a minor change (aesthetic.) |
||
|
Phuein |
View Public Profile |
Send a private message to Phuein |
Send email to Phuein |
Find More Posts by Phuein |
Add Phuein to Your Buddy List |
05/02/19, 08:53 AM | ||
The chat messages will go away once authors have updated their addons to no longer set handlers on LAM panels directly.
Last edited by sirinsidiator : 05/02/19 at 08:53 AM.
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
05/02/19, 08:29 AM | |
Forum posts: 0
File comments: 6
Uploads: 0
|
=( all my votan addons don't work anymore.. i get LAM2 chat spam.... is there a fix?!
|
|
Xvery |
View Public Profile |
Send a private message to Xvery |
Send email to Xvery |
Find More Posts by Xvery |
Add Xvery to Your Buddy List |
05/02/19, 08:16 AM | |
@Tonyleila the message shows the panel name, but if an author didn't give it a proper name it may be a bit hard to discern which addon is responsible.
@Phuein the wiki is way out of date and could use an update |
|
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
05/01/19, 11:52 PM | |
EDIT: Apparently, the wiki lacks documentation on having scrollable = true for Dropdowns (combobox.) I'll do an edit.
https://github.com/sirinsidiator/ESO...M2-data-tables EDIT EDIT: Oh wow, noticed requiresReload option and realized the wiki is way out of date. Should I go over and update it all? https://i.imgur.com/DmUgLTc.jpg Created for testing with: Code:
tbl = {} for i=1,60 do tbl[i] = 'name'..i end ... choices = tbl,
Last edited by Phuein : 05/02/19 at 12:29 AM.
|
|
|
Phuein |
View Public Profile |
Send a private message to Phuein |
Send email to Phuein |
Find More Posts by Phuein |
Add Phuein to Your Buddy List |
05/01/19, 04:18 PM | ||
|
Edit: Nevermind about Auto_LAM
Last edited by Kyoma : 05/01/19 at 04:33 PM.
|
|
|
Kyoma |
View Public Profile |
Send a private message to Kyoma |
Send email to Kyoma |
Find More Posts by Kyoma |
Add Kyoma to Your Buddy List |
05/01/19, 02:54 PM | |
Uhhm woud be nice if the 3x LM2 spam in chat woud tell me WHAT ADDON is causing the errors:
Setting a handler on a panel is not recommended. .... (OnShow on Auto_LAM) Setting a handler on a panel is not recommended. .... (OnEffevctivelyHidden on GridListOptions) (I guess this one is gridlist) Setting a handler on a panel is not recommended. .... (LAM-PanelControlsCreated or LAM-PanelOpend) |
|
|
Tonyleila |
View Public Profile |
Send a private message to Tonyleila |
Send email to Tonyleila |
Find More Posts by Tonyleila |
Add Tonyleila to Your Buddy List |
04/21/19, 06:06 PM | |
|
Thanks for the hard work!
Love the addon. I am in the process of changing all my addons over to point to a central install version of LAM instead of including it in my own subfolders |
|
Weolo |
View Public Profile |
Send a private message to Weolo |
Send email to Weolo |
Find More Posts by Weolo |
Add Weolo to Your Buddy List |