Update 35 (Version 8.1)
The next dlc "Lost Depths" will be available on the PTS later today.
New API Version: 101035 Notable Changes
PTS Dev Guild We have created guilds on the EU and NA server for all addon developers, which get copied over during the PTS cycle for a new update, so we can test guild related things, ask for help with testing or just chat. If you need an invite, ask here or over on our Gitter channel. You are also free to join them on the live servers so you don't always have to be reinvited when the PTS is wiped. Links
|
2 Attachment(s)
Documentation. Also, some additional notes:
Added support for flex layouts (Yoga, https://yogalayout.com) Refactored default keybinds a bit after some feedback from here. It's mostly the same as before, but now there's more information about the current state (which the UI visually reflects), less silent failures to save, and more APIs to help easily know whats default and set things back to default. Should make it more clear what's going on and give more tools to gain back binding storage. EditBox default text is now more integrated and less of a hack The WindowManager cursor was added as a convenient way to make arbitrary cursors (i.e.: what gamepad Champion and Tribute uses) that play nicely with hit testing. New way of setting a measurement: calculations - Calculation measurements can be used anywhere that another measurement can be used (e.g. offset, dimensions, etc), but instead of a single value, you can supply an equation. This equation will be recomputed anytime the context of any unit changes, allowing you to use mixed units without having to manually reduce to native units and recompute yourself. To use a calculation measurement, pass in a string of the form “calc(<equation>)”. For example: Code:
control:SetWidth("calc(50ui + 30px)"( Here is another example: Code:
control:SetWidth("calc(50% + 10ui)") Calc supports plus, minus, multiply, and divide as long as there is space around the operator. |
OnMapUpdateComplete() looks like an event but isn't ?
|
OnMapUpdateComplete was added for some logging stuff. It won't do anything an addon will care about. But it is a function, not an event. It is a function to be called when the map update lua function is complete.
|
Quote:
|
Quote:
|
Quote:
The old way of just having Lua ask "hey, what control is under this position" was unreliable for certain edge cases. So this is to solve for that. If you plan on building your own custom cursor, and you want it to hit test with other controls, you'd want to register it with this new cursor API to make your life easier and more reliable. |
Okay, I missunderstood the message. Thanks for the clarification Dan.
|
To all addon devs:
If you get this error message Code:
Load[/EsoUI/Libraries/ZO_Templates/EditBoxTemplates_Keyboard.xml(xxxx)] (inherits): Error: Unable to find virtual object [ZO_EditDefaultText]. ZOsDanBatson already told us that the editbox was changed and the default text is handled differently now. Please remove the inheritance to ZO_EditDefaultText in your code as it is pointless after PTS was set live. The error message currently was not meant to show and there might be a fix incoming, but removing the inheritance should be best to do here! Many addons which use an editbox are effected, also popular ones like Dolgubons Lazy Set Crafter, InentoryInsightFromAshes, WishList, DebugLogViewer, ... Edit - Feedback from ZOsDanBatson: Quote:
Lua Code:
Quote:
So we should folow the new way and change our addons accordingly if we update the addons in question the next time: -Remove Code:
inherits="...ZO_EditDefaultText" Code:
defaultText="Default text for empty editbox" -Stop calling function Code:
ZO_EditDefaultText_OnTextChanged Important: If you remove the inheritance to ZO_EditDefaultText and call the function ZO_EditDefaultText_Initialize the function will raise a nil error because the default text label is missing then. So if you prepare a live & PTS version you need to add a check to the XML code like Code:
<OnInitialize> |
2 Attachment(s)
Updated documentation
|
Quote:
Hi Dan, What did change in here from PTS to live ? EDIT: all fixed my side :) |
All times are GMT -6. The time now is 03:28 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI