Commit graph

4 commits

Author SHA1 Message Date
Oliver 'kfsone' Smith
01408701f9 Use ConstrainRectangle in combobox.go 2021-02-24 13:51:09 -08:00
Oliver 'kfsone' Smith
69cba1203d Format cleanup 2021-02-24 13:23:26 -08:00
Oliver 'kfsone' Smith
cbecfffe04 Combobox cleanup
- Switch to using helpers to detect state and render boxes,
- Make state-coloring declarative in a simple table to reduce code footprint, separate concerns,
  without adding runtime overhead,
- Leverage 'Clicked' state (bonus: eliminates a collision check. A CPU cycle has emerged in the wild!)

No behavioral changes,
2021-02-24 12:46:46 -08:00
Oliver 'kfsone' Smith
8e6dcc45e1 Break raygui.go into separate files
- per-control .go file,
- separate file for style/property stuff,
- added NumProperties enum to the list of properties for constraint checking,
- should be no code changes
2021-02-24 12:18:02 -08:00