Commit Graph

61 Commits

Author SHA1 Message Date
Dustin Carlino
38ea097b26 use WizardState for some more things, making proper use of bundling state with closures! 2019-08-08 11:17:53 -07:00
Dustin Carlino
adde2669c1 convert some old-school plugins to Wizard (in fact WizardState), and start to hide some stuff inside ezgui crate a bit more 2019-08-07 13:49:27 -07:00
Dustin Carlino
77c01580f1 refactoring path references... 2019-08-04 17:11:33 -07:00
Dustin Carlino
de929a5fb9 user-defined shortcuts 2019-07-14 11:22:37 +01:00
Dustin Carlino
ff0a6b7240 pick bus route to explore from possible ones at a stop, and without
using a stop at all
2019-07-07 20:30:01 -07:00
Dustin Carlino
f6105f3998 include OSM IDs in search results 2019-07-03 16:24:56 -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
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
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
6905595a05 less work for the default InputOnly 2019-06-23 17:25:41 -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
551866169a make Warp and Navigate use nested states inside CommonState 2019-06-22 18:24:46 -07:00
Dustin Carlino
965a458b15 move state stuff into game.rs too 2019-06-22 17:04:23 -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
0adeac1d53 remove the single point associated with intersections, now that we're
actually going to be mucking with geometry. it wasnt doing anything
useful anyway. also a round of clippy.
2019-06-12 10:10:04 -07:00
Dustin Carlino
b13ed7a0d6 bus route explorer in debug mode 2019-06-06 16:22:32 -07:00
Dustin Carlino
36cddbf5df recalculate current selection in all the places that used to before a big UI refactor. if not, hovering on agent + jumping savestates can crash badly. also refactor how mouseover is detected 2019-06-06 12:51:49 -07:00
Dustin Carlino
53e2c3e905 hack in a way to easily check for ctrl+key. use to jump between
sandbox, debug, and edit modes
2019-05-29 14:08:59 -07:00
Dustin Carlino
35b3e4b7be round of clippy / unbreaking the build 2019-05-29 13:01:33 -07:00
Dustin Carlino
83f62631e9 fix cases where path.trace doubles back on itself a bit due to slightly
weird walking geometry
2019-05-28 10:19:49 -07:00
Dustin Carlino
01a4abb64a work around path traces that're breaking PolyLine 2019-05-25 13:33:41 -07:00
Dustin Carlino
c9f5b92496 much simpler idea for intersection geom -- just extend the last line of all incoming roads 2019-05-18 12:32:25 -07:00
Dustin Carlino
ebc8bafab1 using adjacent roads to glue together polylines 2019-05-17 16:28:05 -07:00
Dustin Carlino
4c1e9b41c1 experimentally try finding intersection polygon by naively intersecting thick road polygons. 2019-05-17 15:48:21 -07:00
Dustin Carlino
3501c0ab4f dont handle turn icons in UI by default; make the two editors explicitly do mouseover and draw them 2019-05-11 11:51:16 -07:00
Dustin Carlino
71be19163d highlight object after warping 2019-05-04 10:16:01 -07:00
Dustin Carlino
625d9890d7 dont allow dupe keys in menus 2019-05-03 14:55:40 -07:00
Dustin Carlino
10240aa478 trigger CommonState actions from a bunch of modal menus 2019-05-03 14:47:31 -07:00
Dustin Carlino
96c3907655 combo calls to update prompt for ModalMenu 2019-05-01 21:45:34 -05:00
Dustin Carlino
bc3b883e2f optional modal menu keys 2019-05-01 16:22:14 -07:00
Dustin Carlino
3b6ecbf4af draw everything from ezgui in screencap mode 2019-05-01 16:14:15 -07:00
Dustin Carlino
e767a704d3 remove old modal menu stuff from ezgui 2019-05-01 16:02:50 -07:00
Dustin Carlino
2915af1b7c converting last things to NewModalMenu 2019-05-01 15:55:38 -07:00
Dustin Carlino
1eb1b0ea40 slightly refactoring Text creation 2019-05-01 11:46:22 -07:00
Dustin Carlino
096dbd99f7 replace RenderOptions with DrawOptions 2019-04-29 14:39:08 -07:00
Dustin Carlino
c59d76d40c organizing input to UI's draw into a struct 2019-04-29 14:05:43 -07:00
Dustin Carlino
6c95bdc0cd merge some stuff into a single helpers module 2019-04-29 10:03:43 -07:00
Dustin Carlino
f29570a28e flatten UIState into UI 2019-04-29 09:52:52 -07:00
Dustin Carlino
db67c734ef moving turn cycler to CommonState 2019-04-28 17:18:54 -07:00
Dustin Carlino
78fc973611 move the show_associated plugin to some CommonState, invoke it from relevant modes 2019-04-28 17:09:31 -07:00
Dustin Carlino
6c88981d48 move neighborhood summary plugin to debug mode; ultimately for SandBoxMode but needs more work 2019-04-27 14:10:17 -07:00
Dustin Carlino
6207540dc0 debug areas in debug mode; flags are silly 2019-04-27 12:05:21 -07:00
Dustin Carlino
4fe09e3040 moving color picker to debug mode 2019-04-26 10:56:49 -07:00