Quantcast
Download
(48 Kb)
Download
Updated: 10/21/19 03:23 AM
Pictures
File Info
Compatibility:
Dragonhold (5.2.5)
Updated:10/21/19 03:23 AM
Created:02/14/14 10:28 PM
Monthly downloads:78,758
Total downloads:1,196,981
Favorites:1,302
MD5:
LibAddonMenu  Popular! (More than 5000 hits)
Version: 2.0 r30
by: sirinsidiator, Seerah
LibAddonMenu is a library which offers many functions for add-on authors to simplify creating a configuration panel in the game's settings menu.

Users:

If the game cannot load some addon because it is missing LibAddonMenu-2.0 as a dependency, simply download and install it like you would any other addon. In case it shows as "out of date" in the game, simply enable the "allow out of date addons" checkbox.

Developers:

Ever since I (sirinsidiator) have taken over development of LAM-2.0 in 2015, the project is available on github and open for contributions by other authors.

With the ongoing effort to get rid of LibStub in favour of the library management capabilities provided by the game itself since Summerset was released, it is no longer recommended to embed LAM, or use LibStub to access it. Instead it should simply be specified as a dependency and accessed via the new LibAddonMenu2 global variable. Instead of providing it as part of another add-on, users should install and update it separately.

Quickstart:
Simply add LAM2 as a dependency in your addon manifest:
Code:
## DependsOn: LibAddonMenu-2.0
Optionally you can require a specific minimum version of LAM in case you rely on some features that are not available in earlier versions.
Code:
## DependsOn: LibAddonMenu-2.0>=30
In your code you can simply access the library via the global variable "LibAddonMenu2" and start creating your settings panel and controls:

Lua Code:
  1. local LAM = LibAddonMenu2
  2. local saveData = {} -- TODO this should be a reference to your actual saved variables table
  3. local panelName = "MyAddOnSettingsPanel" -- TODO the name will be used to create a global variable, pick something unique or you may overwrite an existing variable!
  4.  
  5. local panelData = {
  6.     type = "panel",
  7.     name = "MyAddOn Settings",
  8.     author = "me",
  9. }
  10. local panel = LAM:RegisterAddonPanel(panelName, panelData)
  11. local optionsData = {
  12.     {
  13.         type = "checkbox",
  14.         name = "My First Checkbox",
  15.         getFunc = function() return saveData.myValue end,
  16.         setFunc = function(value) saveData.myValue = value end
  17.     }
  18. }
  19. LAM:RegisterOptionControls(panelName, optionsData)

For more examples and information you can take a look at exampleoptions.lua, AwesomeGuildStore/Settings.lua, the LAM wiki or the source code. Each control has a full list of available properties in the comment at the start of the lua file.

Features:
  • Controls - LAM offers different control types to build elaborate settings menus
  • Reset to Default - LAM can restore the settings to their default state with one key press
  • Additional AddOn Info - Add a version label and URLs for website, donations, translations or feedback
  • AddOn Search - Can't find the settings for your AddOn between the other hundred entries? No problem! Simply use the text search to quickly find what you are looking for
  • Slash Commands - Provides a shortcut to open your settings menu from chat
  • Tooltips - In case you need more space to explain what a control does, simply use a tooltip
  • Warnings - If your setting causes some unexpected behaviour, you can simply slap a warning on them
  • Dangerous Buttons - when flagged as such, a button will have red text and ask for confirmation before it runs any action
  • Required UI Reload - For cases where settings have to reload the UI or should be stored to disk right away, LAM offers a user friendly way to ask for a UI reload.
  • Support for all 4 official languages and 6 custom localisation projects
2.0 r30
- updated Korean translation (thanks whya5448)
- added "enableLinks" property to description control (#102, thanks silvereyes333)
- updated for Dragonhold

2.0 r29
- fixed a rare error when a panel refresh is triggered by an addon before LAM is fully initialized (#98)
- fixed SetHandler warning showing when a scrollable dropdown is used (#97)
- improved SetHandler warning message to show the panel title instead of the internal name and in addition log to LibDebugLogger for easy access to a stack trace (#99)
- improved comments in control files (#100, thanks Phuein)
- adjusted ReloadUI warning color to match the color of the warning in the ingame video settings (#101, thanks Phuein)

2.0 r28
- fixed color picker throwing errors in gamepad mode (#94, thanks Gandalf)
- added global variable "LibAddonMenu2" for direct access without using LibStub (#95)
- added IsLibrary directive to manifest (#93)
- added warning message when an addon is setting the "OnShow", "OnEffectivelyShown", "OnHide" or "OnEffectivelyHidden" handler on a panel (#92)
- use the callbacks "LAM-PanelControlsCreated", "LAM-PanelOpened" and "LAM-PanelClosed" instead
- updated Brazilian translation (thanks FelipeS11)

2.0 r27
- fixed scrollable dropdown not working correctly (#83)
- fixed disabled sliders changing value in some situations when clicked
- fixed panel not refreshing on open when it was already selected (#82)
- added RefreshPanel function to panel control (#84)
- 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)
- added "icon" and "iconTextureCoords" property for submenus (#91)
- added "disabled" property for descriptions (#89, thanks klingo)
- added "clampFunction" property for slider controls (#85)
- 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

2.0 r26
- fixed error when loading LAM on an unsupported locale
- added Korean translation (thanks p.walker)
- added Brazilian translation (thanks mlsevero)

2.0 r25
- fixed tooltips not working for entries in scrollable dropdown controls (#78, thanks kyoma)
- fixed standalone LAM not loading as expected when LAM is bundled with the manifest included (#81)
- fixed slashcommands not opening the correct panel on first attempt after UI load (#79)
- fixed an error when opening the addon settings menu after Clockwork City update (#80, thanks Gandalf)

2.0 r24
- added scrollable property for dropdown controls (#71, #75, thanks kyoma)
- added Italian translation (#70, thanks JohnnyKing94)
- added Polish translation (#73, #74, thanks EmiruTegryfon)
- updated Spanish translation (thanks TERAB1T)
- updated Russian translation (thanks Morganlefai and Kwisatz)
- fixed debug code not accepting functions for widget names (#72, thanks kyoma)

2.0 r23
- added Chinese translation (#64, thanks bssthu)
- added tooltips for dropdown menu entries (#42)
- added support for separate values for dropdown menu entries (#65)
- added keybind for reset to defaults button (#68)
- added requireReload property for input controls (#47)
- fixed support for nested submenus (#61, thanks Baertram)
- fixed alpha and height not working on divider control (#69)

2.0 r22
- fixed mouse exit events for sliders and textures (#52, thanks silvereyes333)
- fixed decimal input on sliders (#54)
- fixed icon picker not retaining color when disabled is toggled (#58)
- fixed slider accepting mouse wheel input while being disabled (#60)
- added support for nested submenus (#53)
- added new divider widget (#56, thanks silvereyes333)
- added new function "UpdateWarning" to controls which allows to refresh the warning text (#55, thanks silvereyes333)
- added new property "website" to panels which will render a button in the panel to open the specified addon URL (#57)
- updated localization (#59, thanks everyone who helped with it)

2.0 r21
- fixed panel creation starting more than once when switching between different addon panels quickly (#40)
- fixed LAM.util getting wiped with each version load causing errors for many players (#44)
- fixed disabled controls not having the correct label color in some cases (#41)
- fixed controls not updating their own disabled state when their value changes (#51)
- added Japanese translation (thanks k0ta0uchi) (#45)
- added isDangerous flag for button controls (#50)
- 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
- 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
- for other internal code changes take a look at the git history

2.0 r20
- fixed empty panels not firing LAM-PanelControlsCreated (#32)
- removed height constraint of 2500 from submenus (#34)
- added two new callbacks LAM-PanelOpened and LAM-PanelClosed. Both pass the panel as their sole argument (#27)
- 'default' can now be a function in addition to a static value (#23)
- all labels (name, tooltip, warning, etc.) can now be a string id or function in addition to a static string (#22)
- updated LibStub to r4

2.0 r19
- made icon picker choicesTooltips array optional
- added support for custom panel objects without a GetWidth method (partially fixes #26)
- fixed controls not refreshing correctly when they are initialized with a boolean "false" on the disabled property (#35, thanks Randactyl)
- removed height constraint on the description control (#36, thanks KuroiLight)
- added "isExtraWide" property to editboxes, allowing them to utilize more space (#37, thanks KuroiLight)
- added "decimals" property to sliders to allow rounding values to x decimals (#38, implements #21, thanks KuroiLight)
- added mousewheel support for sliders (#39, implements #30, thanks KuroiLight)

2.0 r18
- major overhaul of the addon menu style (thanks votan & merlight)
- 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)
- new icon picker widget
- removed micro freeze when opening a menu with many options for the first time
- changed tooltip property to accept functions that return a string (thanks Ayantir)
- changed the label on the defaults button and menu to avoid a grammar mistake in the french localization (thanks Ayantir)
- updated LibStub to r3 (support for '.' in minor version string, e.g. "17.5")

2.0 r17
- updated for changes in 100011
- fixed OpenToPanel function
- fixed possible error with combobox names
- half width control no longer have a fixed height and instead scale automatically now
- changed controls to no longer use top level windows
- fixed problems with the loading order and added warning if an old version gets initialized first
A big thank you to everyone who helped making these changes, especially votan, merlight and Garkin!

2.0 r16
- updated for changes in 100010
- thanks to Garkin for alerting me of changes needed and for testing on the test server
- Spanish support added, translation provided by Luisen75 for their Spanish project

2.0 r14
- fixed bug where the LAM-RefreshPanel callback was being registered with CALLBACK_MANAGER multiple times
- fixed highlighting of entries in the game Settings menu (Addon Settings now properly highlights and other entries go back to normal)

2.0 r13
- one last bug ran out from anunder the dresser - I smashed it hopefully!

2.0 r12
- fix one bug another shows up...

2.0 r11
- don't overwrite widgets list if table already exists (in case an external lib or addon registers a new widget type)
- headers, descriptions, submenus and custom widgets now have the ability to update their text when the panel and other controls refresh (simply change the name/text in the controlData table)
- custom controls now have the ability to refresh with other controls and your panel - there is a new optional field in the data table called refreshFunc (when the panel refreshes, this function will be called)

2.0 r10
- fixed display of warning icon for dropdown controls
- update LibStub.lua

2.0 r9
- added Russian locale support for RuESO project
- fixed anchoring issue with addon list (addon names are now properly in the scroll frame, so the few of you with tons installed should have no issue any longer)
- added ability to close submenus from the bottom of the submenu (there is a small strip along the bottom of the submenu that is clickable)
- edited each control to better support custom-created UIs via LAM and the parent passed through to the create functions

2.0 r8
- changed border texture around panel and addon list
- expanded maximum size of submenus from 1500 to 2500

2.0 r7
- shortened game menu entry for French and German localizations (so the text doesn't get cut off)
- fixed checkbox label coloring bug (when a checkbox that is set to "off" is re-enabled by another setting)
- fixed multi-line editbox bug (where text didn't display)
- added mousewheel scrolling for multi-line editboxes

2.0 r6
- added "LAM-PanelControlsCreated" callback when you panel has been shown for the first time and your controls have now been created
- fixed duplicate Addon Settings panels when you have a newer version of LAM overwriting an older version
- finished localizing stuff that wasn't localized yet
- added "sort" field to dropdown control

2.0 r5
- fix RefreshPanel function so that all controls now update
- add RefreshPanel call to ForceDefaults function

2.0 r4
- fix for me being an idiot. Sorry guys ><

2.0 r3
- fixed checkboxes making a sound when just refreshing
- fixed error when the lib is loaded standalone, but no addons are registered with it
- fixed error when LAM updates itself to a newer version (won't try to create two of the same frame)

2.0 r2
- LAM-2.0 is now released! See http://www.esoui.com/portal.php?&id=5&pageid=10 for a list of differences between LAM1 and LAM2, as well as a guide for usage and the library's docs

-----------------
1.0 r8
- updated APIVersion to 100004
- changed submenu so scroll bar doesn't overlap contents
- submenu should hopefully no longer occasionally show up behind the options panel

1.0 r7
- the defaults button now properly hides for each panel (Note: the keybind still works, I can't seem to get rid of that, but at least the prompt is hidden now)
- LAM now supports sub menus! See the description page for docs on usage

1.0 r6
- copy/paste fail when changing the name of an arg. Description titles will no longer hide from you.

1.0 r5
- exposed the widgets created via return

1.0 r4
-new widget: Description

1.0 r3
-fixed error with color picker in new patch

1.0 r2
-fixed bug when more than one addon panel is created
Archived Files (28)
File Name
Version
Size
Uploader
Date
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


Post A Reply Comment Options
Unread Yesterday, 11:21 AM  
Atoom
 
Atoom's Avatar

Forum posts: 0
File comments: 67
Uploads: 0
Question about Dropdown controls

Heya,
is it possible to change the list of choices in a LAM dropdown control while its settings pannel displayed on screen?
__________________
Regards,
Atoom
Last edited by Atoom : 05/29/20 at 11:25 AM.
Report comment to moderator  
Reply With Quote
Unread 05/27/20, 10:08 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1379
File comments: 911
Uploads: 36
Re: problem after update

Originally Posted by renzik2538
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.

And how is this related to LibAddonMenu? If you don't know which addon it is, please ask on the forums instead of posting it into a random comment section. Thanks!
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 05/27/20, 05:32 AM  
renzik2538

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.
Report comment to moderator  
Reply With Quote
Unread 05/27/20, 03:33 AM  
Duir

Forum posts: 0
File comments: 4
Uploads: 0
Re: Re: Requires deprecated Addon to function.

Originally Posted by sirinsidiator
Originally Posted by Duir
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.

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.
Yeah, I had it installed on it's own since almost every addon wanted it installed and subsequently removed it from any addon folder that had it (so the game wasn't looking at 6+ versions of the same addon). I had removed libstub (I thought) before update 26 and everything worked fine, only after the update did I get this message. Likely an addon update had reinstalled it as a dependency and it wasn't completely removed until now when I was bumping API versions on some old addons I use.
Report comment to moderator  
Reply With Quote
Unread 05/27/20, 02:52 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1379
File comments: 911
Uploads: 36
Re: Requires deprecated Addon to function.

Originally Posted by Duir
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.

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.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 05/27/20, 12:57 AM  
Duir

Forum posts: 0
File comments: 4
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
Any help is appreciated.

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.
Report comment to moderator  
Reply With Quote
Unread 05/25/20, 02:03 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1379
File comments: 911
Uploads: 36
Re: control type

Originally Posted by Gandalf
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

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?
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 05/25/20, 02:00 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1379
File comments: 911
Uploads: 36
Re: Nested sub menu issue

Originally Posted by Parietic
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
Is this a known limitation and/or intended function of sub menus or a bug?
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 :\
There can be many reasons why it fails to create the control. When you install LibDebugLogger and DebugLogViewer it will show you the error message with a stack trace, which should tell you what went wrong.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 05/25/20, 11:25 AM  
Parietic
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 1
Uploads: 3
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
Is this a known limitation and/or intended function of sub menus or a bug?
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.
Report comment to moderator  
Reply With Quote
Unread 05/15/20, 12:41 PM  
Gandalf
 
Gandalf's Avatar

Forum posts: 25
File comments: 33
Uploads: 0
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.
Report comment to moderator  
Reply With Quote
Unread 03/23/20, 01:24 PM  
WDKeeper
 
WDKeeper's Avatar

Forum posts: 0
File comments: 4
Uploads: 0
Originally Posted by sirinsidiator
Looks like something is wrong with your installation of AwesomeGuildStore. The first error shows that you have LibAddonMenu loaded from within it, but that has been unbundled a long time ago. The second error is a bug in AGS. It tried to print a message to chat telling you that a library is not up to date.
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.
Ah, sorry, you are so right. I just deleted the LibAddonMenu from the lib folder in the AwesomeGuildStore - and everything worked as it should, all addons work now. Apparently, before today update everything worked with it, but today it stopped. Thank you very much for help. I really appreciate your work.
Report comment to moderator  
Reply With Quote
Unread 03/23/20, 01:03 PM  
WDKeeper
 
WDKeeper's Avatar

Forum posts: 0
File comments: 4
Uploads: 0
I figured out how to make it comfortable and not take up so much space. Errors are arranged from top to bottom in the order they occur.

Report comment to moderator  
Reply With Quote
Unread 03/23/20, 12:16 PM  
WDKeeper
 
WDKeeper's Avatar

Forum posts: 0
File comments: 4
Uploads: 0
Originally Posted by sirinsidiator
Looks like something is wrong with your installation of AwesomeGuildStore. The first error shows that you have LibAddonMenu loaded from within it, but that has been unbundled a long time ago. The second error is a bug in AGS. It tried to print a message to chat telling you that a library is not up to date.
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.
No, its no in AGS only, because exactly the same errors occur in RuESO and Tamriel Trade Centre addons (I dont post screenshots from it, because its same and not carries new important information). And AGS wasn’t updated at all, it remained the same as it was before today's ESO update, updated only libs (and only libs that been updated from march 2 to today - LibCustomTitles and LibRunebox). Maybe I must post screens of all errors, for better promlem understanding? Just there will be so many.
Report comment to moderator  
Reply With Quote
Unread 03/23/20, 10:42 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1379
File comments: 911
Uploads: 36
Originally Posted by WDKeeper
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.
Looks like something is wrong with your installation of AwesomeGuildStore. The first error shows that you have LibAddonMenu loaded from within it, but that has been unbundled a long time ago. The second error is a bug in AGS. It tried to print a message to chat telling you that a library is not up to date.
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.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Last edited by sirinsidiator : 03/23/20 at 10:42 AM.
Report comment to moderator  
Reply With Quote
Unread 03/23/20, 10:27 AM  
WDKeeper
 
WDKeeper's Avatar

Forum posts: 0
File comments: 4
Uploads: 0
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.

Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: