abstreet/fifteen_min
Dustin Carlino b7f3f2113b Start refactoring a common UI pattern: recalculate some value only when (#406)
Start refactoring a common UI pattern: recalculate some value only when
a key changes.

It's quite verbose right now for some widgetry States to determine if
the mouse is over a particular type of object, check if that object has
changed since the last time, and calculate something based on it. This
introduces a new helper for expressing the pattern a little more
clearly.
2020-11-25 12:22:11 -08:00
..
src Start refactoring a common UI pattern: recalculate some value only when (#406) 2020-11-25 12:22:11 -08:00
Cargo.toml draw route to hovered building (#402) 2020-11-24 11:30:03 -08:00