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: | 68,450 |
Total downloads: | 4,698,424 |
Favorites: | 2,759 |
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 |
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/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/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/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 |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator 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 |
Send email to Carter_DC |
Find More Posts by Carter_DC |
Add Carter_DC to Your Buddy List |
03/17/15, 08:05 AM | |||
Re: decimals on slider control
Workaround 2: Register your own slider control type. See docs. (I did not do that before)
|
|||
|
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 |
03/17/15, 11:09 AM | ||
Re: decimals on slider control
You can try votan's workarounds for now. Docs are located here. |
||
|
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 |
03/22/15, 12:10 PM | |
Forum posts: 0
File comments: 6
Uploads: 0
|
Need help please
I do not have any knowledge for editing addons.
But i checked from each addon's "txt", i saw in that APB and SkyShards have "OptionalDependsOn: LibAddonMenu-2.0 ", SimpleClock and "OptionalDependsOn: LibAddonMenu-1.0 ", TiEmote does not have and Undiscovered have "OptionalDependsOn: LibStub LibAddonMenu". So what must i do? Just replace "LibAddonMenu-1.0" with "-2.0" and "LibStub LibAddonMenu" with "LibAddonMenu-2.0"? Also i never used this addon LibAddonMenu before. Should i download and use it somehow in order to update the addons i have? And i agree 100% with joshmiller83, there are many people who don't know what to do for this matter and its not our work to update those addons, one mistake can cause bad issues in the game which may not be fixed by just uninstalling the addon, but it may need to do a major repair or the whole game reinstall from begin, that is something people do not want who have slow internet.
Last edited by Isilvar307 : 03/22/15 at 12:18 PM.
|
|
Isilvar307 |
View Public Profile |
Send a private message to Isilvar307 |
Send email to Isilvar307 |
Find More Posts by Isilvar307 |
Add Isilvar307 to Your Buddy List |
03/23/15, 05:24 AM | ||
Re: Need help please
I am not sure why you think that you have to update or use LAM2 yourself? It is a library that is included in other addons. If they are not updated, then you should report it to their respective comment section or ask in the addon requests forum if somebody can update it. Also TiEmote and Undiscovered have both been updated to work with LAM2 already. If you haven't already done so, you should start using Minion which will keep track of your addons and allows you to update them with a single click. |
||
|
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 |
03/24/15, 12:32 PM | |
Forum posts: 0
File comments: 6
Uploads: 0
|
Re: Re: Need help please
I thought TiEmote Extented is separate mod with extra features from TiEmote and i checked TiEmote's version.
But for Undiscovered i thought it was still the previous version. When i checked in this link it was not in the lists yet. https://github.com/sirinsidiator/ESO...ons-using-LAM2 Well, i guess i have to use TiEmote Extented from now on. As for the Minion, it has a bug which i reported and has been fixed one time, but with every update its disfixes! That is why i am using NMM and all everything is fine. Thanks alot for the info about those two addons. |
|
Isilvar307 |
View Public Profile |
Send a private message to Isilvar307 |
Send email to Isilvar307 |
Find More Posts by Isilvar307 |
Add Isilvar307 to Your Buddy List |
04/18/15, 06:21 PM | |
little request, allow us to execute code when reverting to default.
the code will look like getFunc Lua Code:
Thank you. |
|
|
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 |
04/21/15, 03:33 AM | |
Same request for tooltips.
Why : If I disable a control, user don't know why. So we explain on tooltips. Sometimes the reason isin LAM, sometime not. Sometimes it can be combinaisons of reasons. If I try to cheat and changing tooltips when I change an option ex : Lua Code:
It won't work neither. Control defined with pChat.lang.say will still get its old tooltip because LAM optionTable is only refreshed when you :RegisterOptionControls. I'll could rebuild my optionsTable with Lua Code:
I've also tried to add in my setFunc : LAM:RegisterOptionControls("pChatOptions", optionsTable) I won't work neither. If for a lot of addons, building table only at the startup is a good choice, when you get an addon with huge settings panels and complex code to decide if or not an option is enabled, maybe an optional setting in the controls could be interesting. Lua Code:
----------- For the default, I found the trick because my need was on a dropdown. If you cannot set a func in your "default" parameter, set it in your setFunc parameter. and write something like this : In this exemple. I set a sound ID in my db and I show its localized string. Lua Code:
When user click on a button, a sound is played (see the setFunc). When user click on "reinit" button, "default" send value to setFunc and sound is not played. because I send the stored value, not a dropdown one. When user don't get a saved vars, Zo_VavedVars will set the value to (here) defaults.soundforincwhisps. Then the getFunc will handle it. I was maybe tired to see it. If you want some exemple of complex LAM build tables, I recommand you pChat and MiniMap. there is good example inside. |
|
|
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 |
04/25/15, 03:11 PM | |
Is there a problem with textures?
The code below just makes a gap in the menu. No graphics are shown. Not even the tooltip is shown. All other controls works fine. Lua Code:
I assume image path is based on Addons as root folder. I also assume that the image format is the same as for pins. What am I missing?
Last edited by SnowmanDK : 04/25/15 at 03:11 PM.
|
|
|
SnowmanDK |
View Public Profile |
Send a private message to SnowmanDK |
Send email to SnowmanDK |
Visit SnowmanDK's homepage! |
Find More Posts by SnowmanDK |
Add SnowmanDK to Your Buddy List |
04/26/15, 04:10 AM | ||
I made the experience that image files need to have a width and height with a power of 2. Try to resize the image to 512x16. If that does not help, you can also try to close the game and delete the ShaderCache.cooked file. That also seems to help with texture problems quite often. |
||
|
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 |