2019-01-18 08:40:47 +03:00
|
|
|
# TODO - GUI and UX
|
|
|
|
|
2019-03-11 23:21:53 +03:00
|
|
|
## Fix existing stuff
|
2019-01-18 08:40:47 +03:00
|
|
|
|
2019-01-22 21:02:18 +03:00
|
|
|
- if a lane could feasibly have multiple turn options but doesnt, print "ONLY"
|
2019-01-18 08:40:47 +03:00
|
|
|
- audit all panics
|
|
|
|
- tune text color, size, padding
|
|
|
|
|
|
|
|
- click cycle diagram to edit duration
|
|
|
|
|
|
|
|
- toggle rewind mode
|
2019-01-18 10:43:56 +03:00
|
|
|
- yellow or flashing red/yellow for yields
|
|
|
|
- text box entry: highlight char looks like replace mode; draw it btwn chars
|
2019-01-18 08:40:47 +03:00
|
|
|
|
2019-05-01 01:25:32 +03:00
|
|
|
- navigator
|
|
|
|
- show options on map
|
|
|
|
- stop jumping text size
|
2019-03-11 23:21:53 +03:00
|
|
|
|
2019-01-18 08:40:47 +03:00
|
|
|
## General ezgui stuff
|
|
|
|
|
|
|
|
- optionally limit canvas scrolling/zooming to some map bounds
|
2019-03-11 23:21:53 +03:00
|
|
|
- start context menu when left click releases and we're not dragging
|
2019-05-06 04:19:19 +03:00
|
|
|
- move context menus out of ezgui
|
|
|
|
- simplify/remove UserInput.
|
|
|
|
- maybe separate impls for context, wizard, modal menu make sense.
|
2019-10-14 04:44:19 +03:00
|
|
|
- arbitrary viewports?!
|
|
|
|
- tiling wm
|
2019-01-18 08:40:47 +03:00
|
|
|
|
|
|
|
## New features
|
|
|
|
|
2019-03-11 23:21:53 +03:00
|
|
|
- collapse smaller roads/neighborhoods and just show aggregate stats about them (in/out flow, moving/blocked within)
|
2019-01-18 08:40:47 +03:00
|
|
|
- undo support for edits
|
|
|
|
|
|
|
|
## Better rendering
|
|
|
|
|
2019-02-11 04:44:24 +03:00
|
|
|
- depict residential bldg occupany size somehow
|
2019-01-18 08:40:47 +03:00
|
|
|
- render cars with textures?
|
|
|
|
- rooftops
|
|
|
|
- https://thumbs.dreamstime.com/b/top-view-city-street-asphalt-transport-people-walking-down-sidewalk-intersecting-road-pedestrian-81034411.jpg
|
|
|
|
- https://thumbs.dreamstime.com/z/top-view-city-seamless-pattern-streets-roads-houses-cars-68652655.jpg
|
2019-01-22 21:02:18 +03:00
|
|
|
- general inspiration
|
|
|
|
- https://gifer.com/en/2svr
|
|
|
|
- https://www.fhwa.dot.gov/publications/research/safety/05078/images/fig6.gif
|
2019-09-09 19:51:15 +03:00
|
|
|
- http://gamma.cs.unc.edu/HYBRID_TRAFFIC/images/3d-topdown.jpg
|
2019-01-18 08:40:47 +03:00
|
|
|
- color tuning
|
|
|
|
- neutral (white or offwhite) color and make noncritical info close to
|
|
|
|
that. http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker,
|
|
|
|
chroma < 50
|
2019-01-22 23:22:50 +03:00
|
|
|
|
2019-05-01 01:25:32 +03:00
|
|
|
## Performance
|
2019-01-22 23:22:50 +03:00
|
|
|
|
2019-05-01 01:25:32 +03:00
|
|
|
- it's a pity we have to redo DrawCar work for all those parked cars every tick
|
|
|
|
- show FPS or some kind of measure of lag
|
|
|
|
- sleep better in the event loop
|
|
|
|
- first make UserInput borrow state and not need to consume
|
2019-01-26 01:17:43 +03:00
|
|
|
- more speculative performance ideas
|
|
|
|
- specialized shaders for common shapes like circles?
|
|
|
|
- try https://docs.rs/dymod/0.1.0/dymod/ to link in a release-mode ezgui crate?
|
2019-02-03 01:28:00 +03:00
|
|
|
|
2019-05-01 01:25:32 +03:00
|
|
|
## Depicting traffic unzoomed
|
|
|
|
|
|
|
|
- strange things to depict
|
|
|
|
- cars partly straddling roads
|
|
|
|
- some lanes backed up, others moving
|
|
|
|
- peds (lots of them in one position maybe!)
|
|
|
|
- intersections (simultaneous turns, some blocked, others not)
|
|
|
|
- peds waiting for bus
|
|
|
|
- general ideas
|
|
|
|
- darked colors (contrast map bg and road)
|
|
|
|
- show min/max bounds (exact max is hard, but could calculate best-case easily)
|
|
|
|
- percentage of capacity instead of an exact, moving length
|
|
|
|
- criteria
|
|
|
|
- at low zoom, easily pinpoint where things are moving and stuck
|
|
|
|
- include all agents
|
|
|
|
|
|
|
|
## Mission Edit Mode
|
|
|
|
|
|
|
|
- neighborhood
|
|
|
|
- display some instructions in the modal thing ("move a point by grabbing it")
|
|
|
|
- warp to neighborhood center and zoom out when loading one (or even hovering in the menu?)
|
|
|
|
- display all and click to edit
|
|
|
|
- draw text in map-space, or be able to scale it
|
|
|
|
- renaming
|
|
|
|
- scenario
|
|
|
|
- visualize should just be the default thing
|
|
|
|
- summarize in the modal menu, dont display the ugly text
|
|
|
|
- almost feels like a list of 3 'command' types, each of which can be visualized:
|
|
|
|
- seed cars
|
|
|
|
- spawn agents
|
|
|
|
- spawn agents from border
|
|
|
|
- kind of need to CRUD this list
|
|
|
|
- time input is very unclear, put help text in there
|
|
|
|
- combine the spawn and border spawn... choose neighborhood OR border
|
|
|
|
- choose in a menu list, or click on the map
|
|
|
|
- draw the border nodes loudly
|
|
|
|
- visualize better
|
|
|
|
- draw separate arrows src/dst, on each side of text
|
|
|
|
- draw text at a fixed size, not in screenspace, specify the font size.
|
|
|
|
- associate font size with Text, probably
|
|
|
|
- highlight a region, draw counts to/from it in some meaningful way
|
|
|
|
- timer slider (except timeslices arent neatly in hour blocks, though they maybe should be)
|
|
|
|
- a table (with color-coded entries) is actually perfect
|