mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 20:29:04 +03:00
b7f3f2113b
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |