Commit Graph

38 Commits

Author SHA1 Message Date
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
Dustin Carlino
5450739231 move OSM search into debug mode. most players wont care about OSM metadata. 2019-04-26 10:40:37 -07:00
Dustin Carlino
4d73469ec2 screenshot everything moved into debug mode 2019-04-26 10:15:25 -07:00
Dustin Carlino
cedc7ede10 moving toggleable layers into debug mode 2019-04-25 22:46:34 -07:00
Dustin Carlino
e754bf3a14 hider into debug mode 2019-04-25 22:17:24 -07:00
Dustin Carlino
f8d81a92c6 plumbing a ShowObjects trait to UI stuff, will use for hider and layers 2019-04-25 17:06:35 -07:00
Dustin Carlino
1e267c9d5d object debugger / tooltip thingy 2019-04-25 16:50:05 -07:00
Dustin Carlino
6447657ad8 connected roads plugin 2019-04-25 16:38:46 -07:00
Dustin Carlino
30411b66c3 moving polygon debugger 2019-04-25 16:33:55 -07:00
Dustin Carlino
43628c280e original road plugin to debug mode 2019-04-25 16:22:30 -07:00
Dustin Carlino
4df4a0931e chokepoints finder -> debug mode 2019-04-25 16:15:18 -07:00
Dustin Carlino
a2fb26d5fb starting a debug mode... for me, basically :P 2019-04-25 15:58:55 -07:00