Commit Graph

1353 Commits

Author SHA1 Message Date
Dustin Carlino
2e41b2284e use the turn restriction data to filter more turns 2019-07-04 19:57:07 -05:00
Dustin Carlino
d1fc655aec move some methods from helpers.rs to debug/objects, the one call-site 2019-07-03 17:23:04 -05:00
Dustin Carlino
f6105f3998 include OSM IDs in search results 2019-07-03 16:24:56 -05:00
Dustin Carlino
5fa824f504 preps for interpreting turn:lanes from OSM 2019-07-02 15:03:18 -05:00
Dustin Carlino
f26289e176 woops, we were double-drawing in debug mode. detected by trying to screenshot everything 2019-07-01 14:37:07 -05:00
Dustin Carlino
6bb5ed4407 parking lane overrides in hints. removing parking from much of 23rd.
more involved than I anticipated, because the override changes road
width and forces us to recalc intersection polygons
2019-07-01 14:14:18 -05:00
Dustin Carlino
7349d4aaa5 use separate states for some traffic signal editor code. allow general actions even when an icon is selected 2019-06-30 11:01:01 -05:00
Dustin Carlino
334081b844 very basic tool to explore an agent's full trip 2019-06-27 11:58:55 -07:00
Dustin Carlino
ab088479dd use bincode, not json, for savestates. add loading screens around saving/loading 2019-06-27 09:56:04 -07:00
Dustin Carlino
5e1a7238e8 preserve OSM tags when merging degenerate intersections. this lets 24th and lake washington be fixed without messing up the z-layering 2019-06-26 17:33:31 -07:00
Dustin Carlino
9707dbd9b3 highlight search results even when unzoomed 2019-06-26 14:46:47 -07:00
Dustin Carlino
f7b5cf9a9f organize all modal menus into groups. dont render them yet. 2019-06-24 15:43:22 -07:00
Dustin Carlino
02c50453ad tiny anti-refactor: explicitly copy the 3 CommonState keys into the 4 places they're used 2019-06-24 15:28:37 -07:00
Dustin Carlino
b996b3773e view all routes tool in debug mode 2019-06-24 15:04:16 -07:00
Dustin Carlino
66b21c81ec use a loading screen when exiting a/b test mode, since it's so laggy 2019-06-24 14:46:06 -07:00
Dustin Carlino
36b3558db5 share agent following and route tools also 2019-06-24 14:38:37 -07:00
Dustin Carlino
b9c9a77f40 share time stepping controls btwn sandbox and abtest mode 2019-06-24 14:03:44 -07:00
Dustin Carlino
e137fcf15c refactor mouseover recalculation for the common case 2019-06-24 13:31:04 -07:00
Dustin Carlino
17460b1deb use debug mode's special baselayer drawing 2019-06-24 10:28:32 -07:00
Dustin Carlino
8c67267d28 moving time traveler over to new stackable state model. and with that,
the stackable state model is good enough!
2019-06-23 18:57:45 -07:00
Dustin Carlino
6905595a05 less work for the default InputOnly 2019-06-23 17:25:41 -07:00
Dustin Carlino
fe38f2ff97 move secondary to UI, fixing two things that needed access 2019-06-23 16:54:34 -07:00
Dustin Carlino
eac7be2028 recalculate mouseover when unhiding stuff in debug mode. can do this now
that we're not borrowing the world.
2019-06-23 09:56:02 -07:00
Dustin Carlino
e67305d084 a way to pop states and pass data back 2019-06-22 20:37:01 -07:00
Dustin Carlino
3958ec556e state transitions for nicely handling a few things... in particular,
clearing splash screen wizard state so we dont get stuck on a choice ;)
2019-06-22 20:05:12 -07:00
Dustin Carlino
551866169a make Warp and Navigate use nested states inside CommonState 2019-06-22 18:24:46 -07:00
Dustin Carlino
8250bd5a1e restore jumping to time in sandbox 2019-06-22 18:07:39 -07:00
Dustin Carlino
965a458b15 move state stuff into game.rs too 2019-06-22 17:04:23 -07:00
Dustin Carlino
6c6299c1d0 moving splash screen code to its own file 2019-06-22 13:57:38 -07:00
Dustin Carlino
665ba52d63 convert tutorial mode 2019-06-22 13:51:15 -07:00
Dustin Carlino
281a0ffcb9 converting mission mode 2019-06-22 13:42:11 -07:00
Dustin Carlino
859429a493 converting abtest mode 2019-06-22 12:59:21 -07:00
Dustin Carlino
6f2f6a3a75 converting editmode over 2019-06-22 11:36:17 -07:00
Dustin Carlino
f86e9666d5 convert DebugMode to stackable states 2019-06-22 10:30:40 -07:00
Dustin Carlino
a451c06d46 proof of concept for stackable game states. most things in splash screen
and sandbox mode converted. already feeling MUCH cleaner.
2019-06-21 16:01:07 -07:00
Dustin Carlino
0711056d89 save and restore savestates for entire a/b tests. launching from scratch
takes 33s in debug, this takes 19s
2019-06-21 12:47:00 -07:00
Dustin Carlino
1ce616b0be recenter when loading a different map 2019-06-20 15:19:35 -07:00
Dustin Carlino
6738de2488 draw text beneath Sliders, not in the ModalMenu 2019-06-20 14:48:32 -07:00
Dustin Carlino
220d3d57ab tool to convert to a ped scramble cycle completely 2019-06-20 12:36:26 -07:00
Dustin Carlino
5a3862dda0 expunge the concept of traffic signals being in overtime. not realistic to how people drive, the current rules allow progress without impacting safety. also disable gridlock detection -- noisy results, easier to visually spot, and slow. 2019-06-19 14:51:09 -07:00
Dustin Carlino
c90073c64a start a very primitive scoreboard for a/b tests 2019-06-19 12:42:16 -07:00
Dustin Carlino
177b33795c adjust building color, update screenshot test 2019-06-18 16:34:28 -07:00
Dustin Carlino
7a49c585cf remove building_type and stop reading the residential permit shapefile 2019-06-18 14:58:57 -07:00
Dustin Carlino
04021f9fd1 print more complete and robust building names. adjust intersection and
building colors -- stop coloring buildings based on type (adds visual
noise, data is very bad)
2019-06-18 14:47:24 -07:00
Dustin Carlino
1835155a47 dont recalculate pathfinder after every map edit; just once at the end 2019-06-18 14:28:14 -07:00
Dustin Carlino
a7b10b7ec5 collapsing load/create scenario options directly into mission mode 2019-06-18 06:36:20 -07:00
Dustin Carlino
cdacaef1a6 refactor menu text for all ItemSliders 2019-06-17 17:22:20 -07:00
Dustin Carlino
b4de820f56 make interactively spawned peds use transit if possible, to figure out
why the walking-with-transit graph is not working... argh which is
because map initialization order has so many funky dependencies
2019-06-17 15:32:49 -07:00
Dustin Carlino
efb6954a97 refactor the combination of ItemSlider and Warper 2019-06-14 14:17:08 -07:00
Dustin Carlino
8c055312b4 refactor Warper to an ezgui widget, to use it in fix_map_geom 2019-06-14 12:45:46 -07:00