Menu

#648 LDB data source text won't update

Resolved
nobody
None
2011-02-05
2010-12-04
Anonymous
No

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?

Related

Wiki: Titan_Panel_Version_History

Discussion

  • Anonymous

    Anonymous - 2010-12-05

    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

     
  • Anonymous

    Anonymous - 2010-12-05

    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!

     
  • Anonymous

    Anonymous - 2010-12-19

    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.

     
  • Anonymous

    Anonymous - 2011-01-08

    Originally posted by: urn...@gmail.com

    (No comment was entered for this change.)

    Status: Testing

     
  • Anonymous

    Anonymous - 2011-01-31

    Originally posted by: urn...@gmail.com

    (No comment was entered for this change.)

    Status: Fixed

     
  • Anonymous

    Anonymous - 2011-02-05

    Originally posted by: Honor...@gmail.com

    Released with version 5.0.2.

    Status: Resolved

     

    Last edit: Anonymous 2016-09-05

Log in to post a comment.