Commit Graph

3678 Commits

Author SHA1 Message Date
Dustin Carlino
682c9e76f8 trip info panel had no header (and thus way to close it). 2020-02-25 11:01:27 -08:00
Dustin Carlino
fbb4140181 tiny wasm cleanup. havent figured out serde problem yet. [rebuild] 2020-02-25 10:35:58 -08:00
Dustin Carlino
0f19cbab55 glsl 300 isnt working on mac. go back to 140 on native, and only use 300 for wasm. [rebuild] 2020-02-25 10:02:40 -08:00
Dustin Carlino
d17be067e0 select entire roads/intersections in unzoomed edit mode, click to zoom
in
2020-02-24 16:41:43 -08:00
Dustin Carlino
cbfd0259b3 hide building paths in unzoomed mode 2020-02-24 15:36:29 -08:00
Dustin Carlino
d1757873e7 handle (some?) trip transitions in info panels [rebuild] 2020-02-24 15:26:22 -08:00
Dustin Carlino
8c26109b13 dont check the 'following car' tutorial bit until the panel is actually opened 2020-02-24 14:39:29 -08:00
Dustin Carlino
763d7ebe34 rip out the old Stage abstraction. I would do this more slowly, but we can't clone the spawn closure. the flow of the tutorial is pretty much the same, but now we could display specific message boxes better 2020-02-24 14:29:10 -08:00
Dustin Carlino
7ba9170ff6 WIP starting to group tutorial stages internally 2020-02-24 13:46:47 -08:00
Dustin Carlino
da1731ccb2 start with the realistic scenario by default. give extra info about some
scenarios by adding tooltips in the popup menus
2020-02-24 11:27:22 -08:00
Dustin Carlino
5d14ce3864 new release 2020-02-23 11:43:46 -08:00
Dustin Carlino
bba71844fd small tweaks after a quick round of UX testing: [rebuild]
- flip order of +.1s, +1h buttons to match qwerty keybindings
- arrow keys for changing speed
- escape key applies to info panels first
- click out of some Composites to cancel them
2020-02-23 11:37:09 -08:00
Dustin Carlino
1268890b75 revamp time warp screen 2020-02-21 12:57:51 -08:00
Dustin Carlino
74a95093bd let speed controls directly reset to midnight by plumbing gameplaymode. so now jump to time can reset, then time warp. [rebuild] 2020-02-21 12:43:30 -08:00
Dustin Carlino
64cf4c5d69 replace components in an existing Composite. use for jump to time. maybe this will be convenient in lots of other places too... 2020-02-21 12:19:24 -08:00
Dustin Carlino
95b9731dee rip out all of the support for textures from ezgui. no more uber-shader!
\o/
2020-02-20 18:23:00 -08:00
Dustin Carlino
c3b3b9d74c new lyon can handle the last two svgs! remove the pngs 2020-02-20 18:16:46 -08:00
Dustin Carlino
8693c4f0d2 upgrade to latest lyon, which has a new fill tesselator 2020-02-20 18:12:09 -08:00
Dustin Carlino
db69dbd4df fix the active agents calculation. buckets... don't make any sense. 2020-02-20 17:50:42 -08:00
Dustin Carlino
5e64a2817f starting a new jump-to-time screen 2020-02-20 15:52:21 -08:00
Dustin Carlino
d29839fa27 display a plot of activity over the day. the windowing is incorrect! but
it's some kind of start
2020-02-20 15:11:50 -08:00
Dustin Carlino
3d972389e9 tutorial tweaks:
- no moving canvas during instructions
- hint about heatmap layers more
- reset camera after watching bikes, but before fixing them
- OK -> next
- checkboxes for parts of tasks
2020-02-20 13:48:55 -08:00
Dustin Carlino
266ca19970 adjust speed controls, and make note of keybindings in the tooltip 2020-02-20 13:30:33 -08:00
Dustin Carlino
3ed6a8e6db few small tweaks:
- adjust minimap agent size
- info panel is explicit about stop signs
- adjust unzoomed threshold
2020-02-20 13:19:50 -08:00
Dustin Carlino
2a747ef46b tooltips for UI elements only. don't need the OSD fullscreen now. 2020-02-20 11:24:50 -08:00
Dustin Carlino
775a4d4035 fix crash before traffic signal preview, and weird finished trips pct 2020-02-19 14:15:22 -08:00
Dustin Carlino
e79790249e separators in meters [rebuild] 2020-02-19 13:44:09 -08:00
Dustin Carlino
fe068da3f4 hide all of the phase editing behind a menu too [rebuild] 2020-02-19 13:08:53 -08:00
Dustin Carlino
841f13f13d move some buttons behind more menus [rebuild] 2020-02-19 12:45:54 -08:00
Dustin Carlino
294ef481f3 signal editor style:
- smaller phase icons
- better currently selected phase drawing
2020-02-19 12:04:54 -08:00
Dustin Carlino
044eef2b43 fix traffic signal editing, broken by the EditCmd refactor 2020-02-19 09:55:50 -08:00
Dustin Carlino
a65ea991e5 adjust tutorial wording 2020-02-19 09:40:26 -08:00
Dustin Carlino
848347a9b5 change up agent meters 2020-02-19 08:23:06 -08:00
Dustin Carlino
e713013cf9 improve lane editor. click to edit different lanes 2020-02-18 19:07:46 -08:00
Dustin Carlino
f28961e9c4 add padding to OSD 2020-02-18 17:43:00 -08:00
Dustin Carlino
a88a836752 adjust unzoomed colors 2020-02-18 17:33:41 -08:00
Dustin Carlino
b4017cc0e2 put action buttons higher up in info panels 2020-02-18 17:31:29 -08:00
Dustin Carlino
171335f64d woops, need rust 1.41 in github actions for the cargo profile overrides
[rebuild]
2020-02-18 15:43:21 -08:00
Dustin Carlino
d112707261 more info about trips to/from bldgs and intersections [rebuild] 2020-02-18 15:15:31 -08:00
Dustin Carlino
f71c1d521e add the trip data button. just removed the svg clip and it worked fine. 2020-02-18 12:19:34 -08:00
Dustin Carlino
f90ac143e0 put IDs back in info panels, in a less scary way. make histogram a bit
smaller, to stop covering new scorecard
2020-02-18 12:14:05 -08:00
Dustin Carlino
8434369d94 simplify representation of intersection edits, to allow proper undoing 2020-02-18 10:45:50 -08:00
Dustin Carlino
93c159b844 convert between stop signs and traffic signals. fixes #16 2020-02-18 09:54:14 -08:00
Dustin Carlino
0f0924ac56 restore an old debug tool to spot what agents are blocking an intersection. optional mode to avoid some gridlock... seemingly working for a few cases, but breaking other stuff, so disabled. 2020-02-18 08:40:05 -08:00
Dustin Carlino
696f78751b oh yeah, rust 1.41 has profile overrides. have some massive speedup in
debug mode. :D
2020-02-18 07:56:38 -08:00
Dustin Carlino
254d07223e option to invert scroll direction 2020-02-18 07:30:32 -08:00
Dustin Carlino
3555e58369 new map! tried to grab fresh OSM, but some of the old fixes broke it, so
will find a workaround tomorrow
2020-02-17 21:54:50 -08:00
Dustin Carlino
bd51208684 name intersections in info panels better, and avoid horizontal scrolling
in most?? cases
2020-02-17 17:07:25 -08:00
Dustin Carlino
46b91f0621 move map_path to be a function of GameplayMode, not Challenge. consolidate soem switch_map callers. 2020-02-17 16:43:36 -08:00
Dustin Carlino
47d367d82f when you complete a challenge, offer to jump to the next step 2020-02-17 16:08:58 -08:00