Go to Page... |
Compatibility: | Scions of Ithelia (9.3.0) Endless Archive (9.2.5) |
Updated: | 03/10/24 04:21 PM |
Created: | 02/14/14 10:28 PM |
Monthly downloads: | 84,178 |
Total downloads: | 4,662,079 |
Favorites: | 2,744 |
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 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 |
AngryNord |
View Public Profile |
Send a private message to AngryNord |
Find More Posts by AngryNord |
Add AngryNord to Your Buddy List |
06/01/22, 03:02 PM | |
Thanks for your contributions @remosito and @Gandalf.
Unfortunately I can't add the change to IconPicker's UpdateChoices function as it would change the behaviour of that function in unexpected ways compared to how LAM usually behaves. The current way is that an addon changes the data table in its own code and then calls UpdateChoices without any arguments. I did however add code to hide the icons when they are returned to the pool. I've put together a new version here. Please let me know if it works for you.
Last edited by sirinsidiator : 06/05/22 at 10:00 AM.
|
|
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
remosito |
View Public Profile |
Send a private message to remosito |
Find More Posts by remosito |
Add remosito to Your Buddy List |
05/03/22, 01:16 AM | |
|
Hi again,
working on a new Addon and was wishing that Header and Description had Tooltips too that show up on mousenter... so I thought..mmhh..maybe I can make it happen. Once I remembered it's LibAddonMenu and not LibCustomMenu that does the Settings and stopped changing the wrong damn code and wonder why nothing happened. It was surprisingly easy... header.lua: starting line 37 Code:
if headerData.tooltip then header:SetMouseEnabled(true) header.data = {tooltipText = LAM.util.GetStringFromValue(headerData.tooltip)} header:SetHandler("OnMouseEnter", ZO_Options_OnMouseEnter) header:SetHandler("OnMouseExit", ZO_Options_OnMouseExit) end description.lua: starting line 76 Code:
if descriptionData.tooltip then desc:SetMouseEnabled(true) desc.data = {tooltipText = LAM.util.GetStringFromValue(descriptionData.tooltip)} desc:SetHandler("OnMouseEnter", ZO_Options_OnMouseEnter) desc:SetHandler("OnMouseExit", ZO_Options_OnMouseExit) if control.title then control.title:SetMouseEnabled(true) control.title.data = {tooltipText = LAM.util.GetStringFromValue(descriptionData.tooltip)} control.title:SetHandler("OnMouseEnter", ZO_Options_OnMouseEnter) control.title:SetHandler("OnMouseExit", ZO_Options_OnMouseExit) end end It's rather a trivial change. And shouldn't change behaviour at all if no tooltip = "tooltiptext" is set. Might make sense to add it officially? No problem if you think should not be in. LibAddonMenu doesn't get frequent updates as it is so stable. So in the odd case like U34 with drawtiers/level/layers change. I can always readd it to my local copy easily... :-)
Last edited by remosito : 05/03/22 at 02:08 AM.
|
|
remosito |
View Public Profile |
Send a private message to remosito |
Find More Posts by remosito |
Add remosito to Your Buddy List |
04/27/22, 12:08 AM | |
|
requiresreload and discard
Howdie,
thanks for this kickass library :-) Was breaking my head over how I handle the ReloadUI and it's Discard Option and how I can catch it's response so I can not do anything on next reload if it was discarded. Checked other Addons. They either didn't seem to do anything. Or just call the ReloadUI themselves in the setfunc function. Which I didn't like much for my Addon. More by chance, doing a windows search for discard over all my installed addons. I ended up in your code. And when looking at it I was "What? Are you really resetting to previous value if discard is chosen?" And lo and behold. You do! Which is totally awesome! And makes a lot of sense! I just had no idea! Maybe add it (more prominently? (is it there somewhere and I just missed it) to the Wiki? maybe as some additional text (like "LibAddonMenu handles the ReloadUI Discard Option itself and rolls back the changes automatically) to the examples code comment or the requiresreload row in the table on the control pages? anyway... superb lib with some really kickass unknown to me bonus functionality :-) cheers PS.. am I right in assuming it will just roll back the changes for options with requiresreload parameter. and leave changes for options without requiresreload untouched?
Last edited by remosito : 04/27/22 at 12:57 AM.
|
|
remosito |
View Public Profile |
Send a private message to remosito |
Find More Posts by remosito |
Add remosito to Your Buddy List |
04/20/22, 09:59 AM | |
PTS Update 34 - iconpicker
Due to Layer/Tier changes in update 34. Iconpicker does not work anymore: Icons become non-clickable.
Set DrawLevel(DL_OVERLAY) for the icon texture restores the functionality (textures default is now DL_BACKGROUND): Code:
#87.1 icon:SetDrawLayer(DL_CONTROLS) @Sirinsidator: If you release an updated LibAddonMenu, including the suggested changes from my comment 10/19/21 below would be very nice. Cheers, Gandalf Edit 05/10/22: There is no need to go higher than DL_CONTROLS
Last edited by Gandalf : 05/10/22 at 02:11 AM.
|
|
|
Gandalf |
View Public Profile |
Send a private message to Gandalf |
Find More Posts by Gandalf |
Add Gandalf to Your Buddy List |
03/15/22, 07:09 AM | |
Forum posts: 5
File comments: 24
Uploads: 0
|
LibAddonKeybinds Error
For your reference if it's related to your recent mod update. Not sure how to determine, which mod has affected LibAddonKeybinds
https://www.esoui.com/downloads/info....html#comments
Last edited by Jysoul : 03/15/22 at 07:23 AM.
|
|
Jysoul |
View Public Profile |
Send a private message to Jysoul |
Find More Posts by Jysoul |
Add Jysoul to Your Buddy List |
02/26/22, 02:20 AM | |||
Forum posts: 0
File comments: 1
Uploads: 0
|
Re: Re: Libaddonmenu-2.0
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:326: function expected instead of nil stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:326: in function 'm_callback' /EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:77: in function 'HandleCallback' /EsoUI/Libraries/ZO_KeybindButton/ZO_KeybindButton.lua:194: in function 'ZO_KeybindButtonMixin:OnClicked' /EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:1253: in function 'ZO_Dialogs_HandleButtonForKeybind' /EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:1265: in function 'ZO_Dialogs_ButtonKeybindPressed' :1: in function '(main chunk)' This is my error message |
||
|
PSYCHEER |
View Public Profile |
Send a private message to PSYCHEER |
Find More Posts by PSYCHEER |
Add PSYCHEER to Your Buddy List |
01/26/22, 03:19 PM | ||
Re: Libaddonmenu-2.0
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator 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 |
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 |
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 |
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 |
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 |
05/18/21, 05:15 AM | |
Forum posts: 0
File comments: 24
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 |