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: | 36,668 |
Total downloads: | 5,008,340 |
Favorites: | 2,824 |
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 |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
Letho |
View Public Profile |
Send a private message to Letho |
Find More Posts by Letho |
Add Letho to Your Buddy List |
01/23/18, 01:10 PM | |
colored sliders
Is there any way for me to change the color of a slider control (created by LAM in my Addon Settings) from the standard grey to a different color?
|
|
|
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 |
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 |
01/24/18, 12:17 PM | ||||
Re: Re: colored sliders
I need to add a second slider under each of those 100 or so existing ones, for the user to set the trade-in discount price (buying price). I would like them to stand out, since they will be interspersed (sell price, buy price, sell price, buy price, ..........) I can settle for coloring the slider label with a simple |c color code, but it would look even nicer if the sliders themselves were tinted as well.
|
||||
|
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 |
01/24/18, 01:45 PM | |||||
Re: Re: Re: colored sliders
But aside from that - and not having seen your menu - it honestly sounds like you should restructure it instead of changing the color of the slider. For example, have you considered using the half-width flag so you can put the first slider to the left and the second to the right in the same line? You could also make a visible break in between each material with title or line controls. I'd also suggest you use submenus for each crafting type so you don't have all of those sliders in a long list. |
|||||
|
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 |
01/24/18, 04:41 PM | ||||
Re: Re: Re: Re: colored sliders
|
||||
|
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 |
03/26/18, 08:21 PM | |
Forum posts: 0
File comments: 2
Uploads: 0
|
About Korean Translation Patch Support
Some of the ESO users in Korea are making translation patches.
Could you put a string for Korean on your add-on? The strings required for the Korean language are as follows : Lua Code:
Last edited by p.walker : 04/24/18 at 07:15 PM.
|
|
p.walker |
View Public Profile |
Send a private message to p.walker |
Visit p.walker's homepage! |
Find More Posts by p.walker |
Add p.walker to Your Buddy List |
04/08/18, 11:28 AM | |
Enhancement Request
I would like to request an enhancement to the editbox widget:
Could you add the following optional parameters to the editboxData table: Lua Code:
...Also, with the slider widget, when sliderData.clampInput = true and sliderData.step ~= 1, I believe the input should be clamped to an exact multiple of step. Thanks! |
|
|
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 |
04/26/18, 12:40 AM | |
Hello. I was wondering if it would be okay to copy the LibAddonMenu-2.0.lua file into the \libs\LibAddonMenu-2.0\ folder for those add ons which are not using the current version 25? I assume Add-on authors aren't changing anything in that lib file themselves so it shouldn't break anything, right? Thanks!!
|
|
|
RavenMind |
View Public Profile |
Send a private message to RavenMind |
Visit RavenMind's homepage! |
Find More Posts by RavenMind |
Add RavenMind to Your Buddy List |
05/21/18, 06:12 AM | ||
Forum posts: 6
File comments: 18
Uploads: 0
|
|
|
|
mizrolist |
View Public Profile |
Send a private message to mizrolist |
Send email to mizrolist |
Visit mizrolist's homepage! |
Find More Posts by mizrolist |
Add mizrolist to Your Buddy List |
06/13/18, 11:20 PM | |
I added a YES/NO confirmation dialogue to some of my controls. (It's for changes that require immediate UI reload.) I had some trouble figuring out, with the checkbox, how to reset (refresh) the value when No was selected, as it wasn't actually changed.
It appears that the control value is toggled OnMouseUp always. I would like to request the option to Return a value that disables that behavior. Also it would be nice to have simpler (wiki?) access to control refreshing from the setFunc itself. And it would be awesome to have confirmation dialogues for controls. This is my working example, hacking a solution with a delayed refresh: Code:
[5]={ type = "checkbox", name = "NAME", tooltip = "TOOLTIP", getFunc = function() return nil end, setFunc = function(value) local confirmDialog = { title = {text = "TITLE"}, mainText = {text = "TEXT"}, buttons = { [1]={ text = "YES", callback = function() -- Stuff happens and then... ReloadUI("ingame") end }, [2]={ text = "NO", callback = function() zo_callLater(function() CALLBACK_MANAGER:FireCallbacks("LAM-RefreshPanel", LAM2.currentAddonPanel) end, 100) end } } } ZO_Dialogs_RegisterCustomDialog("THISADDONS_CONFIRMDIALOG", confirmDialog) ZO_Dialogs_ShowDialog("THISADDONS_CONFIRMDIALOG") end, warning = "Will need to reload the UI!", }, |
|
|
Phuein |
View Public Profile |
Send a private message to Phuein |
Send email to Phuein |
Visit Phuein's homepage! |
Find More Posts by Phuein |
Add Phuein to Your Buddy List |
06/14/18, 04:58 AM | ||
Please also keep in mind that the current LAM version was not made with dynamic settings menus and exotic options in mind. Maybe some day there will be a LAM3 which will take all these features into account, but for now you'll either have to hack your own solution or stick to how it was intended to be used. |
||
|
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 |
07/20/18, 11:23 AM | |
If i read right, the add-on could use some love to create dynamic menus?
|
|
|
Ek1 |
View Public Profile |
Send a private message to Ek1 |
Send email to Ek1 |
Visit Ek1's homepage! |
Find More Posts by Ek1 |
Add Ek1 to Your Buddy List |
07/24/18, 04:05 AM | |
colorpicker in gamepad mode
When enabling gamepad mode using colorpicker won't work:
Code:
EsoUI/Libraries/ZO_Dialog/Gamepad/ZO_GenericDialog_Gamepad.lua:280: attempt to index a nil value stack traceback: EsoUI/Libraries/ZO_Dialog/Gamepad/ZO_GenericDialog_Gamepad.lua:280: in function 'ZO_GenericGamepadDialog_SetupDirectionalInput' EsoUI/Libraries/ZO_Dialog/Gamepad/ZO_GenericDialog_Gamepad.lua:521: in function 'ZO_GenericGamepadDialog_Show' EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:739: in function 'ZO_Dialogs_ShowDialog' (tail call): ? EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:328: in function 'ZO_Dialogs_ShowGamepadDialog' EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:265: in function 'ZO_Dialogs_ShowPlatformDialog' EsoUI/Common/ZO_ColorPicker/ZO_ColorPicker_Shared.lua:136: in function 'ZO_ColorPicker_Shared:Show' user:/AddOns/LuiExtended/libs/LibAddonMenu-2.0/controls/colorpicker.lua:82: in function '(anonymous)' |
|
|
Gandalf |
View Public Profile |
Send a private message to Gandalf |
Send email to Gandalf |
Visit Gandalf's homepage! |
Find More Posts by Gandalf |
Add Gandalf to Your Buddy List |