prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 355 forks source link

Variable progressbar length #745

Closed connor-lennox closed 1 year ago

connor-lennox commented 1 year ago

This addresses #744 by adding a PreferredLength field to the ProgressBar widget, which determines the PreferredWidth field for horizontal progress bars and the PreferredHeight field for vertical progress bars.

To maintain backwards compatibility, this value defaults to 140, which was the previous hard-coded value for these preferred width/height fields.