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: | 146,027 |
Total downloads: | 4,873,190 |
Favorites: | 2,790 |
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 |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
05/27/20, 05:32 AM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
problem after update
hey, after the new update i open minion and updated all the addons and now im getting an error i didnt change anything or do anything just clicked update all.
Code:
EsoUI/Libraries/Utility/ZO_AlphaAnimation.lua:68: attempt to index a nil value stack traceback: EsoUI/Libraries/Utility/ZO_AlphaAnimation.lua:68: in function 'ZO_AlphaAnimation_GetAnimation' EsoUI/Ingame/Map/MapPin.lua:1792: in function 'ZO_MapPin:ResetAnimation' user:/AddOns/AUI/modules/minimap/classes/PinClass.lua:20: in function 'AUI_Pin:New' (tail call): ? EsoUI/Libraries/Utility/ZO_ObjectPool.lua:141: in function 'ZO_ObjectPool:AcquireObject' user:/AddOns/AUI/modules/minimap/classes/MapPinClass.lua:88: in function 'AUI_MapPin:CreatePin' user:/AddOns/AUI/modules/minimap/Pin.lua:620: in function 'AUI.Minimap.Pin.Init' user:/AddOns/AUI/modules/minimap/Minimap.lua:70: in function 'AUI.Minimap.Load' user:/AddOns/AUI/AUI.lua:94: in function 'AUI_OnLoad' user:/AddOns/AUI/modules/minimap/classes/PinClass.lua:16: attempt to index a nil value stack traceback: user:/AddOns/AUI/modules/minimap/classes/PinClass.lua:16: in function 'AUI_Pin:New' (tail call): ? EsoUI/Libraries/Utility/ZO_ObjectPool.lua:141: in function 'ZO_ObjectPool:AcquireObject' user:/AddOns/AUI/modules/minimap/classes/MapPinClass.lua:88: in function 'AUI_MapPin:CreatePin' user:/AddOns/AUI/modules/minimap/Pin.lua:893: in function 'ZO_WM_CreatePin' user:/AddOns/AUI/functions/Hook.lua:25: in function 'CreatePin' user:/AddOns/LibMapPins-1.0/LibMapPins-1.0.lua:194: in function 'lib:CreatePin' user:/AddOns/Destinations/Destinations.lua:3854: in function 'MapCallback_unknown' EsoUI/Ingame/Map/WorldMap.lua:1500: in function 'ZO_WorldMapPins:RefreshCustomPins' user:/AddOns/LibMapPins-1.0/LibMapPins-1.0.lua:160: in function 'lib:AddPinType' user:/AddOns/Destinations/Destinations.lua:5655: in function 'SetPinLayouts' user:/AddOns/Destinations/Destinations.lua:9478: in function 'OnLoad' user:/AddOns/AUI/modules/minimap/classes/PinClass.lua:16: attempt to index a nil value stack traceback: user:/AddOns/AUI/modules/minimap/classes/PinClass.lua:16: in function 'AUI_Pin:New' (tail call): ? EsoUI/Libraries/Utility/ZO_ObjectPool.lua:141: in function 'ZO_ObjectPool:AcquireObject' user:/AddOns/AUI/modules/minimap/classes/MapPinClass.lua:88: in function 'AUI_MapPin:CreatePin' user:/AddOns/AUI/modules/minimap/Pin.lua:893: in function 'ZO_WM_CreatePin' user:/AddOns/AUI/functions/Hook.lua:25: in function 'CreatePin' user:/AddOns/LibMapPins-1.0/LibMapPins-1.0.lua:194: in function 'lib:CreatePin' user:/AddOns/Destinations/Destinations.lua:3854: in function 'MapCallback_unknown' EsoUI/Ingame/Map/WorldMap.lua:1500: in function 'ZO_WorldMapPins:RefreshCustomPins' EsoUI/Ingame/Map/WorldMap.lua:3837: in function 'ZO_WorldMap_UpdateMap' EsoUI/Ingame/Map/WorldMap.lua:5395: in function 'callback' EsoUI/Libraries/Utility/ZO_CallbackObject.lua:116: in function 'ZO_CallbackObject:FireCallbacks' EsoUI/Ingame/Map/WorldMap.lua:4614: in function '(anonymous)' user:/AddOns/AUI/modules/minimap/classes/PinClass.lua:16: attempt to index a nil value stack traceback: user:/AddOns/AUI/modules/minimap/classes/PinClass.lua:16: in function 'AUI_Pin:New' (tail call): ? EsoUI/Libraries/Utility/ZO_ObjectPool.lua:141: in function 'ZO_ObjectPool:AcquireObject' user:/AddOns/AUI/modules/minimap/classes/MapPinClass.lua:88: in function 'AUI_MapPin:CreatePin' user:/AddOns/AUI/modules/minimap/Pin.lua:893: in function 'ZO_WM_CreatePin' user:/AddOns/AUI/functions/Hook.lua:25: in function 'CreatePin' user:/AddOns/LibMapPins-1.0/LibMapPins-1.0.lua:194: in function 'lib:CreatePin' user:/AddOns/Lorebooks/LoreBooks.lua:448: in function 'CreatePins' user:/AddOns/Lorebooks/LoreBooks.lua:593: in function '(anonymous)'
Last edited by renzik2538 : 05/27/20 at 05:34 AM.
|
|
renzik2538 |
View Public Profile |
Send a private message to renzik2538 |
Find More Posts by renzik2538 |
Add renzik2538 to Your Buddy List |
05/27/20, 03:33 AM | |||
Forum posts: 6
File comments: 15
Uploads: 0
|
Re: Re: Requires deprecated Addon to function.
|
||
|
Duir |
View Public Profile |
Send a private message to Duir |
Find More Posts by Duir |
Add Duir to Your Buddy List |
05/27/20, 02:52 AM | ||
Re: Requires deprecated Addon to function.
LibStub is an OptionalDependsOn because is (still) embedded in LibAddonMenu the old way. Unless you manually deleted the LibStub.lua file, this error can and does not happen. But rest assured, I plan to remove it and make it a real optional dependency in the next version. |
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
05/27/20, 12:57 AM | |
Forum posts: 6
File comments: 15
Uploads: 0
|
Requires deprecated Addon to function.
Getting the following after logging in after update 26:
Code:
Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:8: attempt to index a nil value stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:8: in function '(main chunk)' <Locals> MAJOR = "LibAddonMenu-2.0", MINOR = 30 </Locals>|r 2020-05-26T23:49:54.685-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/panel.lua:20: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/panel.lua:20: in function '(main chunk)' <Locals> widgetVersion = 15 </Locals>|r 2020-05-26T23:49:54.686-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/submenu.lua:14: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/submenu.lua:14: in function '(main chunk)' <Locals> widgetVersion = 13 </Locals>|r 2020-05-26T23:49:54.686-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/button.lua:15: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/button.lua:15: in function '(main chunk)' <Locals> widgetVersion = 11 </Locals>|r 2020-05-26T23:49:54.687-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:17: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:17: in function '(main chunk)' <Locals> widgetVersion = 14 </Locals>|r 2020-05-26T23:49:54.687-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/colorpicker.lua:17: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/colorpicker.lua:17: in function '(main chunk)' <Locals> widgetVersion = 14 </Locals>|r 2020-05-26T23:49:54.687-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/custom.lua:9: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/custom.lua:9: in function '(main chunk)' <Locals> widgetVersion = 7 </Locals>|r 2020-05-26T23:49:54.688-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/description.lua:14: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/description.lua:14: in function '(main chunk)' <Locals> widgetVersion = 10 </Locals>|r 2020-05-26T23:49:54.690-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/dropdown.lua:22: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/dropdown.lua:22: in function '(main chunk)' <Locals> widgetVersion = 20 </Locals>|r 2020-05-26T23:49:54.691-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/editbox.lua:19: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/editbox.lua:19: in function '(main chunk)' <Locals> widgetVersion = 14 </Locals>|r 2020-05-26T23:49:54.691-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/header.lua:10: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/header.lua:10: in function '(main chunk)' <Locals> widgetVersion = 8 </Locals>|r 2020-05-26T23:49:54.692-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/slider.lua:24: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/slider.lua:24: in function '(main chunk)' <Locals> widgetVersion = 13 </Locals>|r 2020-05-26T23:49:54.692-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/texture.lua:14: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/texture.lua:14: in function '(main chunk)' <Locals> widgetVersion = 9 </Locals>|r 2020-05-26T23:49:54.694-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/iconpicker.lua:23: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/iconpicker.lua:23: in function '(main chunk)' <Locals> widgetVersion = 8 </Locals>|r 2020-05-26T23:49:54.694-08:00 |cff0000Lua Error: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/divider.lua:11: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/divider.lua:11: in function '(main chunk)' <Locals> widgetVersion = 2 </Locals>|r EDIT: I figured it out. Looks this requires the deprecated addon Libstub. It's mentioned as an "OptionalDependsOn" in the text but that seems to be a lie.
Last edited by Duir : 05/27/20 at 02:09 AM.
|
|
Duir |
View Public Profile |
Send a private message to Duir |
Find More Posts by Duir |
Add Duir to Your Buddy List |
05/25/20, 02:03 PM | ||
Re: control type
Thanks for the reports. I've created two issues on github for them (#115, #114). Do you have some steps how I can easily test the interference problem? |
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
05/25/20, 02:00 PM | ||
Re: Nested sub menu issue
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
05/25/20, 11:25 AM | |
Nested sub menu issue
Hello,
When attempting to create a editbox and slider with in a nested sub menu LAM2 spits out an error: Code:
[LAM2] Could not crate slider 'name' of AddonName If this is intended does anyone know of a work around? Thanks for the hard work btw, such an amazing lib. *edit: Tested with non-nested sub menus and it works fine :\
Last edited by Parietic : 05/25/20 at 12:53 PM.
|
|
|
Parietic |
View Public Profile |
Send a private message to Parietic |
Find More Posts by Parietic |
Add Parietic to Your Buddy List |
05/15/20, 12:41 PM | |
control type
Hello!
I noticed two issues with the choicesTooltips option of the dropdown control of LAM: 1) Addon Interference The prehook function ShowTooltip interferce with other addons prehooking m_comboBox for adding their tooltips. A check whether control.tooltip actually exists is missing. As a consequence if this hook is triggered by an other addon, the gobal InformationTooltip will be cleared. A check should be added: Code:
local function SetupTooltips(comboBox, choicesTooltips) #75 local function ShowTooltip(control) #75.1 if not control.tooltip then return end -- proposed fix #76 InitializeTooltip(InformationTooltip, control, TOPLEFT, 0, 0, BOTTOMRIGHT) #77 SetTooltipText(InformationTooltip, LAM.util.GetStringFromValue(control.tooltip)) #78 InformationTooltipTopLevel:BringWindowToTop() #79 end 2) Readability The tooltip of dropdown is hidden behind and #78 InformationTooltipTopLevel:BringWindowToTop() shows no effect. control.tooltip interferce with a prehook of ArkadiusTradeTools. Using something else than control.tooltip to store the tooltip strings resolves a part of the interference. BringWindowToTop() still won't work when ATT is installed. I suggest to use: control.LAMdropdownTooltip instead control.tooltip Thanks for maintaining this great library! Gandalf
Last edited by Gandalf : 05/16/20 at 10:02 AM.
|
|
|
Gandalf |
View Public Profile |
Send a private message to Gandalf |
Find More Posts by Gandalf |
Add Gandalf to Your Buddy List |
03/23/20, 01:24 PM | ||
|
||
|
WDKeeper |
View Public Profile |
Send a private message to WDKeeper |
Find More Posts by WDKeeper |
Add WDKeeper to Your Buddy List |
03/23/20, 01:03 PM | |
|
WDKeeper |
View Public Profile |
Send a private message to WDKeeper |
Find More Posts by WDKeeper |
Add WDKeeper to Your Buddy List |
03/23/20, 12:16 PM | ||
|
||
|
WDKeeper |
View Public Profile |
Send a private message to WDKeeper |
Find More Posts by WDKeeper |
Add WDKeeper to Your Buddy List |
03/23/20, 10:42 AM | ||
Try to delete the whole AwesomeGuildStore folder and install it freshly and make sure you have the latest version of all the dependencies listed in its description installed.
Last edited by sirinsidiator : 03/23/20 at 10:42 AM.
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
03/23/20, 10:27 AM | |
Hi! Some errorreport here ))
After today ESO update, three addons dont want working no longer. There are: Awesome Guildstore, RuESO and TTC. All of it uses LibAddonMenu-2.0. I updated the addons, and updated the libraries, manually, as usual. All three add-ons report bugs in the LibAddonMenu library. There are a lot of error messages, +/- 5 for each add-on, and in order not to flood this message, I posted only two screenshots (if need more - I screenshoot and post all of it). Other errors are similar, only another line is indicated in the LibAddonMenu. I think, maybe the update of the LibAddonMenu is need. |
|
|
WDKeeper |
View Public Profile |
Send a private message to WDKeeper |
Find More Posts by WDKeeper |
Add WDKeeper to Your Buddy List |
03/12/20, 04:33 PM | ||
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |