Commit Graph

1022 Commits

Author SHA1 Message Date
Dustin Carlino
d4cd9c2899 put legend to the right of minimap, to emphasize its for minimap only 2020-03-19 18:54:06 -07:00
Dustin Carlino
5e824562ac remove Inner ACS; only one case now 2020-03-19 18:52:06 -07:00
Dustin Carlino
760ee795e7 scrap intersection delay, make a new road-or-intersection delay, based just on waiting turns 2020-03-19 08:34:02 -07:00
Dustin Carlino
fea6129f00 filling out trip timeline icons and colors (with some placeholders).
fixing the icon for locating an object and for visibility hidden.
2020-03-18 19:47:21 -07:00
Dustin Carlino
87e605a119 prototype a live dot map in debug mode 2020-03-18 19:17:54 -07:00
Dustin Carlino
eda0237ea7 improve debug mode UI -- menu style, use checkboxes. simplify and speed
up all route viz
2020-03-18 14:41:34 -07:00
Dustin Carlino
b08c2caa12 wittle down more old button constructors. also improve splash screen style. 2020-03-18 11:45:20 -07:00
Dustin Carlino
01b5617840 show recommended scale factor in options [rebuild] 2020-03-18 10:22:39 -07:00
Dustin Carlino
e47d5f7917 fix parking markings and where pedestrians walk for left-hand maps for #27 2020-03-17 10:09:44 -07:00
Dustin Carlino
6de415033e more button refactor:
- custom tooltips
- get rid of a few old Button constructors
2020-03-17 09:46:51 -07:00
Dustin Carlino
be9671a51f more fixes for left-hand maps (#27):
- avoid a crash by deduping intersection polygon points
- make shared sidewalk corners saner by flipping order of points
- improve crosswalk determination
2020-03-16 18:27:33 -07:00
Dustin Carlino
812c7fa640 start support driving on the left, more carefully tracking all the dependencies. part of #27. lots of bugs left, but it doesn't break anything for driving on the right. 2020-03-16 17:40:12 -07:00
Dustin Carlino
2ae6992a3e continue button refactor 2020-03-16 12:20:37 -07:00
Dustin Carlino
122aa1e25c starting a refactor of buttons. very modest start. [rebuild] 2020-03-15 19:58:03 -07:00
Dustin Carlino
64082501eb plot elevation over time for bikes and peds, guarded behind dev mode 2020-03-15 12:47:14 -07:00
Dustin Carlino
4accd788f2 new overlay showing elevation changes. data is bad, but the overlay is decent. 2020-03-15 12:42:30 -07:00
Dustin Carlino
fedacfe202 reduce verbosity of constructing text widgets [rebuild] 2020-03-13 23:06:52 -07:00
Dustin Carlino
8f285be4fe jump from agent or trip to person, and from person to building and trips 2020-03-13 18:41:49 -07:00
Dustin Carlino
7775546a7e really awkward manual way of going from building to people inside 2020-03-13 12:36:55 -07:00
Dustin Carlino
10a8466d5d represent people in sim layer, track their state transitions 2020-03-12 16:28:47 -07:00
Dustin Carlino
5c8529a201 argh, fix bug in prev commit. seed_parked_car happens in the middle of the TripSpawner existing. 2020-03-12 15:53:06 -07:00
Dustin Carlino
87e9431f91 rearrange people/trips in the Scenario layer 2020-03-12 15:38:58 -07:00
Dustin Carlino
d852d69535 make TripSpawner a temporary setup object, not something permanently stored in Sim 2020-03-12 15:00:50 -07:00
Dustin Carlino
6e8846bf85 bring back elevation data before the hackathon. manual revert of 35b7c18df9 2020-03-11 11:08:49 -07:00
Dustin Carlino
2939dadf23 cut out the metadata and walk button mapping for now, in favor of freeform notes. 2020-03-10 16:41:37 -07:00
Dustin Carlino
28babb414f display baseline plots for roads/intersections 2020-03-10 12:42:30 -07:00
Dustin Carlino
c316d918d7 can only type in text boxes with focus 2020-03-09 13:23:03 -07:00
Dustin Carlino
e8bb993dfd make dropdown menus work reasonably: fix z value, add background, recalculate button outline 2020-03-09 09:40:59 -07:00
Dustin Carlino
c5ad4d9135 tweak how current/conflicting turns draw, mostly just to trigger a handy dandy [rebuild] 2020-03-08 20:34:30 -07:00
Dustin Carlino
da6abc019b overhaul one of the oldest things ever, the almighty turn cycler 2020-03-08 11:27:00 -07:00
Dustin Carlino
6e8414c088 modernize full signal diagram 2020-03-08 09:41:21 -07:00
Dustin Carlino
f9b2c5de4f optionally use touchpad for different canvas movement controls 2020-03-07 16:13:30 -08:00
Dustin Carlino
5a3263df47 quick fixes after ux study:
- double finish button on signal editor
- reset ACS on each tutorial stage
2020-03-07 15:59:45 -08:00
Dustin Carlino
92447785a1 hastily avoid a div by zero [rebuild] 2020-03-07 11:43:39 -08:00
Dustin Carlino
da6b4c57a0 use route colors that match timeline 2020-03-06 09:14:19 -08:00
Dustin Carlino
4eae0c8394 trip timeline shows relative duration of each phase [rebuild] 2020-03-06 08:58:52 -08:00
Dustin Carlino
bd2cb6ddd1 first steps towards representing people, not just trips 2020-03-05 17:28:57 -08:00
Dustin Carlino
476751147c starting a new dropdown widget and using it for picking walk buttons.
avoids the cloneable mess. but has lots of new little issues...
2020-03-05 15:00:42 -08:00
Dustin Carlino
c1b9684929 editing for walk buttons. doing it the straightforwardish way requires a
dependency on abstutil for Cloneable! time to try something much nicer
2020-03-05 12:51:04 -08:00
Dustin Carlino
54f4597166 just refactoring some places that mutably build up rows/cols 2020-03-04 16:13:17 -08:00
Dustin Carlino
250b59bfee generalize checkboxes slightly. use in demo 2020-03-04 15:55:44 -08:00
Dustin Carlino
0fd4de749d enter signal metadata via a form with multiple textboxes at once. needs
work.
2020-03-04 15:33:28 -08:00
Dustin Carlino
1ad434f3d6 record some metadata about the traffic signals. bad UI for now. 2020-03-04 14:40:32 -08:00
Dustin Carlino
d44303de5c starting a new crate with a JSON schema for traffic signals. exporting
to it.
2020-03-04 11:59:41 -08:00
Dustin Carlino
0f5ab2f410 change turn group representation to prepare for cross-map edits 2020-03-03 17:20:56 -08:00
Dustin Carlino
cc1ee8384a enum for trip phases 2020-03-03 12:42:51 -08:00
Dustin Carlino
08cd956faa filling out the trip timeline a bit more 2020-03-03 12:12:42 -08:00
Dustin Carlino
798097bb3a quick fixes from ux study:
- allow escaping from trip transition dialog
- adjusting newlines on large text block
- hide the "edit entire road" tool until it's thought through
- reset to beginning of instructions after clicking help
- adjust wording of quit dialog
2020-03-03 09:38:45 -08:00
Dustin Carlino
03d4b4d717 switching to a different view for the trip timeline. needs lots of
adjustment.
2020-03-02 14:49:19 -08:00
Dustin Carlino
41fe85fe4b buttons in trip timeline to jump to endpoints 2020-03-02 14:14:54 -08:00
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
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
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
e19f88cd40 experiment with finding sources of gridlock, exposed as a new heatmap 2020-02-26 12:13:28 -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
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
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
c3b3b9d74c new lyon can handle the last two svgs! remove the pngs 2020-02-20 18:16:46 -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
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
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
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
Dustin Carlino
d56803a12a include ongoing trips in measured trip times. adjust wording of
"finished trips" things.
2020-02-17 15:58:27 -08:00
Dustin Carlino
2316a725b1 show a score card in the tutorial too [rebuild] 2020-02-16 20:37:35 -08:00
Dustin Carlino
5c79efcc60 move traffic signal challenge score to agent meters. nix the confusing
details button for the moment.
2020-02-16 19:32:27 -08:00
Dustin Carlino
4a4917f2f0 plumb in pieces of SandboxMode into the gameplay. undo the event_with_speed hack. 2020-02-16 19:12:33 -08:00
Dustin Carlino
3e0246edec find some way to prebake tutorial scenarios 2020-02-16 11:45:23 -08:00
Dustin Carlino
d292e29ad0 get the game crate running in wasm. bundle in lots of data files, fake out a few more IO things, glue timer println's to console log 2020-02-15 16:44:06 -08:00
Dustin Carlino
9a9619ec32 moving game assets to data/system, to more easily bundle in wasm
[rebuild]
2020-02-15 16:19:23 -08:00
Dustin Carlino
bdb0844512 make game crate compile under wasm 2020-02-14 16:15:44 -08:00
Dustin Carlino
b2c92ab8f9 upstreaming some changes for wasm here
- use instant crate
- bring in the wasm ezgui backend and necessary setup tweaks
- upgrade stdweb

but no map editor build magic yet
2020-02-14 14:28:25 -08:00
Dustin Carlino
d7d8b472e5 adjust escort mission 2020-02-13 14:30:14 -08:00
Dustin Carlino
152568476c no more Text::prompt 2020-02-13 13:57:48 -08:00
Dustin Carlino
b2e21ea856 disable more controls early in tutorial. change tutorial goal text in a
few more cases.
2020-02-13 13:23:48 -08:00
Dustin Carlino
88a58fac8f adjust tutorial instructions based on progress within a stage. had to
internally revamp tutorial state (again for the better!)
2020-02-12 17:08:57 -08:00
Dustin Carlino
1f0b225b6b cleaning up trip_details 2020-02-12 16:17:41 -08:00
Dustin Carlino
691dcdfbbc also revamp panels for other objects, except for the trip details part 2020-02-12 12:22:43 -08:00
Dustin Carlino
fc47d2b948 work on info panels a little more. lanes are looking pretty good now. 2020-02-12 11:16:05 -08:00
Dustin Carlino
8b50492d42 trying out a different look for info panel contents. mostly just lanes
right now
2020-02-11 17:04:25 -08:00
Dustin Carlino
ba83207477 mitigate accidental tutorial restarting 2020-02-11 16:32:53 -08:00
Dustin Carlino
b033c4f720 round of quick fixes to avoid crashes 2020-02-11 16:13:42 -08:00
Dustin Carlino
66c983d119 refactor away DrawCtx, just pass UI 2020-02-10 13:28:03 -08:00
Dustin Carlino
f359995a27 adjust the indication of some selected objects 2020-02-10 13:16:39 -08:00
Dustin Carlino
6ff0c85a14 cutover to use winit's own event loop. thanks to goddessfreya for help
fixing the animation timing in
https://github.com/rust-windowing/winit/pull/1450#pullrequestreview-355698895
2020-02-10 10:01:49 -08:00
Dustin Carlino
604c87f2c7 new release. also sneak in tiny popup menu fix for the next round 2020-02-09 17:32:03 -08:00
Dustin Carlino
1cd7629dfa dont reload prebaked data unnecessarily [rebuild] 2020-02-09 17:15:33 -08:00
Dustin Carlino
935e42aee6 upgrade glium and glutin
- reference events exported from glutin as winit events, which will ease a transition to wasm (where winit is used with glow, not glium)
- also winit stopped requiring a dance to convert logical to physical sizes, so stop tracking dpi!
2020-02-09 10:56:51 -08:00
Dustin Carlino
4f7bed25cd massive and trivial perf boost to draw_unzoomed_agents 2020-02-08 16:58:26 -08:00
Dustin Carlino
e46cd7b677 cache SVGs 2020-02-08 16:27:45 -08:00
Dustin Carlino
db65e1d41f slightly less inefficient draw_blocking_text 2020-02-08 13:52:29 -08:00
Dustin Carlino
c51c37caba draw the OSD better [rebuild] 2020-02-08 10:36:44 -08:00
Dustin Carlino
fad4cdbda2 plumb font directory so it'll work anywhere, but still would prefer to bundle binary data properly 2020-02-08 10:36:44 -08:00
Dustin Carlino
da59362dfe fix z values, especially for tooltips. also refactor Button::new 2020-02-08 10:36:44 -08:00
Dustin Carlino
12826fe118 start dismantling DrawBoth, and make the JustDraw API nicer 2020-02-08 10:36:44 -08:00
Dustin Carlino
3ff56f54cf prepping for a caching layer by changing render API, plumbing ctx...
getting close
2020-02-08 10:36:44 -08:00
Dustin Carlino
7c76f2d119 migrating all callers of draw_text_at_mapspace to do something better now 2020-02-08 10:36:44 -08:00
Dustin Carlino
d806d9509b draw traffic signal text label properly (and way more efficiently now) 2020-02-08 10:36:44 -08:00
Dustin Carlino
95c1f47047 clean up text_dims, then unplumb a BUNCH of stuff 2020-02-08 10:36:44 -08:00
Dustin Carlino
a3149d2219 no_edits -> untitled edits 2020-02-06 13:15:09 -08:00
Dustin Carlino
872cd0cba6 'save as' feature for map edits. autosave otherwise. 2020-02-06 12:31:06 -08:00
Dustin Carlino
1147d29d98 get rid of some modalmenus in edit mode [rebuild] 2020-02-05 18:02:19 -08:00
Dustin Carlino
bdb4ba43ba less terrible stop sign editor [rebuild] 2020-02-05 16:54:10 -08:00
Dustin Carlino
950238af81 close intersections from signal and stop sign editor 2020-02-05 16:34:42 -08:00
Dustin Carlino
2f2f0506fa jump to lane editor straight from sandbox mode. tune lane editor style
slightly [rebuild]
2020-02-05 16:17:16 -08:00
Dustin Carlino
462a812348 ripping out lane paintbrush editor, changing to a popup per lane 2020-02-05 16:03:20 -08:00
Dustin Carlino
bcf4550be2 no info panels in edit mode, just click to jump to editors. no more
selecting buildings. removing some of the revert shortcuts from the
direct edit mode, since there's no more info panel to see multiple
actions
2020-02-05 15:22:05 -08:00
Dustin Carlino
a878f57a42 refactor rotating colors, and use a different palette for the 10 bucket case 2020-02-05 14:53:22 -08:00
Dustin Carlino
10ef4057a0 make buttons in sandbox dash look more like tabs 2020-02-05 13:01:35 -08:00
Dustin Carlino
2d73513b0c flexbox trick to make sure plot axes arent stretched out too much when embedded in larger panels 2020-02-05 12:44:05 -08:00
Dustin Carlino
0909344c15 minimap tuning: add vertical separator, make the dropdown appear by the
button
2020-02-05 12:15:37 -08:00
Dustin Carlino
f4c6b4453a scrape info from PSRC to relate trips to people. not plumbed into
scenario layer yet.
2020-02-04 19:54:13 -08:00
Dustin Carlino
91234bf49a slow day. prototype a dot map from scenarios 2020-02-04 16:30:44 -08:00
Dustin Carlino
b0a56abb6e no more prompt in some of the popups, adjust the menu coloring, cancel
popups by clicking on the map
2020-02-04 13:41:09 -08:00
Dustin Carlino
7f82241ed9 put some popup menus beneath their buttons 2020-02-04 13:25:53 -08:00
Dustin Carlino
17ebb506b5 draw previous state underneath wizards, so everything doesnt vanish 2020-02-04 12:52:47 -08:00
Dustin Carlino
0890a37ee1 carve out a section for showing off curated proposals [rebuild] 2020-02-03 18:01:49 -08:00
Dustin Carlino
28d593797a overhaul fullscreen layouts: splash menu, about, challenge picker,
sandbox dashboards. I think I understand enough of the tricks now.
2020-02-03 16:13:40 -08:00
Dustin Carlino
92c2fca55e make the details button in signal challenge inactivate 2020-02-03 12:01:13 -08:00
Dustin Carlino
28dcf63c8e simplify challenge picking flow. stop listing previous proposals, for now. use the same tab style as sandbox dashboards 2020-02-03 11:53:54 -08:00
Dustin Carlino
59f2f03acb refactoring some UI-related colors 2020-02-03 11:14:17 -08:00
Dustin Carlino
8a2d73ae23 stick tutorial state in UI session data. now we can remember current and
latest stage, start dev mode in the right place, and start at any stage
via flag
2020-02-03 10:21:13 -08:00
Dustin Carlino
17bb3548ff loading screen while clearing edits, and clear edits when leaving
tutorial
2020-02-02 17:46:52 -08:00
Dustin Carlino
116d0dfef0 revamp tutorial mode as a gameplay mode underneath sandbox. few small
bugs left after the transition. unlocks more fixes and improvements
2020-02-02 14:17:27 -08:00
Dustin Carlino
6f6dda72bd better turn group blocks that handle variable lane width and
non-contiguous turn lanes. also clarify part of tutorial for #42
2020-02-01 19:11:01 -08:00
Dustin Carlino
abba4be202 filter out overlays intelligently 2020-02-01 11:39:48 -08:00
Dustin Carlino
719e720bf7 more obvious way to leave edit mode [rebuild] 2020-01-31 15:34:55 -08:00
Dustin Carlino
2daf5c51ca fix bugs transitioning around edit mode 2020-01-31 15:30:46 -08:00
Dustin Carlino
adbbe669d7 working on the tutorial again 2020-01-31 15:16:26 -08:00
Dustin Carlino
8228f53d02 make it easier to debug objects by warping to them, draw turn cycler
arrows a little more successfully
2020-01-31 14:06:37 -08:00
Dustin Carlino
1d13ae39c3 explain a few more things in the tutorial, improve arrows a bit
[rebuild]
2020-01-31 12:18:44 -08:00
Dustin Carlino
800008dc03 making the histogram more clear about same trips 2020-01-30 15:33:27 -08:00
Dustin Carlino
da92518d62 align all overlay panels above the minimap 2020-01-30 14:38:26 -08:00
Dustin Carlino
e96fa0f96f fix bounds of tutorial levels, so max unzoom and minimap and such work.
always display minimap in sim modes.
2020-01-30 14:25:02 -08:00
Dustin Carlino
e87e77f06e hide other challenges outside of dev mode 2020-01-30 13:55:48 -08:00
Dustin Carlino
c62ca1a125 try again or back out of challenge after final score 2020-01-30 13:50:46 -08:00
Dustin Carlino
a0ec59b6c3 remove the modalmenu from traffic sig challenge. show target goal always. pop up score when all trips are done 2020-01-30 12:00:21 -08:00
Dustin Carlino
2cc536608a move trffic signal score into the top-center panel, put a button there to launch the full histogram 2020-01-30 11:28:39 -08:00
Dustin Carlino
cc489ae03f dismantle GameplayRunner indirection 2020-01-30 11:08:33 -08:00
Dustin Carlino
92c6b8e282 give ownership of the top-center panel to each gameplay state 2020-01-30 11:01:40 -08:00
Dustin Carlino
78344ee2a4 simplify traffic signal challenge's communication of main score. move
count/duration comparators to a more general place.
2020-01-30 10:49:20 -08:00
Dustin Carlino
d3fe865ad9 tuning signal editor 2020-01-29 16:22:49 -08:00
Dustin Carlino
cfbaf80fe3 autoscroll signal editor to show the current phase 2020-01-29 15:59:56 -08:00
Dustin Carlino
d54384742a tune minimap controls. also avoid the brief flash of a loading screen
when it's very fast [rebuild]
2020-01-29 13:35:36 -08:00
Dustin Carlino
c07d5b7c55 add a 4th speed option (uncapped) 2020-01-29 12:47:33 -08:00
Dustin Carlino
2750035172 tuning the speed panel, to fix #34 2020-01-29 12:26:09 -08:00
Dustin Carlino
43ea723111 tune lane editor style, and refactor some widget centering patterns
[rebuild]
2020-01-29 12:16:18 -08:00
Dustin Carlino
4ceae3de14 embed a version number in the title screen 2020-01-29 11:43:54 -08:00
Dustin Carlino
5914b39fc5 adjust bus stop and crosswalk icons after thinner sidewalks. deactivate
turn cycler when hovering on bus stops (and other objects)
2020-01-29 11:13:45 -08:00
Dustin Carlino
b2216bb482 not all lanes have to be the same width. make sidewalks a bit thinner. 2020-01-28 17:26:14 -08:00
Dustin Carlino
5048c69750 scrape named amenities from OSM, match to buildings 2020-01-28 15:57:45 -08:00
Dustin Carlino
8a966395af prevent a crash with spawning agents around intersections. tiny tutorial tweaks 2020-01-28 14:33:55 -08:00
Dustin Carlino
e733fe9d94 plumb real time passed through Update event, just base off of that 2020-01-28 09:39:44 -08:00
Dustin Carlino
8d3f58f214 whoa, time_limited_step always jumped too much 2020-01-28 09:07:09 -08:00
Dustin Carlino
6c0d42ffe7 open bus analytics from an individual bus. open up bus analytic actions
in tutorial mode.
2020-01-27 15:57:34 -08:00
Dustin Carlino
bef513ec8b inactive buttons in tutorial mode 2020-01-27 15:22:53 -08:00
Dustin Carlino
07995fb060 starting a tutorial for bus lanes too 2020-01-27 12:38:51 -08:00
Dustin Carlino
426ebdc606 let vehicles spawn on all lanes from a border. lets the bike tutorial have a better solution 2020-01-27 11:54:36 -08:00
Dustin Carlino
2747ca5181 bike trips were counting as driving trips 2020-01-27 11:01:02 -08:00
Dustin Carlino
0d3cfb90ec wire up edit mode in tutorial properly. add end condition to bike lane
tutorial [rebuild]
2020-01-26 09:31:03 -08:00
Dustin Carlino
1c7764843a reorder and tune some info panel contents 2020-01-25 14:56:30 -08:00
Dustin Carlino
5f82c855ed slidey windows for thruput plots 2020-01-25 14:19:03 -08:00
Dustin Carlino
91cd0e9852 working more on the bike lane tutorial 2020-01-25 10:28:34 -08:00
Dustin Carlino
a45405055a start a tutorial stage to justify bike lanes 2020-01-24 16:04:58 -08:00
Dustin Carlino
4f60d6cb77 make the all-walk conversion idempotent, and some other bugfixes to the
editor
2020-01-24 15:30:32 -08:00
Dustin Carlino
09b0c47f3c show better names for maps and scenarios 2020-01-24 14:13:27 -08:00
Dustin Carlino
041b28ad2a remove the last traces of override_colors! 2020-01-24 13:38:15 -08:00
Dustin Carlino
0b528c1eff and buildings with (parked) car. remove the old ShowAssociated debug
thing -- if I ever need to see agents doing turns or extra shapes
matched to roads again, I'll impl it differently
2020-01-24 13:17:54 -08:00
Dustin Carlino
89e27b5e3d associate cars with owner buildings 2020-01-24 13:10:24 -08:00
Dustin Carlino
6452953370 when an info panel is open, keep an outline on the object. dont quite
handle peds <-> crowds
2020-01-24 12:59:34 -08:00
Dustin Carlino
ffdde86fc6 reduce use of override_colors. make ColorerBuilder slightly easier to
use
2020-01-24 12:02:40 -08:00
Dustin Carlino
971e8ae3a5 rainy night fixes:
- skip out-of-bounds turn restrictions during map creation
- don't enter sandbox mode with a tutorial map loaded
- fix intersection demand overlay getting clobbered
- keep updating info panel even when we hover over something else
- tweak bad order in trip details info
2020-01-23 23:03:07 -08:00
Dustin Carlino
6d016cd01b stop blindly plumbing through no-op events after any input is used. do
it more explicitly in just a few places.

fixes crash when cycling through turns while sim is running.

this makes modal menus appear laggy, but that's fine; phasing those out
anyway.
2020-01-23 17:11:29 -08:00
Dustin Carlino
89a269a59e consolidating other button styles, and adjusting signal editor colors 2020-01-23 16:05:35 -08:00
Dustin Carlino
76f5cde433 nicer text button style for the top bar 2020-01-23 15:35:08 -08:00
Dustin Carlino
ee38657a31 change the escort mission to focus on the parked car, since it's so easy to miss the ped getting out 2020-01-23 15:02:58 -08:00
Dustin Carlino
13e139bd84 encode edits as an overlay, let it be shown in sandbox mode too. some
shuffling around to update the overlay in edit mode
2020-01-23 14:31:41 -08:00
Dustin Carlino
622072721b make download links and build from source instructions easier to see,
for #41
2020-01-22 17:27:24 -08:00
Dustin Carlino
1043008ba8 and bus lanes [rebuild] 2020-01-22 15:55:04 -08:00
Dustin Carlino
1b9d5d7c07 bike lane markings! \o/ 2020-01-22 15:51:42 -08:00
Dustin Carlino
bdd05ee1a7 point out the car to follow 2020-01-22 15:36:17 -08:00
Dustin Carlino
f8501ace6a button in info panels to follow an agent, aka, unpause sim 2020-01-22 15:17:33 -08:00
Dustin Carlino
06b83a5f73 less colors: use sidewalk/road color for building connections 2020-01-22 14:12:12 -08:00
Dustin Carlino
1ff48e728e woops, little crash [rebuild] 2020-01-22 13:02:16 -08:00
Dustin Carlino
c2b4d39efb applying easy tutorial feedback [rebuild] 2020-01-22 12:56:46 -08:00
Dustin Carlino
2bc48d0568 found a fun case entering tutorial. get rid of scary hack a few commits ago by properly recursing when waking up new states [rebuild] 2020-01-22 12:03:40 -08:00
Dustin Carlino
2a194a9bea actually, with the previous fix, now we can get rid of all the transitions that ask for Animation when entering a new state! 2020-01-22 11:57:37 -08:00
Dustin Carlino
75281ed354 when we change states, immediately run through a round of no-op event(). this lets us immediately draw a WizardState without having to flail the mouse a bit to trigger a first event.
(also, fix release script again)
2020-01-22 11:47:06 -08:00
Dustin Carlino
9a10c52d92 rename the wrapped managed things, for great sanity 2020-01-22 10:41:58 -08:00
Dustin Carlino
54d7f31097 generalize overlays, stick it in UI. only sandbox and tutorial mode can modify it for now though. 2020-01-22 10:24:52 -08:00
Dustin Carlino
09e87687db more of the minimap tut 2020-01-21 15:45:43 -08:00
Dustin Carlino
95a84fd26a tweaking rustfmt options; the long literal string vecs in tutorial look awful 2020-01-21 15:20:02 -08:00
Dustin Carlino
dfd8d43b83 tutorial stage introducing the minimap. point to widgets more precisely. 2020-01-21 15:01:10 -08:00
Dustin Carlino
42e5597539 warp to certain positions in some tutorial phases, and other polishing
to the tutorial so far [rebuild]
2020-01-21 12:17:46 -08:00
Dustin Carlino
f198a6c35f dont insist on prebaked data existing in some places. also go update
scenarios with the new name, oops.
2020-01-21 11:50:56 -08:00
Dustin Carlino
6303cf52a4 next tutorial stage, following an agent 2020-01-21 11:23:39 -08:00