|
06/04/15, 08:20 AM | #1 |
LibAddonMenu-2.0r18 preview
I am proud to announce r18 is (nearly) finished.
It has been in the works for a few weeks and I feel it is ready to be tested by other developers. I tested it with many addons, but as LAM is the most used library I want to make sure there are really no problems that I might have missed. This is where I need your feedback. If you are a developer or just use many addons, please try the new build and tell me if everything works as expected. Preliminary Changelog 2.0 r18 - major overhaul of the addon menu style (thanks votan & merlight) - 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 - new icon picker widget - removed micro freeze when opening a menu with many options for the first time - changed tooltip property to accept functions that return a string (thanks Ayantir) - updated LibStub to r3 (support for '.' in minor version string, e.g. "17.5") Icon Picker Widget Here are some infos on how to use the new icon picker widget. This new widget allows you to specify a list of texture paths which are then shown as icons in a custom dropdown element. The options table takes a choices array like the dropdown widget. It also features a few optional parameters to control the dimensions. Lua Code:
In order to allow for some features that are used in popular addons, there are also some additional functions that can be used to dynamically update the widget: Lua Code:
To access them it is recommended to use the reference property which creates a global reference like with other UI elements. Lua Code:
In order to change the settings of the dropdown, the beforeShow function can be used. For example to implement custom mouseover behavior something like this can be done: Lua Code:
r18 is now released and can be downloaded from here. Last edited by sirinsidiator : 06/14/15 at 01:30 PM. Reason: updated to r18 |
|
06/05/15, 08:49 AM | #2 |
At ADD_ON_LOADED :
With only 1 addon updated to 17.5 (pChat) : Lua Code:
Extension string in menus is here, but the ui is empty. + addon Potion Maker is bit buggy but I think that's more a Potion maker code problem. With only my addon with LAM updated enabled, no problem. PS : Your modifications are awesome, really good job. Last edited by Ayantir : 06/05/15 at 09:10 AM. |
|
06/05/15, 09:58 AM | #3 | |
BTW: No issues with my addon collection and with Potion Maker stand-alone, with LAM r18 Edit 1: But to be correct: I used LAM r18 as stand-alone addon. Ayantir has updated the embedded files. This can be an important difference. Edit 2: ^^ Yep: Any addon using LAM r17 causes this error, if another addon updates to LAM r18. No issues if using LAM r18 as stand-alone addon. Has nothing to do with Potion Maker. Solution: Easy: LibStub does not support dots in MINOR. r17.5 = r17 ! The main LAM file it taken from addons using r17. Change it to 18 and everything works! Last edited by votan : 06/05/15 at 11:48 AM. |
||
06/05/15, 11:40 AM | #4 |
@sirinsidiator:
Should this bug can be fixed? If no, we'll need to warn devs to do not update and decide of a global push date of your library.. thank you. |
|
06/05/15, 11:59 AM | #5 | |
And thank you, that you like the new style. |
||
06/05/15, 12:07 PM | #6 |
I should have mentioned this. LibStub will also get an update to r3.
When I copy both folders to any addon it works without a problem. I'll include it in the changelog and also put it in the announcement once r18 goes live. |
|
ESOUI » Developer Discussions » General Authoring Discussion » LibAddonMenu-2.0r18 preview |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|