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: | 36,668 |
Total downloads: | 5,008,322 |
Favorites: | 2,824 |
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 |
Gandalf |
View Public Profile |
Send a private message to Gandalf |
Find More Posts by Gandalf |
Add Gandalf to Your Buddy List |
Gandalf |
View Public Profile |
Send a private message to Gandalf |
Find More Posts by Gandalf |
Add Gandalf to Your Buddy List |
rockingdice |
View Public Profile |
Send a private message to rockingdice |
Send email to rockingdice |
Find More Posts by rockingdice |
Add rockingdice to Your Buddy List |
09/05/17, 11:45 AM | |
I'm testing r24, it seems if I enable the scrollable = true for dropdown control, choicesTooltips are not showing anymore, it's a bug or not supported yet?
|
|
|
rockingdice |
View Public Profile |
Send a private message to rockingdice |
Send email to rockingdice |
Find More Posts by rockingdice |
Add rockingdice to Your Buddy List |
09/05/17, 11:35 AM | |||
I'm using dropdown control to show dynamic items. I'm using dropdownCtrl:UpdateChoices(...) function to update its content(Seems the only way to do it), like: Lua Code:
It's very simple, just pass in new table to replace the content for showing. But it will become slower (FPS drops from 60 to 1x) when you click on the dropdown control after you try to use this function several times. I found that if I remove the tooltips data, kinda hack it: (or will be asserted due to choices ~= choicesTooltips): Lua Code:
Then everything goes fine. From the code, I doubt there's something wrong with SetupTooltips function, but not sure of it. Or it's not going to use UpdateChoices like this way? Any other way to update the dropdown data? Currently I have to disable tooltips to avoid this issue. |
|||
|
rockingdice |
View Public Profile |
Send a private message to rockingdice |
Send email to rockingdice |
Find More Posts by rockingdice |
Add rockingdice to Your Buddy List |
07/14/17, 01:01 PM | ||
|
||
|
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 |
07/14/17, 06:15 AM | |
is r24 ready to be released, i am depending on it for the polish translations.
Last edited by CrazyDutchGuy : 07/14/17 at 06:15 AM.
|
|
|
CrazyDutchGuy |
View Public Profile |
Send a private message to CrazyDutchGuy |
Send email to CrazyDutchGuy |
Find More Posts by CrazyDutchGuy |
Add CrazyDutchGuy to Your Buddy List |
05/29/17, 03:05 PM | |||
|
Re: Re: Issue with values not updating
Lua Code:
Last edited by Hozec : 05/29/17 at 03:13 PM.
|
||
|
Hozec |
View Public Profile |
Send a private message to Hozec |
Send email to Hozec |
Find More Posts by Hozec |
Add Hozec to Your Buddy List |
05/29/17, 02:55 PM | ||
Re: Issue with values not updating
Lua Code:
|
||
|
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Send email to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
05/29/17, 02:31 PM | |
|
Issue with values not updating
Hey, so i noticed that if I go into the menu change some setting it shows right away and all of that works good. However if i close out of the settings and use a keybind to change a setting (let's say visibility of an ui element) and I go back to the add on settings and it takes me straight to my settings page the value isn't gotten again until you click away from that settings menu and go back.
I hope that wasn't very confusing. Steps: 1. Go to Settings > Addons. 2. Find an addon that has a setting that you can also toggle via keybind 3. Exit settings (don't have to change any setting from step 2) 4. Use the keybind toggle to change the setting you found in step 2 5. Go to Settings > Addons (It should take you back into the last addon settings page you were in.) 6. Value of the setting you just changed via keybind toggle isn't updated. Not really sure if it is me or the library. I do have registerForRefresh = true, registerForDefaults = true, |
|
Hozec |
View Public Profile |
Send a private message to Hozec |
Send email to Hozec |
Visit Hozec's homepage! |
Find More Posts by Hozec |
Add Hozec to Your Buddy List |
04/25/17, 03:10 AM | ||
Re: Outdated LibAddOn Message
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
04/24/17, 03:48 PM | |
Outdated LibAddOn Message
I noticed this when I logged into ESO after the recent patch, and I've read the notes about what to do. But I'm not sure how to identify which AddOn is using the out of date version.
I have about thirty AddOns so is it just a matter f trial and error to detect which it is? |
|
|
Didz |
View Public Profile |
Send a private message to Didz |
Send email to Didz |
Visit Didz's homepage! |
Find More Posts by Didz |
Add Didz to Your Buddy List |
03/22/17, 07:01 PM | |||
|
|
||
|
Kyoma |
View Public Profile |
Send a private message to Kyoma |
Send email to Kyoma |
Visit Kyoma's homepage! |
Find More Posts by Kyoma |
Add Kyoma to Your Buddy List |
03/22/17, 02:57 PM | ||
Hey Kyoma. Thanks for the contribution. Could you please make a pull request on github? Otherwise I'll loose track of who contributed what. It also makes it easier for me to review your proposed changes.
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
03/22/17, 12:34 PM | |
|
Hey, lovely work from everybody that contributed to LAM. And while I dont consider myself as great as you all I do have a nice addition that I wanted to share. It is an expansion of the dropdown control to make it work with large amounts of entries. Most of the work is done by ZO_ScrollableComboBox but a few changes were needed to avoid issues with focus inside the dropdown list.
Code:
control.combobox = wm:CreateControlFromVirtual(zo_strjoin(nil, name, "Combobox", comboboxCount), control.container, dropdownData.scrollable and "ZO_ScrollableComboBox" or "ZO_ComboBox") .... local dropdown = control.dropdown dropdown:SetSortsItems(false) -- need to sort ourselves in order to be able to sort by value if dropdownData.scrollable then ZO_PreHook(dropdown, "ShowDropdownOnMouseUp", function(self) self.lastParent = self.m_scroll:GetParent() self.m_scroll:SetParent(ZO_Menus) ZO_Menus:BringWindowToTop() end) ZO_PreHook(dropdown, "HideDropdownInternal", function(self) self.m_scroll:SetParent(self.lastParent) end) end
Last edited by Kyoma : 03/22/17 at 07:00 PM.
|
|
Kyoma |
View Public Profile |
Send a private message to Kyoma |
Send email to Kyoma |
Visit Kyoma's homepage! |
Find More Posts by Kyoma |
Add Kyoma to Your Buddy List |