Facility Control

 View Only
  • 1.  Parse XML / parameters resetting

    Posted 04-14-2020 04:35

    Hi,

    I have built a starting lineup selector grid, linking to separate XML files for each team. I have a number of buttons (one for each team) that will parse in the XML from the file dependent on the team. This will then populate a number of dropdown parameters, to be able to select the starting lineup from the whole squad list. The button also assigns various colours and images to buttons and canvases etc. All working properly, no issues.

     

    If I open up panel builder and go to edit anything, even with no changes made, once I hit 'apply' then all parameters reset.

     

    Is there any way around this? Assuming in-game a minor change needs to be made to the dashboard it will then reset the parameters

     

    Thanks in advance!



  • 2.  RE: Parse XML / parameters resetting

    Posted 04-14-2020 18:35

    Hi Cameron

    Hitting apply in Panel Builder will always trigger a rebuild of the custom panel. If no changes are made, hitting "close" instead of "apply" will dismiss the editor without triggering a rebuild.

    I think the trick would be to find a way for you to make your panel more configurable outside of edit mode to make sure you don't need to edit your panel in the middle of a show. Failing that, finding a way to make sure the state of your panel is stored inside of parameters or an external file and handling restoring the state "onload" via script would make it so that you can make modifications as necessary.

    If you are already using parameters, make sure you don't have the "Do not save changes made to parameter value" checkbox checked as that will cause them to restored to their original value whenever the panel is rebuilt.

    If you have any questions about these approaches, please follow-up and we can try to assist further.

    Cheers

    James


    #DashBoard


  • 3.  RE: Parse XML / parameters resetting

    Posted 04-15-2020 01:40

    Ah that makes sense, thank you James!


    #DashBoard