Commit Graph

3659 Commits

Author SHA1 Message Date
Dustin Carlino
a301343159 add a setting to scale up on-screen UI things [rebuild] 2020-03-02 12:02:25 -08:00
Dustin Carlino
746e1a7af0 make options screen more of a Composite 2020-03-02 11:22:16 -08:00
Dustin Carlino
b3917bf17b mechanical rename of UI -> App 2020-03-02 09:51:20 -08:00
Dustin Carlino
ed79226595 new release 2020-02-28 19:17:15 -08:00
Dustin Carlino
042bff7971 refactoring this checkbox pattern... wound up also refactoring how
widgets are found within Composites [rebuild]
2020-02-28 19:06:59 -08:00
Dustin Carlino
a17f46703c some super basic way to enable/disable stopping for traffic jams in jump-to-time 2020-02-28 18:25:20 -08:00
Dustin Carlino
52eba43522 stop and warp to gridlock in jump-to-time 2020-02-28 15:19:37 -08:00
Dustin Carlino
e5d9d80c14 make sim stepping way more precise, doing minimal amount of time
advancement in the innermost layer

tested by making sure prebaked results don't budge
2020-02-28 14:52:41 -08:00
Dustin Carlino
0385b96301 improve layout of challenge pregame screens 2020-02-28 13:51:20 -08:00
Dustin Carlino
8fb1f2fa37 cut off the active agent graph properly. dont assume anything about the rest of the day. also reset prebaked in a missing case 2020-02-28 13:11:31 -08:00
Dustin Carlino
ee9485a144 use my glutin fix to start windows on linux faster, until it's upstreamed 2020-02-28 12:54:21 -08:00
Dustin Carlino
0c89b98525 show trip summary after an agent finishes 2020-02-28 12:49:17 -08:00
Dustin Carlino
758fb2a1d0 remove more ModalMenus. DebugMode needs UI work, but it did anyway. 2020-02-27 13:22:57 -08:00
Dustin Carlino
dafbb788ba remove modalmenus from hidden challenges. the functionality needs to be thought out more carefully. 2020-02-27 12:46:01 -08:00
Dustin Carlino
51745d2675 add a better bg for tooltips, centralized in one place 2020-02-27 11:28:57 -08:00
Dustin Carlino
e9468b8ebf add tooltip warnings about the status of different maps. 2020-02-27 11:10:13 -08:00
Dustin Carlino
5e85eee935 clean up dev tools mode, removing ModalMenu dependencies and modernizing
different UI things
2020-02-27 10:38:48 -08:00
Dustin Carlino
01a9986aab remove scenario editor and related things. havent used in ages, the scenario abstraction has proven to be wrong anyway, and it blocks cleanup of old ezgui stuff (SliderWithTextBox). 2020-02-27 09:07:12 -08:00
Dustin Carlino
ae33beb3c9 convert agent spawners from ModalMenu to modern stuff 2020-02-26 22:08:55 -08:00
Dustin Carlino
59ec571aae tweaks to tutorial UI 2020-02-26 15:18:05 -08:00
Dustin Carlino
4af217c140 argh, pushed commit too soon, broke build 2020-02-26 14:43:52 -08:00
Dustin Carlino
1cb11e2edc make unzoomed agent radius more explicitly dependent on camera. no
visible change.
2020-02-26 14:36:19 -08:00
Dustin Carlino
3e6658785e active agent plot breaking polylines 2020-02-26 14:17:41 -08:00
Dustin Carlino
543d815677 use 2-phase traffic signals by default, not 4. avoids some gridlock. now
23rd actually completes just fine!
2020-02-26 14:02:21 -08:00
Dustin Carlino
e19f88cd40 experiment with finding sources of gridlock, exposed as a new heatmap 2020-02-26 12:13:28 -08:00
Dustin Carlino
1ffcd1e5b5 make web fill the entire browser. fix the inverted mouse-wheel
direction.
2020-02-26 10:30:41 -08:00
Dustin Carlino
0ee45bd0e7 track total time agents spend blocked vs moving. be more precise with
tracking blocked_since in the FSMs.
2020-02-26 09:56:57 -08:00
Dustin Carlino
cc17d9eafd fix laggy info panel circles 2020-02-25 17:41:24 -08:00
Dustin Carlino
34b1f342a2 fix map deserialization in wasm. 64-bit usizes in fast_paths was the problem. 2020-02-25 14:49:56 -08:00
Dustin Carlino
64bde1e4a3 multiple hotkeys 2020-02-25 14:17:49 -08:00
Dustin Carlino
06759dc58c new tutorial flow [rebuild] 2020-02-25 12:17:19 -08:00
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