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: | 147,327 |
Total downloads: | 4,878,879 |
Favorites: | 2,791 |
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 |
Phuein |
View Public Profile |
Send a private message to Phuein |
Find More Posts by Phuein |
Add Phuein to Your Buddy List |
01/18/21, 07:50 PM | |
Forum posts: 0
File comments: 5
Uploads: 0
|
Errors thrown by addons using LibAddonMenu-2.0
3 otherwise unrelated Addons all throw me a dialog full of errors when I try to change a setting. In each case the errors start with: "user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value"
The addons I'm using are Hodor Reflexes, JunkBuster, and Raid Notifier. I have deleted all existing "LibAddonMenu-2.0" folders and installed the latest "LibAddonMenu-2.0" (17-Dec-20). In fact I've done this multiple times with no change in the behavior. Any idea what's causing this? |
|
ECWasHere |
View Public Profile |
Send a private message to ECWasHere |
Find More Posts by ECWasHere |
Add ECWasHere to Your Buddy List |
01/19/21, 05:53 AM | |||
Re: Errors thrown by addons using LibAddonMenu-2.0
Last edited by sirinsidiator : 01/19/21 at 05:53 AM.
|
|||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
01/19/21, 02:20 PM | ||||
Forum posts: 0
File comments: 5
Uploads: 0
|
Re: Re: Errors thrown by addons using LibAddonMenu-2.0
Firstly, yes I had deleted all LibAddonMenu folders. The problem is caused by having any out-of-date addon which depends on LibAddonMenu loaded. Minion failed to update my Combat Metrics. With that removed the error goes away. (Also updated it after, thanks Minion.) |
|||
|
ECWasHere |
View Public Profile |
Send a private message to ECWasHere |
Find More Posts by ECWasHere |
Add ECWasHere to Your Buddy List |
02/10/21, 10:18 AM | |
|
It would be nice to be able to make a control invisible when defining it. I wanted to show a few settings just to nightblades and had to to some table mergings to achieve that
|
|
andy.s |
View Public Profile |
Send a private message to andy.s |
Find More Posts by andy.s |
Add andy.s to Your Buddy List |
04/25/21, 11:13 PM | |
Issue with dropdown control
Hello,
I'm trying to create a profile system for my addons settings, and have hit a snag. So I'm passing a table from my saved variables to a dropdown control, However when the table is changed (eg, adding a profile name to the choices table) the dropdown options do not update. Lua Code:
Is this behavior working as normal or have I messed something up? I am not getting any errors in debug viewer and everything else is updating with SV changes like you would expect.
Last edited by Parietic : 04/25/21 at 11:14 PM.
|
|
|
Parietic |
View Public Profile |
Send a private message to Parietic |
Find More Posts by Parietic |
Add Parietic to Your Buddy List |
05/12/21, 10:34 PM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Add-On Settings Menu
Does anyone know anything about this bug in the Add-Ons Settings menu? There seems to be a glitch with the "defaults" button on the bottom of the settings windows for my Add-Ons. I think it has something to do with the 'LibAddonMenu' library. Does anyone know how to fix this?
https://imgur.com/BTCje1Y |
|
Valakai |
View Public Profile |
Send a private message to Valakai |
Send email to Valakai |
Find More Posts by Valakai |
Add Valakai to Your Buddy List |
05/13/21, 11:20 AM | ||
Re: Issue with dropdown control
I had the same problem - I create a settings panel with: Lua Code:
If I modify controlStructure afterwards, the change is not reflected in the settings panel. By reading LAM2 code I found out that the problem can be solved using "reference" attribute. Modify your code above to this: Lua Code:
Lua Code:
Last edited by SimonIllyan : 05/13/21 at 11:21 AM.
|
||
|
SimonIllyan |
View Public Profile |
Send a private message to SimonIllyan |
Send email to SimonIllyan |
Find More Posts by SimonIllyan |
Add SimonIllyan to Your Buddy List |
05/18/21, 05:15 AM | |
Forum posts: 0
File comments: 25
Uploads: 0
|
Major Issue, apparently with LibAddonMenu
I cannot log into ESO if LibAddonMenu-2.0r32 is running.
I spent time doing a split-half verification, determined the inability to load into world was anytime LAM.2.0 was loaded, with the most common issues being never loading or timing out. I removed LAM via Minion, verified it was removed, tested log in successfully, verified there weren't any other versions of it loading from inside other Addons and then tried a fresh install. Issue recurred. UpdateHow can I help resolve this? Every AddOn Addict knows how critical LAM 2.0 is to most of their customized interface, so I'm happy to help if I can. Thank you!
Last edited by Mortlach : 05/18/21 at 05:12 PM.
|
|
Mortlach |
View Public Profile |
Send a private message to Mortlach |
Send email to Mortlach |
Find More Posts by Mortlach |
Add Mortlach to Your Buddy List |
05/20/21, 10:16 AM | |||
Forum posts: 2
File comments: 105
Uploads: 0
|
Hi!
When setting a function as tooltip supplier for dropdowns it will be called only once on initialization. I expected it would be called directly before the tooltip will be shown. But it seems it doesn't. The choicesTooltips work fine. But I also want a choice-dependent tooltip for the dropdown itself. Or is there a function like SetTooltipText I can call myself for such a behaviour? ... I have detected an issue with choicesTooltips: when selecting an entry the dropdown closes, but the choice-tooltip remains. So we are not getting a mouseexit event and the tooltip will remain until the next mouseenter event which will set a tooltip. For the main combobox tooltip at least lines 385 and 386 in dropdown.lua had to be changed
should be more like
With that it works better. And the tooltip is now linked to the correct control. But there seems to be another listener at the container around the combobox.
Last edited by demawi : 05/20/21 at 12:00 PM.
|
||
|
demawi |
View Public Profile |
Send a private message to demawi |
Send email to demawi |
Find More Posts by demawi |
Add demawi to Your Buddy List |
06/02/21, 06:48 AM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
The game says, that the addon is outdated. Any new version? Or any advice how to fix it?
|
|
KeloSteicko |
View Public Profile |
Send a private message to KeloSteicko |
Send email to KeloSteicko |
Find More Posts by KeloSteicko |
Add KeloSteicko to Your Buddy List |
09/29/21, 10:56 AM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Mine shows the same message, and I have the latest version loaded.
|
|
mark8753 |
View Public Profile |
Send a private message to mark8753 |
Send email to mark8753 |
Find More Posts by mark8753 |
Add mark8753 to Your Buddy List |
10/19/21, 12:39 PM | |
iconpicker control - updatable
Hello!
When I tried to update choices/choicesTooltips with: Lua Code:
I added this functionality with some minor changes to the following methods/functions: in IconPickerMenu:Clear() Lua Code:
In IconPickerMenu:AddIcon() Lua Code:
and in local function UpdateChoices() Lua Code:
Hope you can use this for the next update. Cheers, Gandalf
Last edited by Gandalf : 10/19/21 at 12:55 PM.
|
|
|
Gandalf |
View Public Profile |
Send a private message to Gandalf |
Send email to Gandalf |
Find More Posts by Gandalf |
Add Gandalf to Your Buddy List |
01/25/22, 08:43 PM | |
Forum posts: 0
File comments: 2
Uploads: 0
|
Libaddonmenu-2.0
Everytime i try and click on an option for any addon i get the following text
user:/AddOns/OpenGlaza/Lib/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value stack traceback: user:/AddOns/OpenGlaza/Lib/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: in function 'RefreshReloadUIButton' user:/AddOns/OpenGlaza/Lib/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: in function 'RequestRefreshIfNeeded' user:/AddOns/OpenGlaza/Lib/LibAddonMenu-2.0/controls/checkbox.lua:65: in function 'UpdateValue' user:/AddOns/OpenGlaza/Lib/LibAddonMenu-2.0/controls/checkbox.lua:111: in function '(anonymous)' I deleted and reinstalled LibaddonMenu-2.0 and have the same problem |
|
lordwolfx |
View Public Profile |
Send a private message to lordwolfx |
Send email to lordwolfx |
Find More Posts by lordwolfx |
Add lordwolfx to Your Buddy List |
01/26/22, 03:19 PM | ||
Re: Libaddonmenu-2.0
|
||
|
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 |