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: | 142,702 |
Total downloads: | 4,862,082 |
Favorites: | 2,788 |
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 |
08/28/22, 04:44 AM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Menu not closing
Hi,
I recently rebuilt my computer, so eso was also reinstalled. The AddonMenu no longer closes for me. The window is split in 2 and the grayed out area stays open when I close the menu. It is already reinstalled, does not help. What can I do? https://imgur.com/a/wFC523L
Last edited by Reason : 08/28/22 at 04:49 AM.
|
|
Reason |
View Public Profile |
Send a private message to Reason |
Find More Posts by Reason |
Add Reason to Your Buddy List |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
06/08/22, 03:24 PM | |
Forum posts: 7
File comments: 2
Uploads: 0
|
PP Scrolling
After the last update, I can no longer click and drag my inventory down or click below the scroll bar to page down in the inventory. I can only use the mouse scroll wheel to go down in the inventory window. It used to work. I unchecked Perfect Pixel and can move the bar down. Also, weird that I am not having the issue on the EU server, even though I have the same exact addons.
Any ideas? |
|
willwilco |
View Public Profile |
Send a private message to willwilco |
Send email to willwilco |
Find More Posts by willwilco |
Add willwilco to Your Buddy List |
06/07/22, 11:04 AM | ||
Instead you should first try to disable regular addons one by one before turning off any libraries. Once you have no more addons to disable you can start turning off the libraries too. |
||
|
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 |
06/07/22, 10:15 AM | |
Forum posts: 3
File comments: 19
Uploads: 0
|
After the High Isle update, whenever I talk to an NPC, the first dialogue window (NPC dialogue text) is always blanked out. Removing this addon seemed to fix it. Anyone else done any testing of this?
|
|
AngryNord |
View Public Profile |
Send a private message to AngryNord |
Send email 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 |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
05/06/22, 11:51 PM | ||
|
didnt think that through....
if ever I want to release the Addon I am working on. Above won't hold true at all... the tooltips on description and header will only work on my end. But not everybody elses :-/ I guess I could Hook your functions and add the tooltip stuff in my part after I run yours? All in all would be much cleaner if you could add it to the official code. Would be most grateful for a response. Even if it is "Not gonna happen". So I can get to work on trying the hook your functions idea.... cheers Edit: saw you had a github repo for this..so thought I give fork/pullrequest a whirl...not sure I did it right though....
Last edited by remosito : 05/07/22 at 02:12 AM.
|
|
|
remosito |
View Public Profile |
Send a private message to remosito |
Send email 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 |
Send email 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 |
Send email 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 |
Send email to Gandalf |
Find More Posts by Gandalf |
Add Gandalf to Your Buddy List |
03/15/22, 07:09 AM | |
Forum posts: 5
File comments: 25
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 |
Send email 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 |
Send email 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 |
Send email 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 |