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: | 151,559 |
Total downloads: | 4,600,107 |
Favorites: | 2,738 |
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 |
votan |
View Public Profile |
Send a private message to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
03/17/15, 07:49 AM | |
decimals on slider control
Could you add a round to x decimals option for the sliders that uses decimal increments ?
On a 0 to 10 slider with 0.1 increments, i can't read the correct values, cuz of all the decimals that show up in the text edit under the slider. I can't seem to get any results when trying to modify the slider.lua (guess the lib is loaded one time only with whatever other addon i have that needs it) |
|
|
Carter_DC |
View Public Profile |
Send a private message to Carter_DC |
Find More Posts by Carter_DC |
Add Carter_DC to Your Buddy List |
02/24/15, 02:04 AM | ||
Re: LAM2 r17?
There is one scenario where you have to update the addon code, but it will print a different warning in chat should this be the case. |
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
02/23/15, 06:49 PM | |
|
LAM2 r17?
How hard is it for someone who isn't an author to update an addon to r17 from r14 or r16? Is there a lot of changes or is it pretty much a simple drag'n'drop? I am not illiterate or anything as I have been in tech support and IT/IS for 12 years now but I am not skilled in LUA yet, or any other language anymore.
|
|
joshmiller83 |
View Public Profile |
Send a private message to joshmiller83 |
Send email to joshmiller83 |
Find More Posts by joshmiller83 |
Add joshmiller83 to Your Buddy List |
02/14/15, 06:54 AM | |||
Re: Re: Re: Re: Dropdown
Lua Code:
|
|||
|
Garkin |
View Public Profile |
Send a private message to Garkin |
Send email to Garkin |
Find More Posts by Garkin |
Add Garkin to Your Buddy List |
02/14/15, 04:02 AM | ||
Re: Re: Re: Dropdown
Others may have the same problem. panel is using LAMCreateControl.scrollCount already. So I think it is ok this way: Lua Code:
|
||
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
02/13/15, 02:37 PM | |||
Re: Re: Dropdown
|
|||
|
Garkin |
View Public Profile |
Send a private message to Garkin |
Send email to Garkin |
Find More Posts by Garkin |
Add Garkin to Your Buddy List |
02/13/15, 12:31 PM | ||
Re: Dropdown
Lua Code:
Beside that: I integrated the other fixes in my version and they work well. No half width glitches, no dropdown errors. |
||
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
02/13/15, 08:34 AM | |
Half width controls
I'm creating custom widgets for Azurah & Srendarr settings menu. I found out that all widgets which are half width have height set to 55. Can you add support for another sizes? It is too small for my fontblock.
Something like this: Lua Code:
|
|
|
Garkin |
View Public Profile |
Send a private message to Garkin |
Send email to Garkin |
Find More Posts by Garkin |
Add Garkin to Your Buddy List |
02/10/15, 10:07 AM | |
Dropdown
When dropdown widget is updated comboboxCount is reset back to 1. Usually it doesn't matter, but if you are creating controls directly (and you don't have any other option if you want to modify created controls), some comboboxes could already exist and then you will get an UI error because of duplicate cotrol names.
What I mean by creating controls directly: Lua Code:
And a typo in the dropdown.lua: Lua Code:
Last edited by Garkin : 02/10/15 at 10:36 AM.
|
|
|
Garkin |
View Public Profile |
Send a private message to Garkin |
Send email to Garkin |
Find More Posts by Garkin |
Add Garkin to Your Buddy List |
02/04/15, 12:59 PM | |
New UI
If it is time for a new revision, it is may also time for a refresh of the UI?
Does someone hate it? Does someone like it? write comment here It's based on the dropbox version of Ayantir. It is just some change to the main file: Making borders invisible, changing base class of the buttons, a bit wider.... Shall I continue and provide source code or should I go away? By the way r17 works (with a downgrade) in live, too.
Last edited by votan : 02/04/15 at 01:44 PM.
|
|
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
01/28/15, 11:02 AM | |
Thanks
I've put an uptodate version here : https://www.dropbox.com/s/zw4nwjnf60...0-r17.zip?dl=0 - Increased API to 100011 in metafile - Version to r17 in metafile - Updated Libstub minor version to 17 in LibAddonMenu-2.0.lua - Commented line 243 and added at 244 in LibAddonMenu-2.0.lua Lua Code:
All seems working fine |
|
|
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 |
01/28/15, 06:50 AM | ||
Lua Code:
Lua Code:
|
||
|
Garkin |
View Public Profile |
Send a private message to Garkin |
Send email to Garkin |
Visit Garkin's homepage! |
Find More Posts by Garkin |
Add Garkin to Your Buddy List |
01/28/15, 03:32 AM | |
Hey, a little bug in lam for 1.6.
The background texture width is no more well sized Think the problem should be here : Lua Code:
in LibAddonMenu-2.0.lua line 208. but I didn't succeed to fix it. if any xml guru is here the other stuff seems working fine. (maybe the reinit button at the button have changed too). thank you
Last edited by Ayantir : 01/28/15 at 03:32 AM.
|
|
|
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 |
11/28/14, 04:16 PM | |
|
using "button" option in settings window
hello,
i'm using a "button" type in my config which will "clear" a users saved vars if they wish to. however, they "func" arg is being called "onload" of the addon settings window rather than the "click" which causes an issue. any advice there? |
|
Argusus |
View Public Profile |
Send a private message to Argusus |
Send email to Argusus |
Visit Argusus's homepage! |
Find More Posts by Argusus |
Add Argusus to Your Buddy List |