Results 1 to 2 of 2

Thread: addToXML and addToCustomAssets (for UI code)

  1. #1

    Talking addToXML and addToCustomAssets (for UI code)

    It would be useful to have addToXML and addToCustomAssets functions.

    These UI functions would be similar to setXML() and setCustomAssets() but by ADDING that XML and those CustomAssets instead of replacing that XML or those custom assets. You can currently do it manually but it is annoying to have to do it every time you want to non-destructively add UI code to something

  2. #2
    I also think that something like this is necessary, but I would like it for the optimisation options it would bring - by making a call like

    UI.updateXmlTable {
        children = {
          children = {
              tag = "Text",
              value = var
    We would be able to tell the UI system the specific elements that are changing, meaning the whole tree wouldn't have to be updated.

    This code would also allow UI from different mods to coexist, as if they are both using updateXml, then their trees will be updated separately.

    I would imagine this working by keeping track of the table references inside the Xml tree, which would inevitably take up more memory to keep track of (But should only need to be done on host?), when the table passed to updateXml matches one already in the tree, it would instead apply the properties as an update to that table (including children)

    Those same tables should also be returned by setXml so as to make this as useful as possible

Similar Threads

  1. [SUPPORT] No matter what I do, I keep getting this error code.
    By Ondesa in forum Technical Support
    Replies: 1
    Last Post: 01-28-2019, 09:15 AM
  2. BB Code list?
    By TheRaven81 in forum General Discussion
    Replies: 4
    Last Post: 09-17-2018, 09:18 AM
  3. Help with strange bug in my code!
    By Tragic in forum Scripting
    Replies: 1
    Last Post: 04-22-2018, 02:14 AM
  4. Question about OneLivesLeft's Wait Code....
    By Tragic in forum Scripting
    Replies: 2
    Last Post: 01-05-2018, 08:24 PM
  5. BB Code error with long strings
    By MrStump in forum Scripting Bug Reports
    Replies: 2
    Last Post: 01-27-2017, 12:20 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts