So I have this function that calls a bunch of other functions. I wanted to add a progress bar so that after each of the inner functions are run, it would show the progress. However, I'm discovering (I think) that while a function is being run, the layout isn't being updated. Once I click the button to start, the progress bar doesn't move until the main function completes.
Is there anyway to refresh the layout so that this progress bar shows movement?
* On function 'Startup'
-> Functions: Call BuildArrayRandom
-> ProgressBar: Set progress to ProgressBar.Progress+1
-> Functions: Call AverageTheArray
-> ProgressBar: Set progress to ProgressBar.Progress+1
-> System: Set ArrayTotal to round((ArrayTotal÷ArrayCount))×MapFilter
-> Functions: Call SetTerrainIslandorWater
-> ProgressBar: Set progress to ProgressBar.Progress+1
-> System: Set ArrayCount to 0
-> Functions: Call EliminateOrphans
-> ProgressBar: Set progress to ProgressBar.Progress+1
-> Functions: Call FillInPonds
-> ProgressBar: Set progress to ProgressBar.Progress+1
-> Functions: Call FixConnectors
-> ProgressBar: Set progress to ProgressBar.Progress+1
-> Functions: Call PlaceBeaches
-> ProgressBar: Set progress to ProgressBar.Progress+1
-> Functions: Call CopyToTilemap
-> ProgressBar: Set progress to ProgressBar.Progress+1