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: | 80,777 |
Total downloads: | 4,674,075 |
Favorites: | 2,750 |
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 |
Aiiane |
View Public Profile |
Send a private message to Aiiane |
Find More Posts by Aiiane |
Add Aiiane 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 |
05/04/14, 04:54 PM | ||||
|
||||
|
lintydruid |
View Public Profile |
Send a private message to lintydruid |
Find More Posts by lintydruid |
Add lintydruid to Your Buddy List |
05/04/14, 03:56 PM | |
Excellent stuff.
Really happy everything returns its control now =) Cheers for that! |
|
|
Joviex |
View Public Profile |
Send a private message to Joviex |
Find More Posts by Joviex |
Add Joviex to Your Buddy List |
05/04/14, 03:39 PM | ||||
|
|
|||
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
05/04/14, 02:01 PM | |
|
Have you assigned your sub-menu panel to a new variable? For me it works fine like this:
Code:
local SubPanel = LAM:AddSubMenu(MainPanel, ... LAM:AddCheckbox(SubPanel, ... |
|
Klingo |
View Public Profile |
Send a private message to Klingo |
Find More Posts by Klingo |
Add Klingo to Your Buddy List |
05/04/14, 12:53 PM | |
Submenu's
Hi,
Trying to use submenu''s but I seem to end up with a blank panel if I try to mix them with other controls on the panel. Any ideas? |
|
|
lintydruid |
View Public Profile |
Send a private message to lintydruid |
Find More Posts by lintydruid |
Add lintydruid to Your Buddy List |
04/29/14, 08:44 AM | |
|
Converting Color Values to Hexadecimal
Hello everyone. I noticed that the part of the library where it should disable the "(Button) Defaults" thingy at the bottom of the settings panel, it only does so only for one add-on, which is the one loaded first I believe. The rest of the add-ons will have intractable "Defaults" button, which sets everything to zero.
----- As a side note, I wrote this little function to get the "raw" color values (0-1) and convert them to hex (00-FF). I don't know if this is necessary at all, or if there is a built-in function, but might help you nonetheless. Code:
function ColorCodeConversion( r, g, b ) return ( string.format('%02X', math.floor(r * 255 + 0.5)) .. string.format('%02X', math.floor(g * 255 + 0.5)) .. string.format('%02X', math.floor(b * 255 + 0.5)) ) end Code:
panelId = LAM:CreateControlPanel( "stuff.Config", "|c" .. hexColorSavedVariable .. "Quest Buddy|r" ) LAM:AddColorPicker( panelId, "stuff.ColorPicker", "title", "description", function() return unpack( rawColorSavedVariable ) end, function( r, g, b ) rawColorSavedVariable = { r, g, b } hexColorSavedVariable = QB.ColorCodeConversion( unpack( rawColorSavedVariable )) end )
Last edited by lyravega : 04/29/14 at 11:48 AM.
|
|
lyravega |
View Public Profile |
Send a private message to lyravega |
Find More Posts by lyravega |
Add lyravega to Your Buddy List |
04/25/14, 10:57 AM | |
I have managed to reproduced "too many anchors processed" error with this code:
Lua Code:
TotalRun under 450 does not created the error. There's no other AddOns enable when I run this Stress Test. I'm not sure if LibAddonMenu is causing it, or could there be some kind of limit set by the game client? As there're more people using lots of AddOns at the same time, this error prone to happen, and should be some advise or some work around if they want to keep install the AddOns that ever exist. You can also reproduced this error by just install enough AddOns you can find on this site that are using LibAddonMenu-1.0 until you've reach the limit for the error to appear. |
|
|
Divona |
View Public Profile |
Send a private message to Divona |
Find More Posts by Divona |
Add Divona to Your Buddy List |
04/23/14, 03:40 PM | ||
|
https://dl.dropboxusercontent.com/u/...ionswindow.png |
|
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
04/23/14, 12:41 PM | |
|
I'm not real sure. Something to deal with when you really need your own dialog to make configuration simple and straightforward. A single dimensional list just doesn't do real well for multi-dimensional options, i.e. sheet, row, column, cell.
|
|
LilBudyWizer |
View Public Profile |
Send a private message to LilBudyWizer |
Find More Posts by LilBudyWizer |
Add LilBudyWizer to Your Buddy List |
04/22/14, 03:55 PM | ||
|
|
|
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
04/22/14, 03:14 PM | |
Hi,
when I look to the standard menus coming with ESO, I notice that settings can be deactivated/disabled (displayed greyed-out), depending on the state of another setting (e.g. when I turn a checkbox to OFF, dependant settings are not useful and thus are displayed deactivated). I would like to have such a feature for my addon. I think I would need (1) a callback which fires whenever a setting is changed and (2) a way to disable a setting. Callback: Is there such a callback or event handler I can register for checkboxes, sliders, colorselection etc.? Disable settings: I tried to call setDisabled(boolean) and setEnabled(boolean) for the settings, but these function do not exist. Is there a function I can call to disable a setting? Any idea? Cheers, Klaus |
|
|
klaro00 |
View Public Profile |
Send a private message to klaro00 |
Find More Posts by klaro00 |
Add klaro00 to Your Buddy List |
04/21/14, 08:37 AM | ||
|
|
|
|
Seerah |
View Public Profile |
Send a private message to Seerah |
Find More Posts by Seerah |
Add Seerah to Your Buddy List |
04/21/14, 07:13 AM | |
|
A real nice function would be the ability to collapse header. You see it on the main menu. You click settings and it expands settings. I don't doubt it would be involved and a bit of a hack, but it's a library. Supporting additional types beyond the stock ones and additional functionality is a natural extension of the library.
When it comes to additional types an addon supplied dialog would be one of the most desirable. A list is getting a bit cumbersome with even simple addon with lots of checkboxes. As an example I'm working on an addon that has checkboxes for enable and logging along with a slider in seven categories. A dialog could do that in seven lines, i.e. two checkboxes and slider on each line with row and column labels. As a list though it's actually 28 lines, more actually. I can use a button to pop up a detailed options dialog with this providing basic options which I'll likely do at a later date, but it would be nice if it just popped a custom dialog. Particularly here since I have no user interface, just settings. A slash command or keybind to pop the dialog is a bit obscure for non-techie users. If you could pop a dialog you would be able to address the complaint below about just how many settings you can end up when you have lots of addons installed. A tie in with ESOUI would be real cool. I don't know if ESO supports metadata like WoW, but tags for categories in the manifest would seem a natural. You could upload the addon with it pulling the tags from the manifest then those same tags used for categories of settings by your library. Certainly not a now or soon suggestion, but long-term certainly, to me, a growth path for the library. Along the same lines, since you go into this business, a separate library to attaching to standard dialogs would be nice. I'll make a general post for that though. While a separate library it seems a good niche to be the one that makes things play nice together. Having this addon gives you a bit of authority. |
|
LilBudyWizer |
View Public Profile |
Send a private message to LilBudyWizer |
Find More Posts by LilBudyWizer |
Add LilBudyWizer to Your Buddy List |