Commit Graph

703 Commits

Author SHA1 Message Date
Dustin Carlino
08cc4124fb adjusting crosswalk geometry, so peds actually walk into the intersection a bit 2018-12-03 10:51:02 -08:00
Dustin Carlino
f36b967dee drawing yield turns better in turn cycler 2018-12-03 10:37:14 -08:00
Dustin Carlino
c198a49ad3 changing real turn geometry to be a polyline 2018-12-03 09:25:47 -08:00
Dustin Carlino
76e02897d0 experimenting with bezier curves for left and right turns. they look
great!
2018-12-02 20:06:29 -08:00
Dustin Carlino
514abb2bf1 tweaking UI for showing current traffic signal 2018-12-01 21:53:12 -08:00
Dustin Carlino
987b2a4884 merge TurnAngle and TurnType 2018-12-01 16:02:11 -08:00
Dustin Carlino
1542e3118e refactoring turn angle stuff 2018-12-01 14:51:10 -08:00
Dustin Carlino
503c3c2ca9 warping to turns, with an easily typeable name 2018-12-01 14:29:20 -08:00
Dustin Carlino
4d7c1203a6 the great control layer merge 2018-11-30 13:52:50 -08:00
Dustin Carlino
609c731fa0 implement yielding in traffic signals. pretty untested. 2018-11-30 12:28:32 -08:00
Dustin Carlino
f6562e97ea moving around code in control layer a bit 2018-11-30 11:13:02 -08:00
Dustin Carlino
3ac39156eb experimenting with different depiction of current traffic signal 2018-11-30 10:58:41 -08:00
Dustin Carlino
ecc5a6efb1 make some percentage of walking trips use transit, if it's reasonable.
haven't observed it working yet.
2018-11-29 14:53:11 -08:00
Dustin Carlino
34f8e93bad dont need pt_and_angle, just pt of Positions 2018-11-28 13:14:49 -08:00
Dustin Carlino
e4e1eb139e automatically merge all short roads 2018-11-28 12:06:09 -08:00
Dustin Carlino
5c3ca41722 associate buses with trips, so some UI plugins can handle them 2018-11-27 14:33:35 -08:00
Dustin Carlino
53330e846c drawing current traffic signal turns as nicer arrows on the lanes 2018-11-27 11:04:26 -08:00
Dustin Carlino
c2783ab56e making a new Position tuple and equiv_dist_along 2018-11-27 09:55:37 -08:00
Dustin Carlino
d0beb7f41e simplify get_draw_blah API by just having one call for traversable. simplify inner walking state 2018-11-26 15:53:04 -08:00
Dustin Carlino
cd8d9adec4 radical speedup and simplification to driving state: only store SimQueues for active lanes/turns 2018-11-26 15:40:22 -08:00
Dustin Carlino
118d87fc66 get a transit test passing again, and make debugging bus stops in the UI a little easier 2018-11-26 13:56:35 -08:00
Dustin Carlino
5fbd5e1546 when editor_state isn't applicable, focus on bldg 0 instead of centering view 2018-11-26 11:43:53 -08:00
Dustin Carlino
c46489ca83 naming synthetic buildings 2018-11-26 09:03:38 -08:00
Dustin Carlino
1ce55ada04 make time travel plugin handle loading savestates 2018-11-23 10:48:29 -08:00
Dustin Carlino
e9ed1b0c86 make time travel plugin handle savestates 2018-11-22 17:44:51 -08:00
Dustin Carlino
1fd6c17ff5 get rid of the output param primary_plugins hack 2018-11-22 15:57:37 -08:00
Dustin Carlino
541a7bc22f make simctrl a normal plugin, finally 2018-11-22 15:48:24 -08:00
Dustin Carlino
c808d60fd5 woops, can't just scrape active agents 2018-11-22 14:57:57 -08:00
Dustin Carlino
b2c976b439 make Sim or TimeTravel be able to serve up Draw agents 2018-11-22 14:46:28 -08:00
Dustin Carlino
ced04798b4 basic controls for time travel, showing state in OSD 2018-11-22 11:53:35 -08:00
Dustin Carlino
29e1f3f6c0 starting a plugin to scrape agents... 2018-11-22 11:38:00 -08:00
Dustin Carlino
9e91332b58 matching extra shapes with a particular side of the road 2018-11-21 16:02:08 -08:00
Dustin Carlino
bd67d88bab adjust the blockface<->road matching 2018-11-21 15:39:49 -08:00
Dustin Carlino
20b79038f4 dont clone bounds by default 2018-11-21 14:55:26 -08:00
Dustin Carlino
2322b1f83e show road matching extra shape 2018-11-21 14:44:26 -08:00
Dustin Carlino
48709b60a0 making a general helper for finding closest stuff... using it to match extra shapes to road center lines 2018-11-21 14:32:15 -08:00
Dustin Carlino
117adb7f1a consolidating all of the kml parsing code 2018-11-21 13:20:41 -08:00
Dustin Carlino
7278719a04 consolidating all of the road query methods 2018-11-20 13:36:10 -08:00
Dustin Carlino
7705289a62 specialize tooltip_lines to one plugin. solves the problem of not being able to look up objects in DrawMap 2018-11-20 11:32:03 -08:00
Dustin Carlino
99d0d27837 adjust debug logs 2018-11-18 15:03:02 -08:00
Dustin Carlino
6dbdfcb18b proper enum for vehicle type 2018-11-17 17:38:10 -08:00
Dustin Carlino
d7efdfc86d rendering bikes differently 2018-11-16 14:51:41 -08:00
Dustin Carlino
1e43f33939 render peds preparing bikes 2018-11-16 14:28:36 -08:00
Dustin Carlino
a2a6b16fdc plumbing biking option from scenario all the way down... incomplete 2018-11-16 11:31:27 -08:00
Dustin Carlino
7937586e52 make it easy to prefill a textbox from wizard 2018-11-14 11:56:45 -08:00
Dustin Carlino
7b6f1c4624 refactoring a proper way to draw/use rectangles 2018-11-14 09:57:58 -08:00
Dustin Carlino
88334d50ca WIP rewriting pathfinding natively in terms of PathSteps 2018-11-13 14:06:52 -08:00
Dustin Carlino
af7785d6a3 always send along CarState in DrawCarInput, removing an annoying query method 2018-11-13 10:57:28 -08:00
Dustin Carlino
b2e3f25393 moving RNG helpers from sim to abstutil 2018-11-13 10:50:54 -08:00
Dustin Carlino
462539b558 spawning cars at a border 2018-11-13 08:50:12 -08:00
Dustin Carlino
257d051585 update walking model to handle ending at a border 2018-11-12 16:45:33 -08:00
Dustin Carlino
70c1fae4f1 encoding ability to go to a border node in scenarios 2018-11-12 16:02:14 -08:00
Dustin Carlino
0c95122576 encoding spawn-peds-at-border in scenario layer 2018-11-12 14:11:50 -08:00
Dustin Carlino
f577cc9948 consolidate the panic/unwind code 2018-11-12 11:20:26 -08:00
Dustin Carlino
f1d82a4c97 make the warp plugin animate the panning 2018-11-12 11:02:51 -08:00
Dustin Carlino
474d92f5db modeling border nodes in map, control, sim, editor layers 2018-11-11 14:49:27 -08:00
Dustin Carlino
f243048c45 drawing border nodes differently 2018-11-10 16:57:01 -08:00
Dustin Carlino
7ddbd753f4 storing neighborhoods as GPS 2018-11-09 14:12:20 -08:00
Dustin Carlino
58dcdb4985 detangle the two tooltip_lines variants; it makes more sense in each renderable 2018-11-07 14:44:15 -08:00
Dustin Carlino
9ba9acb3d2 modeling bus lanes 2018-11-07 13:50:22 -08:00
Dustin Carlino
6e786d5630 refactoring intersection->roads query 2018-11-07 11:55:40 -08:00
Dustin Carlino
0008712c9a revamping driving turns to handle multi-lane cases better. seems to work
well!
2018-11-07 10:53:48 -08:00
Dustin Carlino
9c75514925 draw turn restrictions when relevant. needs tuning later 2018-11-06 14:47:39 -08:00
Dustin Carlino
c6cd36071c make the large maps still work: fixes to bus route verification and
degenerate stop sign handling
2018-11-06 12:39:27 -08:00
Dustin Carlino
f341f67cc5 finally construct the mirror turns for sidewalks, and avoid double-rendering 2018-11-06 09:34:01 -08:00
Dustin Carlino
02f24bfe15 removing annoying duplicated fields in Turn 2018-11-06 09:29:50 -08:00
Dustin Carlino
d66e3e8abc rendering sidewalk corners 2018-11-06 09:14:52 -08:00
Dustin Carlino
dc70d4eb9a was overthinking turn-making... going back to something simple 2018-11-06 08:59:27 -08:00
Dustin Carlino
74b5e2e31e changing drawn crosswalks to be based off of the turns 2018-11-05 21:33:51 -08:00
Dustin Carlino
4a9eb6d224 rewriting sidewalk turn creation based on angles. not correct yet, but
better.
2018-11-05 21:06:28 -08:00
Dustin Carlino
9f0d3b610a introducing TurnType 2018-11-05 18:42:33 -08:00
Dustin Carlino
03909cc04f make turn cycler able to draw all turns from a lane, even when the plugin isnt really 'active' 2018-11-05 17:52:35 -08:00
Dustin Carlino
bd96b4ff5f storing src/dst intersection with Road directly 2018-11-05 17:39:23 -08:00
Dustin Carlino
d69804e485 fixing chokepoints plugin by looking at paths 2018-11-04 15:25:48 -08:00
Dustin Carlino
688a94aca9 get things to compile, try them out... 2018-11-04 08:29:31 -08:00
Dustin Carlino
d4dc5fc658 percolating changes to sim layer slowly... 2018-11-03 20:46:41 -07:00
Dustin Carlino
fee90c37bf show all routes at once, to stress-test the pedestrian edge cases that crash 2018-11-03 11:32:09 -07:00
Dustin Carlino
82beccf86c making all plugins that compute stuff for Sim cache per time 2018-11-02 13:31:04 -07:00
Dustin Carlino
af25404777 fix silly problems with heatmap, now it works well enough 2018-11-02 12:32:12 -07:00
Dustin Carlino
2dd95723e6 cleanup: all plugins constructed with new() 2018-11-01 17:10:13 -07:00
Dustin Carlino
6ecfac0bd3 precomputing canonical pt per trip, since so much stuff kinda cares about it 2018-11-01 17:05:15 -07:00
Dustin Carlino
db34ddb2b7 changing the activity plugin to show a heatmap of what's currently in view 2018-11-01 16:07:48 -07:00
Dustin Carlino
a610575701 changing ezgui API to return Bounds, not Rect 2018-11-01 15:31:06 -07:00
Dustin Carlino
b593d3f5cf WIP plugin to highlight lanes with movement 2018-11-01 14:42:43 -07:00
Dustin Carlino
294e6683d9 dealing with panics from anywhere in the UI event handling 2018-11-01 14:10:08 -07:00
Dustin Carlino
c255f3aa28 fix crosswalk markings, which drifted out of the intersection polygon 2018-10-31 15:23:07 -07:00
Dustin Carlino
01b230b47f fix location of stop signs / signals, based on bad center 2018-10-31 12:29:31 -07:00
Dustin Carlino
dc12555b03 simplified the intersection polygon algorithm to just look at angle-adjacent pairs of lines. same results, simpler code. almost ready to fix the triangle intersections. 2018-10-31 10:55:59 -07:00
Dustin Carlino
be7bd2ede5 calculating a much simpler, more robust intersection polygon!!! \o/ 2018-10-31 09:38:34 -07:00
Dustin Carlino
27406a5a5c rotating stop signs (really an excuse to start using the geo crate in geom...) 2018-10-30 16:04:46 -07:00
Dustin Carlino
8a1ee5c32b slight improvements to Timer API and output 2018-10-30 15:17:04 -07:00
Dustin Carlino
7bb1bab755 pulling sidewalk width from KML 2018-10-30 14:15:57 -07:00
Dustin Carlino
de8f6760b6 improving debugging of extra shapes 2018-10-30 13:24:00 -07:00
Dustin Carlino
a6bc3ed2a0 progress for KML parsing 2018-10-30 13:18:24 -07:00
Dustin Carlino
bb9c98b54e splitting into two Bounds types 2018-10-29 14:16:30 -07:00
Dustin Carlino
cc9f0289ab exporting polygons in the osmosis format... wait, may need to change the
coordinate system first. let's first refactor bounds to be more careful
about existing code.
2018-10-29 12:29:11 -07:00
Dustin Carlino
949529b780 adding some initial neighborhood summary for an a/b test 2018-10-29 11:24:01 -07:00
Dustin Carlino
0eacc4c040 track un-labeled time per span 2018-10-28 19:37:27 -07:00
Dustin Carlino
3a62ed8695 refactor get_bbox 2018-10-28 18:43:36 -07:00
Dustin Carlino
a074ab1890 speeding up neighborhood summary with quadtree 2018-10-28 18:34:29 -07:00
Dustin Carlino
f011f8f56d making hierarchial progress timer to replace flamegraphs. using in many,
but not all, places
2018-10-28 16:40:37 -07:00
Dustin Carlino
51fa5a0aba adding progress to UI stuff and speeding up steepness viz initialization
very slightly
2018-10-28 15:18:08 -07:00
Dustin Carlino
15da2fe9cd using quadtrees to MASSIVELY speed up sidewalk matching 2018-10-28 13:59:54 -07:00
Dustin Carlino
8c5716d7c4 trim back bldg front path lines to not overlap sidewalk 2018-10-26 15:36:20 -07:00
Dustin Carlino
37006369af fix other crates that have Color constants 2018-10-26 15:00:04 -07:00
Dustin Carlino
19ba0b02c0 use OSM road type colors 2018-10-26 13:13:48 -07:00
Dustin Carlino
e7e3ceddb2 not caching Colors in renderables, which cleans up DrawMap construction 2018-10-26 10:39:23 -07:00
Dustin Carlino
898e036c7e the great color scheme refactor! 2018-10-24 19:18:37 -07:00
Dustin Carlino
86d578f4f8 oops, nondeterminism in map model routes 2018-10-24 14:28:56 -07:00
Dustin Carlino
740597b64f even more convenient debugging, by marking what agent is being processed everywhere 2018-10-24 13:33:07 -07:00
Dustin Carlino
580ab797de catching simulation panics in the UI, to print some debug info before dying 2018-10-24 13:19:13 -07:00
Dustin Carlino
da786f9348 gather initial summary text for neighborhoods 2018-10-23 16:18:33 -07:00
Dustin Carlino
3d40f7c91b starting a plugin to show all neighborhoods with a very basic text summary 2018-10-23 13:54:17 -07:00
Dustin Carlino
d4a2ecb693 show both future routes for diffing single agent 2018-10-23 10:17:43 -07:00
Dustin Carlino
dd0578d504 dont cancel diff worlds when an agent is mode-switching 2018-10-23 10:04:11 -07:00
Dustin Carlino
9883da6fa8 fix bugs with follow plugin at the end of the trip 2018-10-22 16:32:58 -07:00
Dustin Carlino
9660794467 show route by trip, not agent 2018-10-22 14:39:25 -07:00
Dustin Carlino
afa52e4bad follow a trip, not a ped/car, so mode changes matter less 2018-10-22 14:30:51 -07:00
Dustin Carlino
9c1ae28bf8 ped trace_routes were wrong for contraflow steps 2018-10-22 13:16:30 -07:00
Dustin Carlino
a1ac8cf7dd plugin to show diff for all agents 2018-10-22 11:22:16 -07:00
Dustin Carlino
144fa638d0 reduce import list in ui 2018-10-22 10:57:37 -07:00
Dustin Carlino
02477d6717 moving plugins to a generic list 2018-10-22 10:45:14 -07:00
Dustin Carlino
feefa8dc34 move draw to the Plugin trait 2018-10-22 09:56:17 -07:00
Dustin Carlino
ce293cdd38 reorder the plugins to be grouped simply 2018-10-22 09:41:23 -07:00
Dustin Carlino
0b07ef94d9 use vectors instead of match, and have a constant for number of plugins.
still kind of repetitive, but better.
2018-10-22 09:19:42 -07:00
Dustin Carlino
f278019560 cleanup: rename the trait 2018-10-22 09:06:02 -07:00
Dustin Carlino
b57a4335e0 porting the last two plugins to generic event() 2018-10-22 09:04:08 -07:00
Dustin Carlino
52535771e3 making road editor stateless; map should hold the changed edits 2018-10-22 08:39:32 -07:00
Dustin Carlino
2a00c9b25a converting all the rest to generic event()... 2018-10-21 21:40:08 -07:00
Dustin Carlino
21e2f1ce66 proof-of-concept make event() generic for two plugins 2018-10-21 20:25:24 -07:00
Dustin Carlino
47d385e40c splitting per-map plugins out too! 2018-10-21 20:15:38 -07:00
Dustin Carlino
e987282e3c removing UIWrapper 2018-10-21 19:28:17 -07:00
Dustin Carlino
523a6358fa moving list of plugin callbacks to UI directly 2018-10-21 19:23:27 -07:00
Dustin Carlino
1151ef81f1 making a more specific PluginCtx 2018-10-21 19:19:30 -07:00
Dustin Carlino
fd2b77f958 splitting UI plugins into another struct 2018-10-21 19:09:22 -07:00
Dustin Carlino
def2f60a92 refactor log adaptor stuff 2018-10-21 11:32:17 -07:00
Dustin Carlino
66bbdc0362 script to save all the maps with edits. no loading yet 2018-10-20 09:02:44 -07:00
Dustin Carlino
d6253a1721 dont draw stop sign on degenerate intersections 2018-10-18 15:28:34 -07:00
Dustin Carlino
1509a674b1 WIP some fixes to OSM->lane types
- roundabouts have less stuff
- simplify the code
- motorways and motorway links are just driving
- sidewalks on one-ways
2018-10-18 12:05:11 -07:00
Dustin Carlino
35566543f1 briefly play around with cpuprofiler and gperftools 2018-10-18 10:54:04 -07:00
Dustin Carlino
bb21c45394 weighted choice for how many cars per building 2018-10-17 16:22:33 -07:00
Dustin Carlino
3968a78166 only allow interactive spawning at the beginning 2018-10-17 15:01:36 -07:00
Dustin Carlino
d02c5004f9 clean up Pt2D::from_gps API 2018-10-17 13:14:10 -07:00
Dustin Carlino
b25046bd67 removing old, weird controls for interactively spawning stuff in the UI 2018-10-17 13:06:40 -07:00
Dustin Carlino
fade0f8883 UI plugin to show parked car / building associations 2018-10-17 12:29:46 -07:00
Dustin Carlino
98914ce208 peds only use the car associated with their building 2018-10-17 10:34:02 -07:00
Dustin Carlino
0d33a25d44 calm down DiffWorlds, not every agent has a trip -- buses and parked cars, namely 2018-10-17 10:10:22 -07:00
Dustin Carlino
299c7bdb2f seed parked cars per building, not per spot 2018-10-17 10:01:33 -07:00
Dustin Carlino
7919b0bd8d associating cars with an owner 2018-10-16 17:28:03 -07:00
Dustin Carlino
2c110a58f9 starting a very basic plugin to show differences between trips in parallel worlds 2018-10-16 14:48:41 -07:00
Dustin Carlino
41817d3e91 oops, nonsense option to start moving cars 2018-10-16 12:15:02 -07:00
Dustin Carlino
ebebce179a redo mouseover when plugins suddenly change the screen 2018-10-16 12:11:05 -07:00
Dustin Carlino
77786c9483 forking RNGs to keep SeedParking consistent 2018-10-16 11:39:16 -07:00
Dustin Carlino
80f6eb95b4 brainstorming edit-invariant trips. initial work to reference TripIDs,
which are independent of mode.
2018-10-14 14:01:03 -07:00
Dustin Carlino
053b426e58 plumb rng seed from CLI to a/b test 2018-10-13 17:31:30 -07:00
Dustin Carlino
90af8a84c6 woops, car pathfinding shouldnt use bike lanes. and A/B test manager
should set json filename
2018-10-13 16:34:02 -07:00
Dustin Carlino
25a1beba4e generalize traces a bit to handle 0-length turns properly 2018-10-13 16:05:52 -07:00
Dustin Carlino
f7f9b5ab70 plugin to find and show chokepoints 2018-10-13 15:24:14 -07:00
Dustin Carlino
99559fa578 also retain the logical pieces of a Trace, so we can next find chokepoints 2018-10-13 11:27:22 -07:00
Dustin Carlino
6dad7155aa swap sims 2018-10-09 21:44:26 -07:00
Dustin Carlino
4672994777 fixed one problem with ped trace_route... walking model is so complicated. >< 2018-10-09 17:43:22 -07:00
Dustin Carlino
dcbf373896 constructing traces way more directly. still broken for peds. :( 2018-10-09 16:14:48 -07:00
Dustin Carlino
d0f88f8d52 use new Trace for show_route plugin. handle 0-length turns 2018-10-09 14:36:53 -07:00
Dustin Carlino
2716a2272b making trace handle lanes and turns 2018-10-09 13:43:59 -07:00
Dustin Carlino
d7a36889b2 some of the pieces to render smart arrows in front of agents 2018-10-09 12:56:58 -07:00
Dustin Carlino
df927c5829 make sim ctrl plugin advance dual sims and print some OSD and side panel
stuff appropriately
2018-10-08 17:03:36 -07:00
Dustin Carlino
b684505ca6 moving toggleable layers into a real plugin 2018-10-08 16:36:25 -07:00
Dustin Carlino
7ca7f08ef7 refactoring focus pt per object 2018-10-08 16:20:45 -07:00
Dustin Carlino
fcf0366e90 er, stripping .json vs not... 2018-10-08 15:14:17 -07:00
Dustin Carlino
307318a62e finally making the ab test manager launch two sims now 2018-10-08 15:08:01 -07:00
Dustin Carlino
95c79f9f7c current sim flags owned in per-map state, not one random plugin 2018-10-08 14:54:36 -07:00
Dustin Carlino
dca91bcf43 making edits manager create the new per-map state itself 2018-10-08 14:50:05 -07:00
Dustin Carlino
e0eece7a55 loading new map edits by the simpler state replacement 2018-10-08 14:14:50 -07:00
Dustin Carlino
2aa47bbd51 grouping UI state that's bound to a certain map+edits 2018-10-08 14:08:20 -07:00
Dustin Carlino
23fc634eb4 refactoring wizards and loading/listing stuff 2018-10-08 12:18:13 -07:00
Dustin Carlino
f1503c2de1 rewriting neighborhood plugin to use wizard 2018-10-08 11:16:18 -07:00
Dustin Carlino
2fffbb53f9 refactoring logic to save stuff 2018-10-08 10:21:13 -07:00
Dustin Carlino
fcfef89760 intermission: handling empty directory listings, menus 2018-10-08 09:45:21 -07:00
Dustin Carlino
7ef462d94d defining a plugin to manage A/B tests 2018-10-08 09:00:55 -07:00
Dustin Carlino
daac00155e start animating the lines 2018-10-06 14:30:57 -07:00
Dustin Carlino
661d784b6e adjusting logging to not include debug by default 2018-10-06 12:21:12 -07:00
Dustin Carlino
7b3069a1a1 clean up ezgui draw() API and hide window size inside ezgui entirely 2018-10-06 11:52:08 -07:00
Dustin Carlino
8c7e89702f fix turn cycler plugin overriding others 2018-10-06 11:30:50 -07:00
Dustin Carlino
0048f90734 removing use_event_directly 2018-10-06 11:15:37 -07:00
Dustin Carlino
94ac54d7e8 stop using Color and Vec2d types from piston, to slowly move away from dependence on piston 2018-10-05 14:58:48 -07:00
Dustin Carlino
30b0ace7bb woops, major performance bug in map edit manager 2018-10-04 11:23:21 -07:00
Dustin Carlino
2c8aa62f97 describe map edits in GUI 2018-10-04 11:16:00 -07:00
Dustin Carlino
bed2c604f3 directly save control intersection policies, dont need this intermedite savestate struct 2018-10-04 11:05:53 -07:00
Dustin Carlino
f8803b9b2b dont reinitialize logs 2018-10-04 10:45:42 -07:00
Dustin Carlino
b1ef405892 filling out edits manager 2018-10-03 17:03:26 -07:00
Dustin Carlino
53993feebb skeleton of plugin that can manage different map edits 2018-10-02 21:29:50 -07:00
Dustin Carlino
190d9be972 sharing flags for specifying sim to load 2018-10-02 16:34:27 -07:00
Dustin Carlino
04acd6723b rename scenario_name, now that we have scenarios 2018-10-02 16:13:20 -07:00
Dustin Carlino
72d0294efb load named map edits, not a single one 2018-10-02 16:07:48 -07:00
Dustin Carlino
7b718b4621 bundling all map edits together 2018-10-02 15:48:10 -07:00
Dustin Carlino
bbfe00ce63 dont even give option to edit sidewalks, since that doesnt work 2018-10-02 14:27:19 -07:00
Dustin Carlino
7ee75ea6be renaming osd -> just text 2018-10-01 13:56:43 -07:00
Dustin Carlino
d9ff599332 refactoring text alignment 2018-09-28 07:59:05 -07:00
Dustin Carlino
8badd7a813 show optional sidepanel in UI with current sim score 2018-09-28 07:43:53 -07:00
Dustin Carlino
c1427a044c dont lose logs in editor 2018-09-27 14:57:01 -07:00
Dustin Carlino
b7a3dc852c spawn walking agents over time 2018-09-27 12:37:03 -07:00
Dustin Carlino
8e12d4d6f0 interlude: make spawn functions directly populate car_properties 2018-09-27 11:53:51 -07:00
Dustin Carlino
fa1d7e8182 WIP instantiating a scenario 2018-09-27 11:47:29 -07:00
Dustin Carlino
3d2255d728 move wizard to ezgui \o/ 2018-09-25 14:43:56 -07:00
Dustin Carlino
7dabbc0323 dont make wizard know about neighborhoods or ticks; move that to the scenario manager plugin 2018-09-25 14:33:43 -07:00
Dustin Carlino
4aea666f56 use generic menus to make choosing a scenario very nice 2018-09-25 11:16:59 -07:00
Dustin Carlino
337d3f1586 generic menus in wizard 2018-09-25 11:10:49 -07:00
Dustin Carlino
d0b4e9cb3a made a generic text entry function, with help from
https://www.reddit.com/r/rust/comments/9ip8cq/trouble_cloning_an_any/
2018-09-25 08:37:08 -07:00
Dustin Carlino
9704675239 making a generic wizard part 1: storing generic state 2018-09-24 18:39:43 -07:00
Dustin Carlino
f49998043d gluing together wizard for editing a scenario 2018-09-24 16:03:09 -07:00
Dustin Carlino
9ec19452af saving scenarios 2018-09-24 15:52:15 -07:00
Dustin Carlino
49ab31c1ca woops, was displaying ansi codes in logscroller 2018-09-24 15:42:10 -07:00
Dustin Carlino
d134706db7 bigger FSM for managing scenarios... it initially seems to work? :P 2018-09-24 15:40:37 -07:00
Dustin Carlino
585bb1bcd3 generic way to load stuff from a dir 2018-09-24 14:54:31 -07:00
Dustin Carlino
19e6aaf244 defining scenarios, renaming polygons -> neighborhoods 2018-09-24 14:30:02 -07:00
Dustin Carlino
64e6f6c9cd define a second unused wizard workflow, and move some mostly generic pieces to ezgui 2018-09-24 14:17:29 -07:00
Dustin Carlino
7836df4580 storing associated data with menu 2018-09-24 08:34:02 -07:00
Dustin Carlino
de1033ac66 color log output on terminal 2018-09-23 14:22:25 -07:00
Dustin Carlino
a53dd51ec4 filling out logging in editor crate 2018-09-23 14:01:03 -07:00
Dustin Carlino
6c7d4185b3 proper logging from the editor layer 2018-09-22 20:12:24 -07:00
Dustin Carlino
f9e0b6facc adding a scrollable log buffer widget 2018-09-21 14:09:20 -07:00
Dustin Carlino
f6ddd8aeaa adding categories to unimportant actions, arranging them in a tree 2018-09-21 13:16:46 -07:00
Dustin Carlino
0a50fbd8bd scroll long menus 2018-09-21 09:55:56 -07:00
Dustin Carlino
f1f0683026 prompts on top of menus, too 2018-09-21 08:08:34 -07:00
Dustin Carlino
b66e6891f6 textbox and menu take UserInput and consume it 2018-09-20 19:19:08 -07:00
Dustin Carlino
4a9306e1e2 use 3-way result for menus and text boxes, letting text boxes be
canceled properly
2018-09-20 19:13:23 -07:00
Dustin Carlino
d32556f470 only take TextOSD in canvas API 2018-09-20 19:00:14 -07:00
Dustin Carlino
1d7417e851 display text entry boxes in the middle of the screen, not as part of the bottom OSD 2018-09-20 18:55:44 -07:00
Dustin Carlino
d9eef240aa easily choose polygons, while drawing previews. very weird way to
implement this, but it works
2018-09-20 18:12:58 -07:00
Dustin Carlino
2c8edd07f8 moving selectable polygons to common place 2018-09-20 17:31:07 -07:00
Dustin Carlino
726adb6249 basic menu support to gui wizard 2018-09-20 17:04:52 -07:00
Dustin Carlino
081f7f2c35 move some logic to wrappedwizard 2018-09-20 15:31:41 -07:00
Dustin Carlino
caa8a97e93 input percentages in wizard 2018-09-20 15:28:34 -07:00
Dustin Carlino
8a91759782 refactoring textbox entry with wizard 2018-09-20 15:24:10 -07:00
Dustin Carlino
86c3a33526 input sim Ticks in gui wizard 2018-09-20 15:15:07 -07:00
Dustin Carlino
b365f595bd populate OSD during event. this lets wizard display prompts easily. 2018-09-20 14:57:42 -07:00
Dustin Carlino
c95f5e7a4d starting a stateful multi-question GUI wizard. just accepts usize's
right now
2018-09-20 14:29:50 -07:00
Dustin Carlino
4b26411794 show current selected polygon as preview 2018-09-19 18:44:17 -07:00
Dustin Carlino
c7f2c50e25 draw menus centered in the screen, with highlighted lines 2018-09-19 17:38:31 -07:00
Dustin Carlino
96994eb9bd load existing polygon with pre-filled name 2018-09-19 14:24:09 -07:00
Dustin Carlino
60d4e0af33 list existing polygons with menu 2018-09-19 12:28:29 -07:00
Dustin Carlino
bcc65941f3 saving polygon areas 2018-09-19 09:30:01 -07:00
Dustin Carlino
ce91b77ad6 highlighting the cursor in text boxes 2018-09-18 18:52:25 -07:00
Dustin Carlino
0cd27d7f50 move existing points in a drawn polygon 2018-09-18 17:58:14 -07:00
Dustin Carlino
8b0fb9248c using Pt2D in ezgui's API when appropriate 2018-09-18 15:09:17 -07:00
Dustin Carlino
20a1bb7923 dispersing the remainders of map_model::geometry 2018-09-18 14:35:10 -07:00
Dustin Carlino
2c7e281a8e make renderables return Bounds, not the aabb type 2018-09-18 14:17:26 -07:00
Dustin Carlino
1050d86e67 making a proper Circle type in geom 2018-09-18 14:00:55 -07:00
Dustin Carlino
49ebe97c21 small refactor in ezgui and polyline 2018-09-18 13:39:55 -07:00
Dustin Carlino
7dc192b0c9 refactoring helpers to draw lines 2018-09-18 13:29:30 -07:00