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

Add Progress Bar Widget #7

Open
burksbuilds opened this issue Oct 4, 2023 · 1 comment
Open

Add Progress Bar Widget #7

burksbuilds opened this issue Oct 4, 2023 · 1 comment

Comments

@burksbuilds
Copy link
Contributor

From the README:

A progress bar which shows the progress of some operation. If it changes its setting gradually, it would be possible to render it extremely efficient by updating only the tiles of the framebuffer where the bar actually has changed. UITextLine performs similar computations on text updates.

@burksbuilds
Copy link
Contributor Author

burksbuilds commented Oct 4, 2023

Open questions: (favorite answers bolded)

  1. What datatype should be used to represent 'progress'?
  • Float [0.0,1.0]
  • Float [0.0,100.0]
  • UInt8 [0,MAX]
  • UInt16 [0,MAX] - because bar size will all be integer/pixel math anyway, but 8 bits is too small
  1. When progress is '0', should there be a minimum of one pixel of 'bar' showing?
  • no - because you can always wrap the widget in a row or column group, then put a divider on one side
  1. What should the size of the widget be like?
  • user preferred (compile time) 'width' of bar, 'MAX' height. - would be nice because it is more flexible
  • MAX width, MAX height. - because only specifying UIDirection in one direction on a rotatable element is kind of weird. Plus you can always use an envelope.
  • 'thickness' and 'length' - not to be confused with width and height, so even when rotated it still makes sense.
  1. Should there be some kind of border or padding?
  • no - because envelope can do all of that.

burksbuilds pushed a commit to burksbuilds/UiUiUi that referenced this issue Oct 5, 2023
Added a UIProgressBar widget, which can be oriented with the new enum UIDirection.
burksbuilds added a commit to burksbuilds/UiUiUi that referenced this issue Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant