It is working a bit better than just a slider. It probably can be improved to used ninepath images. For now, I am using two rectangles, a container and a text block.
I mean, it still can be improved.
For instance, I don’t remember if in this version the feature is present, but one could add a “unit” to be shown after the text “100 / 150”. That would look like “100 / 150 words”. You may also allow for a prefix I guess.
I see you moved my post in Demos and Project, but it was a feature request. I would like to add my progress bar helper to BabylonJS GUI, so that we can make progress bars more easily.
I thought the purpose of this new category was to discuss whether something was useful / cool, before to try open a PR. It is also the opportunity for people to discuss how to make a PR ^^ cause maybe some people don’t know how
For instance, you always prefer that members of the community start with reporting a bug in the forum instead of opening directly an issue on Github. I thought that this new category was going to do the same for PRs.
Anyway, could you move my feature request back to feature request?
Thank you
I know how to use Git/Github, I am rather waiting for information on where to add my code in the source code, and whether my current implementation is ok or could be improved…
I would also suggest you submit a PR at this stage, when I have done so Deltakosh has often made suggestions for changes and improvements at that stage.
It is not perfect yet, but the idea is that you could store your styles in json files (or even in the .babylon file) and reuse them; I basically wrote such an interface for almost all the BABYLON.GUI controllers during my recent game project. If you think it could be integrated to BABYLON.GUI, let me know.
I think it is a good addition. I just want to make sure it feels integrated. So the best idea to start the discussion is to do a PR and so we can discuss over the code itself
The interface looks good for me as long as all properties are also available on the ProgressBar itself