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. |
|
06/05/15, 12:15 PM | #7 |
Just tested, with the embedded r3 of libstub provided in the folder, all is okay now , forget all my problems
many thanks |
|
06/07/15, 06:42 AM | #8 |
Secure Render Mode Bug
Hi sirinsidiator,
In order to avoid "Access private function StopAllMovement from insecure code" you need this in line 802: Lua Code:
To test: switch from add-on settings menu directly to crone shop. |
|
06/07/15, 06:48 AM | #9 |
Thanks for all the work! It looks great and I like the new width AND the new icon picker widget :-)
Need to test and play around with it when i find the time. Currently I got no error messages tested with my addons changed to new version 17.5 and libStub version 3, all other addons left with older LAM version 17. One point I noticed: The search box only works if I use lower case characters to search. If I search for example the string "Item" it will not find any matching text. But if I search for "item" it will find "ItemSaver". The same for example with "Wykkyd" and "wykkyd". Another question: The controls using the "full" width still only use 3/4 of the available width. Is there any reason why they cannot use the full available width of the options panel? Some german texts are really long and don#t fit in there, but they would if the full width would be used. If 2 "half" width controls are next to each other the full width is used too so it should be possible? For example only 1 checkbox is used with a very long text and then you see the "ON" or "OFF" at the far right side. Currently the text is truncated and the "ON" or "OFF" is shown at 3/4 of the possible width. EDIT: I now see why the checkbox text "ON" and "OFF" is not aligned at the far right side. The other controls, like buttons and sliders, are wider then the checkbox text and thus is why the "ON" and "OFF" is aligned to the left side of the "reserved space" of the buttons/slider controls. So the alignment to the far right side would break the readability if there are checkboxes, then sliders, then checkboxes again. A feature request for the icon picker widget: Could you add a second array to the widget where we can specify tooltips for the icons? Something like this: Lua Code:
This would be cool :-) Thanks again for all the effort and work you put into this great addon (ZOs should pay you devs some special items for it imo ) I could also imagine, instead of using another tooltip control that shows if we mouse over the icons, we could just use the icon picker's label control to show the currently mouse over icon: Lua Code:
Another feature request for the icon picker widget: Is there a possibility to color the icons with a default color, without having to call the SetColor() function inside a callback function of the panel, after the control has been created? Otherwise I'd love to see a "defaultColor" parameter too! A small bug with the icon picker: FORGET THE FOLLOWING ABOUT THE ICON PICKER'S ICON DISAPPEARING, IT WAS MY FAULT! I specified an index instead of a texture path.... If you open the icon picker and choose and icon, then click another control ont he current LAM panels, the icon picker will "forget" the selected icon and will not select any icon. This will also happen if the icon picker is closed and you click on any other LAM control. The icon shown inside the closed icon picker is gone all of sudden. This would result in some error messages at addons as at least any icon must be chosen. Selecting no icon would be maybe a solution for some special case but I think there should be selected the last/default icon at least if NO icon was selected or the icon picker get's closed by closing the whole LAM panel (using the ESC key) or clicking somewhere else. Another bug with the edit box: The edit box is shown inside the slider controls somehow and I cannot move the cursor inside properly. You can check it by using my addon FCOChatTabBrain and scroll down to the bottom of the settings panel for example. There should be 2 edit boxes as the 3rd and 2nd last settings, and afterwards there should be shown a slider as the last control. But both edit controls are somehow displayed in each other? Last edited by Baertram : 06/07/15 at 08:50 AM. |
|
06/07/15, 09:23 AM | #10 | |||||
Thanks for the useful feedback
fixed
I marked the containers in the following two images: Compared to r17 you have more space for your label in every case. If it does get truncated you should consider shortening it and writing a descriptive tooltip instead.
Good thing you mentioned this. I totally forgot to test the multiline edit box |
||||||
06/07/15, 11:06 AM | #11 |
Thanks for the explanation. I thought so.
And many thanks for the updated controls, they come in realy handy! The tooltip array is enough, sure! If I need anything else I'll implement it myself for the appropriate addon then. as the tooltip for the widget itsself accepts afunction now I can implement a tooltip showing the current icon's description as well It would be great if you could implement a "defaultColor" for the icon picker widget as well. I bet this comes in handy for addons like "Destinations" too. Thanks again |
|
06/07/15, 11:46 AM | #12 |
I just updated the initial post with the new version.
I guess I could expose the defaultColor, it's already in there anyways. |
|
06/09/15, 08:54 AM | #13 |
Could you change the string of :
panel.lua line 57/112. Lua Code:
to Lua Code:
? In french, there's an ugly grammar mistake since release. Thank you. |
|
06/09/15, 09:52 AM | #14 |
Does SI_INTERFACE_OPTIONS_RESET_TO_DEFAULT_TOOLTIP or SI_OPTIONS_RESET have the same problem?
I also plan to change the reset button to look like the one for the ingame options panel in r19. I think it has a different label so it shouldn't be a problem anymore then. |
|
06/09/15, 10:26 AM | #15 |
no they're all fine.
SI_OPTIONS_DEFAULTS is the string used by zos in options panel SI_INTERFACE_OPTIONS_RESET_TO_DEFAULT_TOOLTIP is a little bit different but correct SI_OPTIONS_RESET is the same as the actual string without the grammar mistake. |
|
06/09/15, 10:34 AM | #16 | ||
what about this? i believe i have this new libaddon menu because my addon's menu changed
|
|||
QuadroTony |
View Public Profile |
Find More Posts by QuadroTony |
06/09/15, 11:45 AM | #17 |
I could not reproduce it so far. Can you give me some more info?
What resolution do your monitors have? What resolution is your game set to? Which rendering mode do you use (DX11, OpenGL)? Did you open any other addon settings menus besides the JunkIt one? Does it happen too when only JunkIt is loaded? |
|
06/09/15, 12:02 PM | #18 |
i cant reproduce it either
i will tell you when i found a way |
|
QuadroTony |
View Public Profile |
Find More Posts by QuadroTony |
06/12/15, 03:48 PM | #19 |
If nobody else has anything to add, I will release the new version sometime this weekend.
|
|
ESOUI » Developer Discussions » General Authoring Discussion » LibAddonMenu-2.0r18 preview |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|