LDB data source text won't update
Titan Panel is an AddOn for the MMORPG World of Warcraft
Brought to you by:
honorgog
Originally created by: henrik.freiholtz
I update my text label in an OnUpdate, which works fine. However, since 5.0 I've been required to create the object with an initial text value (I didn't, previously), or it will only update once (every PLAYER_ENTERING_WORLD, I think). Is this intended?
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: urn...@gmail.com
5.0 included a lot of changes to better adhere to the LDB spec.
Is your plugin a data source?
My assumption was the field in the LDB object exists before Titan will register a callback for it. That is why you see the text only updating on 'entering world'. My thinking was an LDB object should be created with all the fields it will use as good practice. I did not think of creating the fields later in the code.
I can see blindly registering the text callback for a data source since text is
required. My intent was better adherence to the spec - not to punish the developer. :)
Status: Helping
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: henrik.freiholtz
It's a data source. I can see why you'd want all the fields to be present on creation. I would've thought it wouldn't have had its text updated at all if the object was deemed incomplete, though!
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: urn...@gmail.com
The change was made for the next release to set the callback for .text when the LDB declares itself a data source.
The button text could be set in various ways because the button is a merge of LDB and Titan convention. The LDB name or .label could have set the button text at load / init.
In the future we may make it strictly LDB. For now it is flexible if sometimes confusing.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: urn...@gmail.com
(No comment was entered for this change.)
Status: Testing
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: urn...@gmail.com
(No comment was entered for this change.)
Status: Fixed
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: Honor...@gmail.com
Released with version 5.0.2.
Status: Resolved
Last edit: Anonymous 2016-09-05