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: | 79,509 |
Total downloads: | 4,678,231 |
Favorites: | 2,754 |
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 |
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 |
SimonIllyan |
View Public Profile |
Send a private message to SimonIllyan |
Send email to SimonIllyan |
Find More Posts by SimonIllyan |
Add SimonIllyan to Your Buddy List |
05/12/21, 10:34 PM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Add-On Settings Menu
Does anyone know anything about this bug in the Add-Ons Settings menu? There seems to be a glitch with the "defaults" button on the bottom of the settings windows for my Add-Ons. I think it has something to do with the 'LibAddonMenu' library. Does anyone know how to fix this?
https://imgur.com/BTCje1Y |
|
Valakai |
View Public Profile |
Send a private message to Valakai |
Send email to Valakai |
Find More Posts by Valakai |
Add Valakai to Your Buddy List |
04/25/21, 11:13 PM | |
Issue with dropdown control
Hello,
I'm trying to create a profile system for my addons settings, and have hit a snag. So I'm passing a table from my saved variables to a dropdown control, However when the table is changed (eg, adding a profile name to the choices table) the dropdown options do not update. Lua Code:
Is this behavior working as normal or have I messed something up? I am not getting any errors in debug viewer and everything else is updating with SV changes like you would expect.
Last edited by Parietic : 04/25/21 at 11:14 PM.
|
|
|
Parietic |
View Public Profile |
Send a private message to Parietic |
Send email to Parietic |
Find More Posts by Parietic |
Add Parietic to Your Buddy List |
02/10/21, 10:18 AM | |
|
It would be nice to be able to make a control invisible when defining it. I wanted to show a few settings just to nightblades and had to to some table mergings to achieve that
|
|
andy.s |
View Public Profile |
Send a private message to andy.s |
Send email to andy.s |
Find More Posts by andy.s |
Add andy.s to Your Buddy List |
01/19/21, 02:20 PM | ||||
Forum posts: 0
File comments: 5
Uploads: 0
|
Re: Re: Errors thrown by addons using LibAddonMenu-2.0
Firstly, yes I had deleted all LibAddonMenu folders. The problem is caused by having any out-of-date addon which depends on LibAddonMenu loaded. Minion failed to update my Combat Metrics. With that removed the error goes away. (Also updated it after, thanks Minion.) |
|||
|
ECWasHere |
View Public Profile |
Send a private message to ECWasHere |
Send email to ECWasHere |
Find More Posts by ECWasHere |
Add ECWasHere to Your Buddy List |
01/19/21, 05:53 AM | |||
Re: Errors thrown by addons using LibAddonMenu-2.0
Last edited by sirinsidiator : 01/19/21 at 05:53 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 |
01/18/21, 07:50 PM | |
Forum posts: 0
File comments: 5
Uploads: 0
|
Errors thrown by addons using LibAddonMenu-2.0
3 otherwise unrelated Addons all throw me a dialog full of errors when I try to change a setting. In each case the errors start with: "user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value"
The addons I'm using are Hodor Reflexes, JunkBuster, and Raid Notifier. I have deleted all existing "LibAddonMenu-2.0" folders and installed the latest "LibAddonMenu-2.0" (17-Dec-20). In fact I've done this multiple times with no change in the behavior. Any idea what's causing this? |
|
ECWasHere |
View Public Profile |
Send a private message to ECWasHere |
Send email to ECWasHere |
Find More Posts by ECWasHere |
Add ECWasHere to Your Buddy List |
12/29/20, 03:03 PM | |||
EDIT: Ended up using Code:
reference = "RoleplayMarkerSettingsIconTexture", Code:
RoleplayMarkerSettingsIconTexture['texture']:SetColor(r,g,b,a)
Last edited by Phuein : 12/30/20 at 02:22 PM.
|
|||
|
Phuein |
View Public Profile |
Send a private message to Phuein |
Send email to Phuein |
Find More Posts by Phuein |
Add Phuein to Your Buddy List |
12/29/20, 11:15 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 |
12/28/20, 11:19 PM | |
Hey Siri, thanks for all the good work!
How about adding a :SetColor(r,g,b,a) option to the TEXTURE component? I'm looking to preview a selected texture and the color that affects it in my settings. |
|
|
Phuein |
View Public Profile |
Send a private message to Phuein |
Send email to Phuein |
Find More Posts by Phuein |
Add Phuein to Your Buddy List |
12/27/20, 10:50 AM | ||
Not saying your idea is bad, but if you still feel like you need it after reading this, please create a ticket over on github and/or a pull request providing the necessary changes. |
||
|
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 |
12/27/20, 09:43 AM | |
Hello Sirinsidiator,
I'd like to use a "custom" checkbox for my addon menu, which should work exactly like the default checkbox but display other word instead of "On/Off". I have looked into the LAM-Code and as far as I can tell this is not possible to change it for only a few checkboxes (I could modifiy the global string, but that would effect all checkboxes) Of course I can use a custom controll (which will be my solution for now), but I feel it is not the neatest solution as I would basically copy - paste the default checkbox code. Would you maybe consider to add the optional feature to set the checked and unchecked string manually in a future update? Regards, Exoy |
|
|
ExoY |
View Public Profile |
Send a private message to ExoY |
Send email to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
12/20/20, 10:17 AM | |||
Re: Re: Re: newer version bugs
Without more information I can only assume that your installation is broken. You can try the following steps and if you send me the log as described below, I may even be able to tell you what exactly is going on:
|
|||
|
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 |
12/18/20, 01:12 PM | ||
Re: newer version bugs
|
||
|
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 |