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: | 146,178 |
Total downloads: | 4,869,722 |
Favorites: | 2,789 |
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 |
tridman |
View Public Profile |
Send a private message to tridman |
Find More Posts by tridman |
Add tridman to Your Buddy List |
06/12/14, 11:37 AM | ||
|
(Granted, it's for authors, not users...)
Last edited by Seerah : 06/12/14 at 11:38 AM.
|
|
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
SkOODaT |
View Public Profile |
Send a private message to SkOODaT |
Find More Posts by SkOODaT |
Add SkOODaT to Your Buddy List |
Seerah |
View Public Profile |
Send a private message to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
06/11/14, 06:12 AM | |
|
Thanks for your newest version of LibAddonMenu! Probably the best Lib on here
Did you make a change to the PlaySound on checkbox-toggling? All my checkboxes play this sound at once when refreshing/loading the Settings window. Since I'm using about 25 Checkboxes in my settings this is a pretty loud Sound Can't remember t was there in a earlier version. |
|
Froali |
View Public Profile |
Send a private message to Froali |
Send email to Froali |
Find More Posts by Froali |
Add Froali to Your Buddy List |
06/09/14, 03:55 PM | |||
Forum posts: 9
File comments: 522
Uploads: 0
|
|
||
|
ivanwfr |
View Public Profile |
Send a private message to ivanwfr |
Send email to ivanwfr |
Find More Posts by ivanwfr |
Add ivanwfr to Your Buddy List |
06/09/14, 07:04 AM | ||||
Re: Color model - http://en.wikipedia.org/wiki/Color_model
Thanks for clarifying that ivanwfr. Now with that said, I wonder if there is a way to inherit the color picker and add separate values? Does Lua allow that? Like in Delphi I can inherit and override certain parts of functions and procedures. |
||||
|
Sharlikran |
View Public Profile |
Send a private message to Sharlikran |
Send email to Sharlikran |
Find More Posts by Sharlikran |
Add Sharlikran to Your Buddy List |
06/08/14, 02:38 PM | |
|
Okay, I was able to log in and try it out since I hadn't actually set anything to black (0, 0, 0) with the color picker yet.
This has nothing to do with LAM, this is just how ESO's color picker works. The saturation slider on the right sets the limits on the r, g, b values so as to stay within that saturation level. (Because the closer your r, g, b values get to 255, the closer your color gets to white.) |
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Send email to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
06/05/14, 09:17 AM | ||||
Forum posts: 9
File comments: 522
Uploads: 0
|
Color model - http://en.wikipedia.org/wiki/Color_model
Well, I think I can shed some light on this by stating that what is described here is just another way to illustrate the features of this tool:
Photoshop's color tool is a good example for a correct separation of these models in order to avoid the inevitable confusion of non-cooperative tools like here where they coexist in a one-way only interaction... which btw reminds me of something. |
|||
|
ivanwfr |
View Public Profile |
Send a private message to ivanwfr |
Send email to ivanwfr |
Find More Posts by ivanwfr |
Add ivanwfr to Your Buddy List |
06/04/14, 04:49 PM | |||
|
|
||
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Send email to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
06/04/14, 07:04 AM | ||
Last edited by Sharlikran : 06/04/14 at 01:58 PM.
|
||
|
Sharlikran |
View Public Profile |
Send a private message to Sharlikran |
Send email to Sharlikran |
Find More Posts by Sharlikran |
Add Sharlikran to Your Buddy List |
06/03/14, 10:34 PM | ||
|
|
|
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Send email to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
06/03/14, 08:56 PM | |
May I make a request for 2.0? I was recently using RecipieBook and the author has a fairly white or light background so it makes sence to have the Text color be Black by default. When the color pick window opens the circle is in the center and all the values except Alpha are 0. I can't move the circle. If he sets it to a value slightly above 0, then the boxes have 40 in them and moving the circle will not allow me to go above 40 for the values.
Unless I put the circle in the center, then close the color pick window, reopen it, change the values to 255, only after that can I really move it around to whatever I want. Can you have the range always be 0 to 255 and the default color is separate?
Last edited by Sharlikran : 06/03/14 at 08:58 PM.
|
|
|
Sharlikran |
View Public Profile |
Send a private message to Sharlikran |
Send email to Sharlikran |
Find More Posts by Sharlikran |
Add Sharlikran to Your Buddy List |
06/01/14, 08:41 AM | |||
Forum posts: 9
File comments: 522
Uploads: 0
|
I'm also convinced that the precedence and the quality of what you have accomplished will both keep this subject under your responsibility for a while. It would be vain to challenge that for some futile reason. But, and I'm pretty sure you know what I mean, this can't be accomplished with one or two shots at some vague glimpse of a solution. Reading that I had to wait for next release for an answer to my questions was unexpected in that frame of mind. I know too well what it means and I acted accordingly. More to the point, hacks there are! ... and all the side effect we get by using them. I can appreciate what it means to start from scratch the development of something that already works as it is, to the satisfaction of the majority. But I also know!, that the majority do not bother developing a Lua library for ESO. The reward you will get from the hard work will be of a kind that few people will value. Stating limits to the applicability of this library is a wise safeguard against distraction from the true purpose of the project. Still, keeping an open mind for subtle complementary function could prove a fruitful challenge. It often is how some well known accomplishments turned out how they did. |
||
|
ivanwfr |
View Public Profile |
Send a private message to ivanwfr |
Send email to ivanwfr |
Find More Posts by ivanwfr |
Add ivanwfr to Your Buddy List |
05/31/14, 06:31 PM | ||
|
/edit: I've always said that LAM isn't for everyone - that if you wanted to do something different or specialized with your options, then to not use LAM. (I believe you can find this said a couple of times on the forums, even.)
Last edited by Seerah : 05/31/14 at 06:40 PM.
|
|
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Send email to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |