Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the Scene Navigation progress bar to the API allowing developers to display percentage progress for various long-running actions. #5692

Closed
aaclayton opened this issue Aug 6, 2021 · 2 comments
Assignees
Labels
api Issues related to the API used by Mod Devs ui Issues focused on user interface improvements

Comments

@aaclayton
Copy link
Contributor

Originally in GitLab by @adamoresten

Feature Summary

In some cases, module creators may be executing large scale operations in Foundry, and it would be useful to be able to display a progress bar to let the user know how the operation is progressing. Extending this further to supporting multiple progress bars would perhaps be useful as well, so that the progress of multiple operations can be communicated.

User Experience

A module would instantiate a ProgressBar class, which would create a progress bar that's displayed at the top of the canvas, in addition to any others already there. This class would have simple functions such as setPercentage (accepting a single percentage value) and setPercentageFromTotal (accepting current value and total value).

If a class such as this would be out of scope, a simple static interface would also suffice, though one could argue that the interface in place (however "private") captures the feature already.

Priority/Importance

Low. This interface is a definite low priority as it might be useful for only a small demographic of module creators.

@aaclayton
Copy link
Contributor Author

I agree this is a nice suggestion and would be helpful to allow module developers to reuse this progress bar for other things.

@aaclayton
Copy link
Contributor Author

Simple solution for now leaving room for a more sophisticated interface in the future:

SceneNavigation.displayProgressBar({label, pct});

@aaclayton aaclayton self-assigned this Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to the API used by Mod Devs ui Issues focused on user interface improvements
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant