Dustin Carlino
8944438164
fix end time for all intervals
2019-02-17 17:04:00 -08:00
Dustin Carlino
46a8414f21
make quadratic dist work for DES. seems to work! but need to adjust ALL
...
intervals...
2019-02-17 16:48:37 -08:00
Dustin Carlino
e1259587cb
updating OSM source. some tweaks to make things work.
2019-02-17 15:58:04 -08:00
Dustin Carlino
5830908604
version control checksums of screencaps for all maps... well,
...
still not small_seattle. :P
2019-02-17 14:27:48 -08:00
Dustin Carlino
ad16247695
active agents per road in unzoomed mode
2019-02-16 17:55:02 -08:00
Dustin Carlino
c388d1f772
disabled DES quadratic distance... but some other improvements
2019-02-15 14:57:50 -08:00
Dustin Carlino
cee4c8750e
spawn a few more cars when there's room
2019-02-15 13:15:17 -08:00
Dustin Carlino
8aee575056
make follower proceed to end of lane after following. and classify
...
intervals for easier reading.
2019-02-15 13:05:53 -08:00
Dustin Carlino
6b0a70268c
clean up some interval epsilon stuff a bit
2019-02-15 12:55:36 -08:00
Dustin Carlino
cb6595574d
make basic car following work on short lane. has epsilon hacks kind of
...
spread around, but seems solid.
2019-02-15 12:24:27 -08:00
Dustin Carlino
5a350f5ec2
DES cars cross short roads correctly!
2019-02-15 11:26:31 -08:00
Dustin Carlino
ab5fa6025e
slight optimization to DrawBuilding
2019-02-15 09:06:48 -08:00
Dustin Carlino
a52bea9835
some steps to closing off incomplete areas better... mostly stuff to
...
quickly iterate on this problem later
2019-02-15 09:03:02 -08:00
Dustin Carlino
b366a2dccd
mouseover areas by flag
2019-02-14 18:42:24 -08:00
Dustin Carlino
134756fb22
simplify DrawLane a bit
2019-02-14 18:29:36 -08:00
Dustin Carlino
1fb3739c71
remove unnecessary flags; buildings and areas are always fast to draw now
2019-02-14 17:57:15 -08:00
Dustin Carlino
7fb9f721e1
store Area as a Polygon natively in Map
2019-02-14 17:35:34 -08:00
Dustin Carlino
cfe9a8d662
dont redraw stuff that gets drawn anyway in the big batch
2019-02-14 17:27:41 -08:00
Dustin Carlino
f37415bfaa
fundamentally different behavior when zoomed in vs not
2019-02-14 17:14:01 -08:00
Dustin Carlino
65307e66f5
batch all parcels too
2019-02-14 16:56:33 -08:00
Dustin Carlino
e445f972dd
move ToggleableLayers out of ezgui, stop associating a zoom with them
2019-02-14 16:51:27 -08:00
Dustin Carlino
c3cbd47645
organize DES model code a bit
2019-02-14 14:00:44 -08:00
Dustin Carlino
06c8ed72a9
flag-based profiling of GUI
2019-02-14 13:16:43 -08:00
Dustin Carlino
ee16c864c5
batch layers of stuff together to reduce draw calls. helps performance
...
MASSIVELY when zoomed out.
2019-02-14 12:37:33 -08:00
Dustin Carlino
a2e2c3311e
drawing border arrows way better
2019-02-12 14:42:03 -08:00
Dustin Carlino
adcf5ca2a8
tune min zoom levels a bit
2019-02-12 13:09:36 -08:00
Dustin Carlino
f91fbb67d6
remove duplicated polygon from DrawBuilding by passing in map
2019-02-12 12:37:29 -08:00
Dustin Carlino
b8eec25116
store Polygon in Building natively
2019-02-12 12:28:12 -08:00
Dustin Carlino
21ddbc2ecc
very primitive breakdown of where memory is going
2019-02-12 12:11:10 -08:00
Dustin Carlino
e8b80526ae
making a separate DrawRoad. thick bands at low zoom, yellow center line at high zoom.
2019-02-12 09:16:33 -08:00
Dustin Carlino
9ea7493483
handle border nodes being bidirectional. also only assign borders during
...
convert_osm. still disabled... am confused. some hacks to make things
work in the meantime.
2019-02-11 23:25:39 -08:00
Dustin Carlino
4dd7dabde5
display boundary polygon, actually
2019-02-11 22:24:19 -08:00
Dustin Carlino
e68d6225c8
clipping roads based on original boundary polygons. buggy, so disabled.
2019-02-11 22:13:49 -08:00
Dustin Carlino
5d30a90810
draw border nodes with nice big arrows
2019-02-11 17:45:50 -08:00
Dustin Carlino
e2de3e208c
use FindClosest quadtree helper for residential bldg permit matching
2019-02-11 15:35:06 -08:00
Dustin Carlino
1d3e4284a7
do some tracking of video memory used by RenderMap
2019-02-11 12:02:29 -08:00
Dustin Carlino
195d077c98
flags to disable drawing some expensive stuff, to make debugging small_seattle a bit easier
2019-02-11 11:31:25 -08:00
Dustin Carlino
8693bbc1e3
import residential building dataset
2019-02-10 19:24:34 -08:00
Dustin Carlino
e186b24dac
very primitive building type classification, with coloring
2019-02-10 17:38:46 -08:00
Dustin Carlino
ec01207369
try upgrading rand and serde again
2019-02-10 15:57:28 -08:00
Dustin Carlino
51399e19ed
organize convert_osm lib better. also make clippy build everything
...
again.
2019-02-10 15:52:21 -08:00
Dustin Carlino
8139cf2113
disable mouseover for areas, now that they work pretty well
2019-02-10 14:46:13 -08:00
Dustin Carlino
1fc0efb639
woops, forgot to make bus stop prerender. also make it use nicer
...
polyline slice()
2019-02-10 12:49:36 -08:00
Dustin Carlino
f693316290
parse OSM multipolygons, like bodies of water, correctly, when they're
...
completely present in the .osm
2019-02-09 21:03:44 -08:00
Dustin Carlino
0f1d0d24ca
prerender areas and be able to debug their geometry
2019-02-09 19:25:27 -08:00
Dustin Carlino
9d450363ea
be able to launch DES model on any lane
2019-02-09 18:38:44 -08:00
Dustin Carlino
f7d3db302d
make simple model an exclusive blocking plugin, since it otherwise eats keys :)
2019-02-09 13:40:47 -08:00
Dustin Carlino
e00d85e1c0
split out Plugin trait into a few types...
2019-02-09 12:59:15 -08:00
Dustin Carlino
21e869cb0e
rename Ctx to DrawCtx
2019-02-09 11:52:43 -08:00
Dustin Carlino
72b044c64f
plugin to show roads connected to intersection. surprisingly useful for debugging merged intersections sometimes
2019-02-09 11:46:31 -08:00
Dustin Carlino
e95baab153
adjust dedupe threshold so there arent tiny little gaps in intersections
2019-02-08 23:22:09 -08:00
Dustin Carlino
18391811e4
use better symbols for stable roads/intersections
2019-02-08 12:45:12 -08:00
Dustin Carlino
bb6f5e0af0
plugin to show original road centers at the end
2019-02-08 12:06:17 -08:00
Dustin Carlino
5bf4a711b1
quick tooltips for simple model
2019-02-07 19:23:20 -08:00
Dustin Carlino
0eed17f81c
toggle playing forwards or backwards
2019-02-07 18:27:12 -08:00
Dustin Carlino
b547db43b6
basic impl of crossing entire long lane and waiting at the end
2019-02-07 18:11:53 -08:00
Dustin Carlino
409de8ea83
smooth out the interval where the collision happens to avoid it. not
...
sure it looks better.
2019-02-07 13:17:19 -08:00
Dustin Carlino
f73978caf1
shift back to follow behind the lead car
2019-02-07 13:13:37 -08:00
Dustin Carlino
c9c72666fb
the car following magic... with some significant hacks.
2019-02-07 12:56:08 -08:00
Dustin Carlino
6387853fa0
stop recalculating everything constantly
2019-02-07 11:09:30 -08:00
Dustin Carlino
6354a09293
using interval intersection to correctly find the time and position of a
...
hit!
2019-02-07 10:18:20 -08:00
Dustin Carlino
f6a53797f0
manually glueing together some fixed intervals
2019-02-06 22:53:43 -08:00
Dustin Carlino
3bf4807364
thoughts on a different simulation model and a plugin skeleton to play
...
with it
2019-02-06 19:14:19 -08:00
Dustin Carlino
d56f04167b
tools to debug individual sidewalk corners. fixed some bugs where
...
sidewalk corners were incorrectly placed in the first place, causing bad
drawing. bug due to the same naive adjacent road approach
2019-02-06 13:58:44 -08:00
Dustin Carlino
b68b3117bc
woops, somehow regressed and dropped second_half when finding original hits for adjacent roads
2019-02-06 13:21:14 -08:00
Dustin Carlino
579097dbb1
fiddling with the event loop. simplified code, but didn't fix issues.
2019-02-06 12:58:26 -08:00
Dustin Carlino
904991e8e0
sorting roads per intersection by adjacency more carefully for merged
...
intersections. no real noticeable effect yet.
2019-02-06 10:53:30 -08:00
Dustin Carlino
40d3c6b0ca
count all Prerender uploads, not just the ones that happen in draw()
2019-02-05 15:02:10 -08:00
Dustin Carlino
17a0b57644
squeeze in vehicle type to CarID, for debugging convenience
2019-02-04 20:26:22 -08:00
Dustin Carlino
be1735d715
just skip bike trips that are silly loops
2019-02-04 15:32:46 -08:00
Dustin Carlino
09193d5f51
be able to spawn cars from buildings too
2019-02-04 13:58:23 -08:00
Dustin Carlino
13698cdb20
small fixes... debug buildings, spawn from headless, timer for
...
instantiating a scenario
2019-02-04 11:56:54 -08:00
Dustin Carlino
e0fd39bb7c
stop requiring hotkeys for TopMenu folders
2019-02-02 16:09:30 -08:00
Dustin Carlino
461efe4ef8
prerender crosswalks
2019-02-02 15:24:54 -08:00
Dustin Carlino
3f4711b13d
at last, prerender cars
2019-02-02 14:43:24 -08:00
Dustin Carlino
e330061b91
undo rendering hacks for tiny cars at borders, without fixing the spawning problem yet
2019-02-02 14:16:15 -08:00
Dustin Carlino
5a4a6bddf2
prerender bikes
2019-02-02 14:03:00 -08:00
Dustin Carlino
d08751fb64
preupload pedestrian geometry
2019-02-02 13:44:27 -08:00
Dustin Carlino
8a7413ac68
clean up old traits
2019-02-02 12:50:28 -08:00
Dustin Carlino
12540970b3
actually, can refactor further by borrowing the AgentCache in the
...
call-site. doh, that was so simple in hind-sight.
2019-02-02 12:47:55 -08:00
Dustin Carlino
61d1d2fe83
revamp handling of onscreen stuff. no more callback plumbing, and can
...
plumb prerender successfully into dynamic stuff. just can't do as much
work directly in DrawMap.
2019-02-02 12:32:07 -08:00
Dustin Carlino
bc4ba647bc
caching Renderables for agents
2019-02-01 15:10:35 -08:00
Dustin Carlino
ff80d0d445
disable time travel recording by default
2019-02-01 14:38:55 -08:00
Dustin Carlino
3451b65823
lazily compute SimStats
2019-02-01 14:31:35 -08:00
Dustin Carlino
58c4cb5e1b
dont look up full SimStats unless needed
2019-02-01 13:45:37 -08:00
Dustin Carlino
92134f9125
get halloween working with small lines. refactor a Line::maybe_new.
2019-02-01 12:12:40 -08:00
Dustin Carlino
097d1591e1
load previous/next initial map. refactor this functionality for sim
...
savestates
2019-02-01 11:03:57 -08:00
Dustin Carlino
c4d09b6e4f
rearrange colorscheme ownership
2019-01-31 23:28:26 -08:00
Dustin Carlino
64573ea0ea
own canvas inside of ezgui, not in applications. lots of refactoring
...
unlocked now...
2019-01-31 22:33:36 -08:00
Dustin Carlino
8d897f2266
speed up mouseover in main UI, and do it any zoom level now
2019-01-31 16:41:11 -08:00
Dustin Carlino
142bd57aa0
refactoring some approx_eq EPSILON_DIST checks
2019-01-31 15:10:33 -08:00
Dustin Carlino
32a308f120
dont crash when warping to a thing twice
2019-01-31 14:57:52 -08:00
Dustin Carlino
b9e96618da
stop abusing max distance for path tracing. disable some newly brokenish stuff
2019-01-31 13:09:15 -08:00
Dustin Carlino
7519fdf584
using strong Distance types in many more places
2019-01-30 15:54:54 -08:00
Dustin Carlino
0c6f7c424d
removing dimensioned from last few crates
2019-01-30 14:29:42 -08:00
Dustin Carlino
ac2b8f5a9a
switch to new units in sim... and editor, darnit, accidentally ammended
...
commit
2019-01-30 14:19:48 -08:00
Dustin Carlino
2a70efde5f
simplify: slice can fail. all the callers dont have to check for EPSILON_DIST
...
(also, disable not-so-useful geom unit tests that use randomness)
2019-01-29 18:53:04 -08:00
Dustin Carlino
a98383db8f
dealt with cases where a pair of intersections has two roads between them
2019-01-29 15:34:53 -08:00
Dustin Carlino
103a4ca053
ensuring no tiny Lines exist in most cases
2019-01-29 13:23:54 -08:00
Dustin Carlino
7495d29288
handle a case when drawing shared sidewalk corners
2019-01-28 23:57:39 -08:00
Dustin Carlino
2e982ec827
making an infinite line type, to be less confusing
2019-01-28 18:28:05 -08:00
Dustin Carlino
f2d8e77759
figured out the source of a weird polyline bug, adding checks to avoid
...
it in the future
2019-01-26 16:27:11 -08:00
Dustin Carlino
c58113d631
port the simpler intersection merging to InitialMap-world. try the
...
geometry restoration... wait, need more stuff first
2019-01-26 14:59:18 -08:00
Dustin Carlino
ab6796d56c
make intersection actually be a polygon now
2019-01-26 13:31:29 -08:00
Dustin Carlino
5ca066a7df
dont even draw parcels by default
2019-01-26 10:58:08 -08:00
Dustin Carlino
476a4346e8
disable slow and unused startup step, and add more timing in DrawMap
2019-01-26 10:39:43 -08:00
Dustin Carlino
2a59f90abb
do basic polygon batching for cars
2019-01-25 14:23:39 -08:00
Dustin Carlino
a999cdd57b
prerender intersection stuff too
2019-01-25 12:10:30 -08:00
Dustin Carlino
9cd2795329
prerender lane polygons for MASSIVE win
2019-01-25 11:24:43 -08:00
Dustin Carlino
8afe83162b
collapsing all lane markings into a single Drawable
2019-01-25 11:21:46 -08:00
Dustin Carlino
f59879011d
prerender buildings and parcels
2019-01-25 10:50:40 -08:00
Dustin Carlino
25bc02fb32
using prerender for lanes... a good start.
2019-01-25 10:38:40 -08:00
Dustin Carlino
623e578665
inverting the ezgui/GUI control to plumb Prerender
2019-01-25 10:19:58 -08:00
Dustin Carlino
6af551bc95
plumbing colorscheme early to support prerendering in DrawMap construction...
2019-01-25 09:46:19 -08:00
Dustin Carlino
b21852875e
batch lots more easy things... down from 760 calls for a scene to 158
2019-01-25 08:39:45 -08:00
Dustin Carlino
a065c63ad7
batching sidewalk lines. fix the very silly batching bug
2019-01-25 08:10:09 -08:00
Dustin Carlino
9ac0674e62
stop rounding yellow center lines. the roundness gets cut off by the intersection anyway.
2019-01-24 18:14:35 -08:00
Dustin Carlino
c7eaa2cf55
exposing some basic drawing performance stats...
2019-01-24 16:21:56 -08:00
Dustin Carlino
237a19b6ec
appease the clippy
2019-01-24 16:17:22 -08:00
Dustin Carlino
559d568acd
make Polygon store points and indices. don't use this fact for rendering
...
just yet.
2019-01-24 15:13:27 -08:00
Dustin Carlino
9182a57af5
enabling draw_arrow again... math is not quite great
2019-01-24 10:01:30 -08:00
Dustin Carlino
8d270574ec
revamping fork math
2019-01-23 17:27:34 -08:00
Dustin Carlino
a25f358295
hacking around top menu issue mostly
2019-01-23 16:19:32 -08:00
Dustin Carlino
f1b81456a6
calculating line height from the font
2019-01-23 14:02:43 -08:00
Dustin Carlino
9c94e2f374
simplify text API and storage to have one bg color per line
2019-01-23 13:38:24 -08:00
Dustin Carlino
9b14206be0
implementing GfxCtx forking... aka, reset uniforms
2019-01-23 12:22:26 -08:00
Dustin Carlino
fb7a809892
tweaked camera based on canvas. workable, not great.
2019-01-22 17:12:48 -08:00
Dustin Carlino
08db3bf27f
rendering traffic signal diagrams with lights per lane... needs work, so
...
disabling it
2019-01-22 11:58:56 -08:00
Dustin Carlino
6dee096a0e
zorder for cars/peds too... had to rework get_objects_onscreen
2019-01-21 14:51:57 -08:00
Dustin Carlino
1e7b8f2dfc
end interactive trips at border nodes
2019-01-21 13:53:24 -08:00
Dustin Carlino
a129adeaa1
refactoring spawning plugin so far
2019-01-21 12:43:35 -08:00
Dustin Carlino
c87c7b32ae
make interactive driving trips still end at a building
2019-01-21 12:21:26 -08:00
Dustin Carlino
4b42f70da4
actually spawning walking trips...
2019-01-21 11:59:59 -08:00
Dustin Carlino
0d297b9dac
let mouseover happen at low zoom for the agent spawner plugin
2019-01-21 11:47:44 -08:00
Dustin Carlino
f58f8a7ef1
make single spawn work from bldg to bldg or driving lane to driving lane
2019-01-21 11:34:22 -08:00
Dustin Carlino
998c27ddff
starting a plugin to interactively spawn specific agents
2019-01-20 19:31:07 -08:00
Dustin Carlino
11045fd44f
zorder for lanes and intersections
2019-01-20 14:15:50 -08:00
Dustin Carlino
f018158aa3
remove copyright comment from remaining files
2019-01-20 13:57:55 -08:00
Dustin Carlino
ae6438e8b7
show sidewalk corners when zoomed out
2019-01-19 21:19:49 -08:00
Dustin Carlino
4ca6571e2f
warp by stable intersection ID
2019-01-19 21:10:54 -08:00
Dustin Carlino
fad89ddffa
include more pts in the intersection polygon to only cover area from the original road bands. also fix a bug deduping points in the polygon.
2019-01-19 20:56:03 -08:00
Dustin Carlino
e403a6388d
a much simpler, general approach for intersection polygons. needs a
...
little work, but it replaces lots of other code.
disabled, but adding a few more cases to the list of manually merged short roads
2019-01-19 19:07:07 -08:00
Dustin Carlino
0c32faa40c
moving neighborhood to map_model crate, so convert_osm can stop depending on sim
2019-01-17 15:29:00 -08:00
Dustin Carlino
63c24ce5a7
improve robustness of image diffing script, even when intersection IDs change
2019-01-17 14:29:31 -08:00
Dustin Carlino
761008b3ac
make raw roads directly refer to intersections
2019-01-17 11:30:58 -08:00
Dustin Carlino
3422877d3d
adding a stable ID for raw roads and intersections. way easier to refer to things in the midst of deletions.
2019-01-17 11:10:05 -08:00
Dustin Carlino
dfe50dcee4
reasonable support for roundabouts... collapse it to a single
...
intersection, which usually gets treated like a stop sign, and has
reasonable geometry
2019-01-16 15:05:44 -08:00
Dustin Carlino
802cf333b8
list possible easy simplifications in the geom validator plugin
2019-01-16 12:48:40 -08:00
Dustin Carlino
e8e119dbbf
remove all the polyline shifting/polygon variants that might fail
2019-01-15 15:25:00 -08:00
Dustin Carlino
aae021f478
oops, gigantic change trying to handle bad lane geometry
...
- debug points and triangles of lanes
- disabled fixes for polylines with points that change angles by 180 and can be fixed by swapping them
- organize intersection polygon code in different methods for the degenerate cases
- try something new for degenerate-two's... fix road centers, then calculate intersection corners. it fixed a few spots!
2019-01-15 13:48:15 -08:00
Dustin Carlino
3cc1ccfd26
annotate screencaps with an intersection in the shot
2019-01-15 11:00:13 -08:00
Dustin Carlino
66ef25c8aa
tool to compare screencaps
2019-01-15 10:06:54 -08:00
Dustin Carlino
09a3aed407
import raw map to synthetic
2019-01-15 09:37:23 -08:00
Dustin Carlino
bae23f79da
even better progress, and make it easier to deal with failed montage
2019-01-14 12:01:56 -08:00
Dustin Carlino
299f05e0a2
force showing full detail when screencapping at low zoom
2019-01-14 11:24:07 -08:00
Dustin Carlino
dbfc1ec0d2
combine the tiled images
2019-01-14 11:13:48 -08:00
Dustin Carlino
afa159abb4
ezgui-driven magic for screencapping EVERYTHING
2019-01-14 08:46:40 -08:00
Dustin Carlino
e607c6574a
actually, use screengrab
2019-01-13 17:54:58 -08:00
Dustin Carlino
a94fddb209
try screenshot capture again. it's very slow and broken.
2019-01-13 15:40:58 -08:00
Dustin Carlino
66006618df
hold a key to show traffic signal diagram
2019-01-13 14:14:07 -08:00
Dustin Carlino
f1536fa260
make sure sidewalk corner polygons dont explode out of the original intersection polygon
2019-01-12 23:31:35 -08:00
Dustin Carlino
665bf77345
adjust sidewalk corner colors
2019-01-12 23:19:30 -08:00
Dustin Carlino
930107793b
dedupe pts from intersection polygons without making all Pt2Ds have careful resolution yet. sidewalk corners now need work...
2019-01-12 23:17:05 -08:00
Dustin Carlino
d20e433e7d
remove wrappers from Turn -- force callers to think about the geometry
...
more
2019-01-12 20:00:22 -08:00
Dustin Carlino
73714ec173
plugin to debug polygons in depth
2019-01-12 15:26:59 -08:00
Dustin Carlino
daa55026ae
making shift left/right for polyline too
2019-01-12 14:13:15 -08:00
Dustin Carlino
caf4006837
explicitly making shift right/left for Line
2019-01-12 13:48:14 -08:00
Dustin Carlino
bc6a61fc74
WIP: better sidewalk corner geometry. it's a start.
2019-01-12 13:40:06 -08:00
Dustin Carlino
25d38adf27
dont recalculate mouseover when plugins request it if zoom is too low
2019-01-12 10:52:23 -08:00
Dustin Carlino
c50013c583
dont mouseover parcels
2019-01-12 10:47:36 -08:00
Dustin Carlino
47b5d2e4aa
upgrade all other deps, except for piston/winit stuff
2019-01-11 12:36:20 -08:00
Dustin Carlino
b94e0db5ec
fix turn cycler panic... yet again
2019-01-11 12:24:56 -08:00
Dustin Carlino
c09fa98f57
upgrade a few dependencies
2019-01-11 10:55:58 -08:00
Dustin Carlino
2bc97fa609
adjust stuck car color, avoid weird black. and small clippy fixes
2019-01-10 19:58:12 -08:00
Dustin Carlino
eefd9abdc6
render cars using slice
2019-01-10 17:11:34 -08:00
Dustin Carlino
884c47cc6b
just focus on one intersection...
2019-01-10 10:06:37 -08:00
Dustin Carlino
cb47c4b13d
debug intersection polygon
2019-01-10 09:57:47 -08:00
Dustin Carlino
0522829d9a
draw my own arrows, which don't exceed distance too much... except they
...
dont work in all cases, so disable
2019-01-09 14:59:46 -08:00
Dustin Carlino
34aa0c0d74
hide areas by default
2019-01-09 12:53:10 -08:00
Dustin Carlino
f8c7ed5ea8
woops, turn cycler assumed everything's a traffic signal
2019-01-09 12:46:44 -08:00
Dustin Carlino
37c9d01a6f
declare extra space needed by modal menus. dont stretch menus to cover
...
that amount... yet.
2019-01-09 12:26:16 -08:00
Dustin Carlino
5ef73ee8eb
show legend by default in tutorial mode
2019-01-01 14:56:06 -06:00
Dustin Carlino
71cf5116d6
new modal plugin to show a legend for explaining colors of stuff.
...
partially done.
2018-12-26 20:06:51 -06:00
Dustin Carlino
a232d023ff
draw signal diagram exactly below modal menu
2018-12-26 19:11:03 -06:00
Dustin Carlino
1f60a718de
be able to draw signal diagram farther down, as caller demands
2018-12-26 18:48:13 -06:00
Dustin Carlino
a0fefc377f
draw signal diagram on the right side of the screen
2018-12-26 18:39:11 -06:00
Dustin Carlino
ed318f0c9e
compute full width needed for signal diagram, including labels
2018-12-26 15:08:51 -06:00
Dustin Carlino
976f210b9a
stack modal states... also fix the show score plugin drawing a bit
2018-12-25 10:27:38 -08:00
Dustin Carlino
972a0d2fa2
hide debug top menu when appropriate
2018-12-24 19:32:56 -08:00
Dustin Carlino
e91b6c1064
move debug objects plugin to... well, debug control set
2018-12-24 19:24:01 -08:00
Dustin Carlino
92c0af2f41
solved the mystery of the spurious recompiles -- editor_state and color_scheme need to live outside the crate root, so modtimes are nice
2018-12-24 19:16:38 -08:00
Dustin Carlino
0bcda36380
teardown the wretched UIState trait
2018-12-24 19:13:36 -08:00
Dustin Carlino
8708bc750b
now we can make PluginCtx just once
2018-12-24 18:54:46 -08:00
Dustin Carlino
8913ea44e3
brief interruption to plumb primary_plugins to plugins that need it in a different way outside the ctx, to avoid annoying borrow issues
2018-12-24 18:51:51 -08:00
Dustin Carlino
7aed6fa690
disable debug controls in tutorial mode... except for the top menu fixes
2018-12-24 18:26:11 -08:00
Dustin Carlino
7766c80f25
cam_zoom doesnt need to be repeated in RenderOptions.
2018-12-24 18:16:15 -08:00
Dustin Carlino
d56f2fad1c
reorg time travel plugin. at last, teardown the old active_plugin cruft.
2018-12-24 18:08:52 -08:00
Dustin Carlino
c83c4c4899
collapse ViewMode, moving ambient plugins out
2018-12-24 17:57:47 -08:00
Dustin Carlino
fc15b28826
lift the special case search plugin out of simmode.
2018-12-24 17:47:41 -08:00
Dustin Carlino
d06f80e918
lift warp plugin out of simmode. and categorize display logs as view,
...
just to organize the directory more.
2018-12-24 17:31:21 -08:00
Dustin Carlino
597828ce28
revamp toggleable layers plugin, and get rid of debug mode
2018-12-24 17:22:52 -08:00
Dustin Carlino
ad3ef954eb
revamping hider plugin
2018-12-24 16:30:45 -08:00
Dustin Carlino
46b3e85bd3
flatten some DebugMode stuff that actually doesnt need to be permap, since it's exclusive blocking
2018-12-24 12:38:51 -08:00
Dustin Carlino
a626f5c542
remove steepness plugin; it's annoying and useless
2018-12-24 12:32:39 -08:00
Dustin Carlino
3b372dd9ce
move DisplayLogs into exclusive_blocking_plugin
2018-12-24 12:26:02 -08:00
Dustin Carlino
7b8b9fdbe6
flatten SimMode into DefaultUIState
2018-12-24 12:19:16 -08:00
Dustin Carlino
39c3e2917e
flatten EditMode into DefaultUIState
2018-12-24 10:39:24 -08:00
Dustin Carlino
d989e2fb09
convert object hider into a modal menu
2018-12-24 08:17:23 -08:00
Dustin Carlino
567ded85de
stop drawing weird time left box. update the text in the diagram instead.
2018-12-23 21:31:37 -08:00
Dustin Carlino
ae6f8d5e16
show entire signal diagram when hovering
2018-12-23 21:11:30 -08:00
Dustin Carlino
e05d4be34b
draw blinkers in the front and back, increase size, tweak color
2018-12-23 09:20:18 -08:00
Dustin Carlino
551a8ef63a
aw yeah, unicode arrow key descriptions. and tweaking some wording from filip's feedback
2018-12-22 23:20:21 -08:00
Dustin Carlino
5d28acd1af
traffic signal editor left bar should be drawn below top menu
2018-12-22 22:18:03 -08:00
Dustin Carlino
0edded5725
trying out a quick way to mark parts of the screen unavailable for map-space mouseover. oh hey, it works great.
2018-12-22 20:03:12 -08:00
Dustin Carlino
2d7034e9cb
canvas wont serve up map-space cursor when it's out of the window
2018-12-22 17:12:30 -08:00
Dustin Carlino
0aece4944d
prep for disabling mouseover by changing canvas API. fix neighborhood
...
plugin to handle out-of-bounds points while we're there.
2018-12-22 16:49:47 -08:00
Dustin Carlino
099fd288fe
all arrows are rounded
2018-12-22 14:02:42 -08:00
Dustin Carlino
88ef720f16
dont overdraw turns in turn cycler, and fix colors when cycling through individual turns
2018-12-22 13:40:33 -08:00
Dustin Carlino
ce45b5469b
highlight turn icon circle, not arrow, so we can keep seeing the current priority. draw the big turn differently too.
2018-12-22 13:31:08 -08:00
Dustin Carlino
9b6725fc7d
back to adjusting GUI colors
2018-12-22 13:12:10 -08:00
Dustin Carlino
9d32ef8b83
use const functions to construct constant colors in many cases, now that rust 2018 is here
2018-12-22 12:39:17 -08:00
Dustin Carlino
0f62da0f63
centralize and adjust constants for text colors. also clean up places
...
unnecessarilly passing in RGB values for constants
2018-12-22 12:26:34 -08:00
Dustin Carlino
2510625efc
removing piston window size type from canvas, meaning piston deps are now very narrowly isolated to part of ezgui
2018-12-21 10:00:45 -08:00
Dustin Carlino
31ddbd0e61
draw stop sign line closer to the intersection
2018-12-20 12:32:59 -08:00
Dustin Carlino
c27015223c
distinguish intersection types by color, even when zoomed out
2018-12-20 12:03:44 -08:00
Dustin Carlino
0c2a389f96
dont draw complicated stop sign depiction when hovering. simplify lots of the rendering hints, also fixing up traffic signal crosswalk depiction.
2018-12-20 11:28:42 -08:00
Dustin Carlino
f0250b4571
always depict traffic signals, not just when hovering with turn cycler.
...
partly broken right now.
2018-12-20 11:00:50 -08:00
Dustin Carlino
7b9a24f99f
draw traffic signal timer box in the intersection, not the corner of the screen
2018-12-20 10:42:17 -08:00
Dustin Carlino
999c4e6975
follow build.rs output rules better... even though spurious recompiles
...
still happen. :(
2018-12-20 10:21:52 -08:00
Dustin Carlino
b7f31cc8f4
make canvas know initial screen size, so centering on map pt initially does work
2018-12-18 15:37:44 -08:00
Dustin Carlino
887a8a7fcb
dont show intersection stuff when zoomed out
2018-12-18 13:50:31 -08:00
Dustin Carlino
64e5bcc8f8
draw turn blinkers on cars
2018-12-18 12:24:37 -08:00
Dustin Carlino
0a18d2afd2
fix broken top menu hotkeys when a submenu is present
2018-12-18 11:50:23 -08:00
Dustin Carlino
3a3499db39
dont show car lookahead buffers by default
2018-12-18 10:03:22 -08:00
Dustin Carlino
cdc9c58ab4
start tutorial mode centered on the right thing. improve map label API by returning references.
2018-12-18 09:57:51 -08:00
Dustin Carlino
ac961f2016
start tutorial with sim playing
2018-12-18 09:48:22 -08:00
Dustin Carlino
7621f6a999
dont offer an irrelevant ped scramble cycle
2018-12-18 07:54:22 -08:00
Dustin Carlino
7ebc51ee64
use arrow keys to switch cycles, not numbers. remove number_chosen. only allow arrow keys in wizard menus.
2018-12-17 20:40:32 -08:00
Dustin Carlino
fdac85f7fb
use the modal sidebar, not the osd, in a few places
2018-12-17 17:03:46 -08:00
Dustin Carlino
e368919cfd
fixing neighborhood editor
2018-12-17 16:58:24 -08:00
Dustin Carlino
4a98e1d086
convert all plugins to modal calls
2018-12-17 16:40:03 -08:00
Dustin Carlino
787c965985
explicit type for screen-space stuff in ezgui
2018-12-17 14:25:05 -08:00
Dustin Carlino
32db434862
trying out modal flow in UserInput... at least initially displaying the
...
sidebar
2018-12-17 13:58:06 -08:00
Dustin Carlino
acbd08240d
few things that should be in top menu
2018-12-17 13:16:31 -08:00
Dustin Carlino
bbacdfb676
declaring modal menus
2018-12-17 13:08:46 -08:00
Dustin Carlino
875edddc7a
undo the few remaining places that pass in keys to plugins
2018-12-17 11:49:36 -08:00
Dustin Carlino
b3dea902de
handle window close event
2018-12-17 11:33:57 -08:00
Dustin Carlino
21c61e4a60
avoid typos in action_chosen
2018-12-17 10:23:14 -08:00
Dustin Carlino
e64c44da33
change calls in UI
2018-12-17 10:05:19 -08:00
Dustin Carlino
1f1f3b63e2
wiring up submenu events
2018-12-17 09:07:49 -08:00