prime31 / Nez

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

Nez.UI ProgressBar is a fixed length #744

Open connor-lennox opened 1 year ago

connor-lennox commented 1 year ago

Currently, the PreferredWidth field of horizontal ProgressBars (PreferredHeight for vertical bars) is set to always be 140.

There are two ways a more flexible progress bar could be implemented:

  1. Expose two fields, one for each of these values, that are used in the corresponding cases.
  2. Expose a single field, PreferredLength, which is used for the PreferredWidth in horizontal bars and the PreferredHeight in vertical bars.
connor-lennox commented 1 year ago

I'm going to create an implementation that follows option 2 there, but would be open to switching to option 1 if needed.