scallyw4g / bonsai

A voxel engine in a pot
Do What The F*ck You Want To Public License
202 stars 12 forks source link

Radio buttons should treat the enum value as primal #57

Closed scallyw4g closed 1 month ago

scallyw4g commented 6 months ago

At the moment the radio buttons are a little weird.

They currently don't treat the enum value they're created from as primal. The proof of this is that if you open two windows that read/modify the same value, toggling a radio button in one does not update the other. This is undesired, and actually a bug. Since the underlying enum value is actually modified, the view that doesn't update is stale, and displaying the wrong value!!

Additionally, radio groups don't display the default value (typically zero), as selected, which smells pretty wrong.