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,978 |
Total downloads: | 4,659,949 |
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 |
tomtomhotep |
View Public Profile |
Send a private message to tomtomhotep |
Visit tomtomhotep's homepage! |
Find More Posts by tomtomhotep |
Add tomtomhotep to Your Buddy List |
08/13/19, 07:06 AM | ||
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
08/12/19, 07:00 PM | |
Forum posts: 0
File comments: 19
Uploads: 0
|
any word on an update?
|
|
mongor |
View Public Profile |
Send a private message to mongor |
Visit mongor's homepage! |
Find More Posts by mongor |
Add mongor to Your Buddy List |
07/04/19, 05:56 AM | ||
Re: New Message Entering
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
06/29/19, 09:33 AM | |
Forum posts: 0
File comments: 39
Uploads: 0
|
New Message Entering
[LAM2] The panel with id 'tccOptions' was registered before addon loading has completed. This might break the AddOn Settings menu.
Any idea which addon it's refering to? Thanks kindly. Z |
|
zurbit |
View Public Profile |
Send a private message to zurbit |
Visit zurbit's homepage! |
Find More Posts by zurbit |
Add zurbit to Your Buddy List |
06/02/19, 08:28 AM | ||
|
Re: Re: Bug with
I created an issue in GitHub here, because I think it is a library related issue (BUI make also use of LibAddonMenu). @sirinsidiator: I know it is just a little bug and maybe (hopefully) it can be solved easily. (However, it is not a dramatic bug). You are working on so many awesome projects. Thank You
Last edited by @DeadSoon : 06/02/19 at 08:35 AM.
|
|
|
@DeadSoon |
View Public Profile |
Send a private message to @DeadSoon |
Visit @DeadSoon's homepage! |
Find More Posts by @DeadSoon |
Add @DeadSoon to Your Buddy List |
06/01/19, 05:28 PM | ||
Re: Bug with
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
06/01/19, 03:36 PM | |
|
Bug with "requiresReload"
Im faced with a bug when using the "requiresReload" property in sliders!
The warning symbol + tooltip appears but when I change the value, the reload button (corner bottom right) dos not appear and there is also no warning dialog for reloading / discard when leaving the settings menu. In the beginning it worked (most times) like expected, but for some reasons (without changing the specific code) the bug persists now. Are there any known bugs related to the property "requiresReload" of sliders? Or did I miss an important step? Thanks and best regards |
|
@DeadSoon |
View Public Profile |
Send a private message to @DeadSoon |
Visit @DeadSoon's homepage! |
Find More Posts by @DeadSoon |
Add @DeadSoon to Your Buddy List |
05/17/19, 09:26 AM | |||
|
|||
|
vecny.samotar |
View Public Profile |
Send a private message to vecny.samotar |
Send email to vecny.samotar |
Visit vecny.samotar's homepage! |
Find More Posts by vecny.samotar |
Add vecny.samotar to Your Buddy List |
05/17/19, 08:55 AM | ||
Either way you should consider upgrading to Notebooks 2018, since Notebooks is very old and no longer supported. |
||
|
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 |
05/17/19, 08:04 AM | ||
I have this error
|
||
|
vecny.samotar |
View Public Profile |
Send a private message to vecny.samotar |
Send email to vecny.samotar |
Visit vecny.samotar's homepage! |
Find More Posts by vecny.samotar |
Add vecny.samotar to Your Buddy List |
05/07/19, 11:47 AM | ||
|
|
|
|
Rhyono |
View Public Profile |
Send a private message to Rhyono |
Send email to Rhyono |
Visit Rhyono's homepage! |
Find More Posts by Rhyono |
Add Rhyono to Your Buddy List |
05/06/19, 08:41 PM | ||
Forum posts: 0
File comments: 13
Uploads: 0
|
Update: version 2.0 r29 has fixed this issue. Thank you! "- fixed SetHandler warning showing when a scrollable dropdown is used (#97)" It seems that having a dropdown control with the 'scrollable' attribute set while directly on 'optionsData' is causing the LAM message "setting a handler on a panel is not recommended". When I remove the 'scrollable' attribute (or place inside submenu table) the message goes away, but if I set the attribute to anything then I get the LAM handler message. Also, I only get the LAM handler messages after opening/closing the panels in the settings menu. In file 'LibAddonMenu-2.0\controls\dropdown.lua', within function 'ScrollableDropdownHelper:Initialize(parent, control, visibleRows)', is line 'parent:SetHandler("OnEffectivelyHidden", doHide)' - would this be causing the message about a handler being set directly on a panel? Here is example of dropdown/scrollable causing LAM handler message:
Warning: Spoiler
Code:
local panelData = { type = "panel", name = "MyAddonName", displayName = "MyAddonLongName", author = "MyAddonAuthor", version = "MyAddonVersion", website = "MyAddonWebsite", registerForRefresh = true, registerForDefaults = true, } local optionsData = {} -- ... table.insert(optionsData,{ type = "dropdown", name = "Sort Order", choices = {"Order1", "Order2", "Order3"}, choicesValues = {1, 2, 3}, getFunc = function() return db.sortOrder end, setFunc = function(value) db.sortOrder = value end, tooltip = "Select the sort order.", sort = "value-up", width = "full", disabled = false, default = 1, -- setting 'scrollable' will cause the LAM handler message! scrollable = true, }) local LAM2 = LibStub:GetLibrary("LibAddonMenu-2.0") LAM2:RegisterAddonPanel("MyAddonPanelName", panelData) LAM2:RegisterOptionControls("MyAddonPanelName", optionsData)
Last edited by N00BxV1 : 05/08/19 at 06:26 AM.
|
|
|
N00BxV1 |
View Public Profile |
Send a private message to N00BxV1 |
Send email to N00BxV1 |
Visit N00BxV1's homepage! |
Find More Posts by N00BxV1 |
Add N00BxV1 to Your Buddy List |
05/04/19, 06:18 PM | |
Forum posts: 0
File comments: 4
Uploads: 0
|
need help with liliths auto invite
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: attempt to index a nil value
stack traceback: user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: in function 'RefreshReloadUIButton' user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:167: in function 'RequestRefreshIfNeeded' user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:65: in function 'UpdateValue' user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:111: in function '(anonymous)' |
|
letice721 |
View Public Profile |
Send a private message to letice721 |
Send email to letice721 |
Visit letice721's homepage! |
Find More Posts by letice721 |
Add letice721 to Your Buddy List |
05/03/19, 03:06 PM | ||
2nd: Most users barely can figure out how to install addons and now you want them to report unknown bugs to unknown authors without a copy paste function because they are spamed in chat instead of a lua error box as usual? I'd say 50% will ignore it, 48% will just disable addons and I'm maybe one of the 2 percenters that reported it here to find ot the source of this chat spam. 3rd: If you woud know me, you woud not says this, I have a history of reporting every little bug to every addon I have ever tested or used. I'm thankfull for all addons and I have spent thousends of hours myself to figure out bugs, trying to fix bugs or helping athors find bugs. As you can imagin I have worked together with lots of AddOn creators and I have seen everything, from thankfull authors that praise me for beeing interested in helping them to find a bug in their code to ppl that told me to **** of and fix it myself. To the later ones all I can say is if you are not interested in making addons userfriendly, why release the addon to the publiic at all?
Last edited by Tonyleila : 05/03/19 at 03:11 PM.
|
||
|
Tonyleila |
View Public Profile |
Send a private message to Tonyleila |
Send email to Tonyleila |
Visit Tonyleila's homepage! |
Find More Posts by Tonyleila |
Add Tonyleila to Your Buddy List |