Dustin Carlino
5c6e781016
Collapse a few more of the Transitions
2020-09-07 10:49:20 -07:00
Dustin Carlino
38ba8d55f3
Produce proper lanes for left-hand driving by intervening at the LaneSpec layer for #311 . Since London looks reasonable, opt it into the screenshot tests
2020-09-04 10:01:06 -07:00
Dustin Carlino
de6a12e472
After much deliberation, rename Composite -> Panel ( #253 )
2020-08-27 12:12:44 -07:00
Dustin Carlino
2935d2379b
Mechanical rename of ezgui -> widgetry, a much better name to enchant the Rust community. #253 [rebuild]
2020-08-27 10:37:04 -07:00
Dustin Carlino
8c1686c25f
Add a tool to screenshot all of the maps currently under diff testing. This tiny bit of automation saves me some manual labor.
2020-08-26 09:41:03 -07:00
Dustin Carlino
aa3bd5073b
Make some new methods on Road to handle child lanes from left-to-right,
...
not split by direction. Update many callers, and lock down the
visibility of the old methods.
Tested a few maps manually to make sure there's no behavioral diff. Only
problem right now is the z-order of adjacent lanes covering up half of
the white stripe sometimes. Have some ideas to fix that later, and not
_super_ important in the meantime.
2020-08-25 12:08:54 -07:00
Dustin Carlino
b41b52d7bd
fix crash in debug mode when opening info panels
2020-08-24 09:01:27 -07:00
Dustin Carlino
66151e8aa4
Dump route goldenfiles during the smoke-test, so that it's run when all
...
data is regenerated. (Ideally screenshots would also be automated, but
that's a little trickier.)
_NOW_ regenerate all data! The only diff anywhere is the binary map
format, so there's confidence the last few commits haven't changed
anything.
2020-08-22 10:53:05 -07:00
Dustin Carlino
0749a2ac7b
start keeping goldenfiles for bus routes, similar to the screenshot diff test. this will make it much easier to finish up bus matching without accidentally regressing somewhere
2020-08-10 16:03:04 -07:00
Dustin Carlino
b881fa605b
convert the last caller away from wizard...
2020-08-07 13:52:27 -07:00
Dustin Carlino
f61881f6fa
move more UIs away from wizards. editing signal offset broke, because
...
the perma format doesn't encode offset yet
2020-08-07 13:33:58 -07:00
Dustin Carlino
480156c7c6
convert more Wizards to ChooseSomethings
2020-08-06 10:21:01 -07:00
Dustin Carlino
e68df0ed1a
and make tool_panel normal, ending the strange reign of WrappedComposite
2020-08-04 12:34:58 -07:00
Dustin Carlino
225abcd112
clean up old UserInput APIs from long, long ago
2020-08-04 12:00:07 -07:00
Dustin Carlino
5fe3cc5f8a
slowly whittle down public surface of ezgui
...
- stop referencing Prerender when easy
- default_font_size hasn't been used since the great typography refactor
some of this harms the usability of map_editor, but that's fine, because
the UX is awful anyway, and nobody should be using this except for me
very occasionally. long-term fate of it is to go away.
2020-08-04 11:36:47 -07:00
Dustin Carlino
a9998a0735
tool to find huge intersections, usually where lane count is way off
2020-08-03 18:12:18 -07:00
Dustin Carlino
f0ecd914b5
emit Outcome::Changed for dropdowns, checkboxes, spinners. simplify client code
2020-08-03 14:27:44 -07:00
Dustin Carlino
41f4cfff6d
tool-assisted refactor of ezgui Outcome
2020-08-03 13:42:59 -07:00
Michael Kirk
3879753cd2
revert some switches back to checkboxes ( #252 )
...
* revert some switches back to checkboxes
partial revert of 90bb4ac0
In many ways switches and checkboxes seem interchangeable, but in certain
contexts one may be more appropriate.
For an overview that I mostly agree with:
https://uxplanet.org/checkbox-vs-toggle-switch-7fc6e83f10b8
2020-07-28 13:58:20 -07:00
Dustin Carlino
328cbcd1f1
stop melting my laptop when generating scenarios
2020-07-23 09:15:25 -07:00
Dustin Carlino
f1ef02b907
store Tags in map_model objects, to reap its benefits anywhere in the codebase. serialization format doesnt change!
2020-07-23 07:43:50 -07:00
Dustin Carlino
4f8f659dfb
widget replacement keeps margins from the old
2020-07-19 11:28:12 -07:00
Dustin Carlino
ccf213ded9
fix pioneer square station snapping. rust-geo's FindClosest has a bug.
...
>_<
2020-07-16 13:22:05 -07:00
Dustin Carlino
98b9115f88
better tool to explore degenerate roads
2020-07-14 21:02:33 -07:00
Dustin Carlino
b68e233125
trying to handle gridlock near tiny roads for #114 . treat the entire
...
sequence as one thing to lock -- don't start it until it's clear, and
prevent new conflicting turns once started. disable block-the-box
protection inside.
I'm not sure this is helping at all yet. maybe it's just more complex.
2020-07-13 12:30:24 -07:00
Dustin Carlino
187c8ad4c5
consider again the possibility of merging some degenerate roads
2020-07-07 21:39:42 -07:00
Dustin Carlino
4aaa41dd13
zip screenshots in dropbox, because managing individual files keeps crashing the daemon
2020-07-07 16:31:52 -07:00
Dustin Carlino
3eb8db3f75
interpret OSM center lines as the physical center of the road (excluding
...
sidewalks), not as the divider between the two directions. this
dramatically changes geometry everywhere for the better.
thanks to
https://wiki.openstreetmap.org/wiki/Proposed_features/placement for
clear explanations. will be looking next at interpreting this tag.
also temporarily removing screenshots, because uploading individual
files and waiting for dropbox to sync isn't sustainable
2020-07-07 15:52:51 -07:00
Dustin Carlino
c3858b9cdd
mark construction lanes appropriately. this broke when adapting to the new tagging on the west seattle bridge, but there are some roads tagged this way in krakow.
...
(not regenerating all the maps yet, expecting to do more work on this
today)
2020-07-06 07:43:42 -07:00
Dustin Carlino
f02fa8bddd
add a tool to export roads to https://github.com/d-wasserman/shared-row
2020-07-04 11:29:45 -07:00
Dustin Carlino
4f507ef96a
refactor Composite style
2020-07-03 13:01:54 -07:00
Dustin Carlino
8b006c037d
slim down sidewalk corners, at the repeated urging of julian
2020-07-02 17:12:08 -07:00
Javed Nissar
1f58cbf16d
Refactor event update loop ( #59 )
...
* Refactor event update loop to enable multiple game update types
* Implement pan event to improve panning with cursor at edge of screen and
fixed formatting
2020-07-01 17:47:30 -07:00
Dustin Carlino
1422643973
finish the ezgui layout refactor. most things are way more consistent now, and with less code
2020-07-01 15:39:04 -07:00
Dustin Carlino
834f060462
yet more layout refactor
2020-07-01 15:31:52 -07:00
Dustin Carlino
2881341b63
make parking lots hideable. dont snap parking and sidewalk hints to
...
light rail. not regenerating all the maps again yet to avoid some churn
2020-06-26 17:02:14 -07:00
Dustin Carlino
b3a480b4c1
clean up old trip positions from Sim. implement the all-route debugger
...
in a more straightforward way
2020-06-25 09:20:54 -07:00
Dustin Carlino
eedf80bfef
tiny tweaks from final testing:
...
- cutscene wording
- elide traffic tab on parking lanes
- dont crash when traffic signal data needs fixing, just warn more
loudly. this lets lanes near some signals actually be modified
2020-06-21 11:38:34 -07:00
Dustin Carlino
c66564dd9d
try out a new style for road labels
2020-06-19 20:12:25 -07:00
Dustin Carlino
5a9fb4ceef
starting work on a brute-force traffic signal heuristic. organizing
...
existing code better.
2020-06-19 13:07:42 -07:00
Dustin Carlino
287d56efd9
generalizing the old gridlock checker. removing unused savestate_every
...
support. reimpl it later using the callbacks if needed.
2020-06-09 14:29:35 -07:00
Dustin Carlino
2445bddeb9
prepping to work on sim step
2020-06-09 12:39:31 -07:00
Dustin Carlino
957ee65fc9
starting to place markers for story map. cleaning up inconsistent order
...
of (app, ctx)
2020-06-04 11:00:19 -07:00
Dustin Carlino
a3724e4b4d
boilerplate for a story map editor. also make close buttons consistent
2020-06-03 21:52:54 -07:00
Dustin Carlino
47e6a6b76a
clean up old design notes
2020-05-24 11:07:29 -07:00
Dustin Carlino
2d69392e9c
move the kml debugging to a separate mode
2020-05-16 11:58:55 -07:00
Dustin Carlino
3145326207
start a tool to understand popular destinations. remove dot map,
...
superceded by live population map
2020-05-12 12:54:35 -07:00
Dustin Carlino
7f867fda70
trim down map file size a bit by not storing building OSM tags, which
...
weren't useful anyway. 873MB for all maps down to 786MB. huge_seattle
343MB to 305MB
2020-05-08 14:46:36 -07:00
Dustin Carlino
c0b5ead639
display the blocked_by graph in debug mode
2020-04-29 12:34:09 -07:00
Dustin Carlino
a104088ccd
pt2: rest of sim layer, which forces the UI changes too
2020-04-15 15:48:16 -07:00
Dustin Carlino
fadae3aa85
improve checkbox API, use it for colored minimap checkboxes
2020-04-06 11:12:23 -07:00
Dustin Carlino
b09c7d2726
moved rest of colors over
2020-04-04 14:15:34 -07:00
Dustin Carlino
4d8ab45750
slowly moving string colors to the struct
2020-04-04 10:59:51 -07:00
Dustin Carlino
fd80a7f2a9
starting the grand colorscheme refactor (there really are lots of grand
...
refactors lately). plumbing and replacing constants / floating methods
2020-04-04 10:16:18 -07:00
Dustin Carlino
ef90c6935c
use the locate header button to follow/unfollow people
2020-04-01 15:50:11 -07:00
Dustin Carlino
3900494b2e
add back some form of the follow/unfollow control
2020-03-30 10:15:53 -07:00
Dustin Carlino
12c0809b23
converting the spawner over, one of the most complex
2020-03-28 17:48:50 -07:00
Dustin Carlino
56544d6b14
working on debug mode
2020-03-28 17:09:36 -07:00
Dustin Carlino
6172fa5215
prototyping a different way of specifying contextual actions
2020-03-28 14:55:54 -07:00
Dustin Carlino
69dab9e27d
typography overhaul... [rebuild]
2020-03-26 15:42:37 -07:00
Dustin Carlino
9d3adfbe40
try the dot map as a debug-only overlay. slow and weird, but getting
...
somewhere.
2020-03-21 13:10:50 -07:00
Dustin Carlino
7edb8a6190
rename Widget -> WidgetImpl, ManagedWidget -> Widget
2020-03-20 23:41:07 -07:00
Dustin Carlino
7592a36fe4
tool-assisted refactor of the last 2 WrappedComposite button helpers
2020-03-20 15:22:45 -07:00
Dustin Carlino
87e605a119
prototype a live dot map in debug mode
2020-03-18 19:17:54 -07:00
Dustin Carlino
eda0237ea7
improve debug mode UI -- menu style, use checkboxes. simplify and speed
...
up all route viz
2020-03-18 14:41:34 -07:00
Dustin Carlino
fedacfe202
reduce verbosity of constructing text widgets [rebuild]
2020-03-13 23:06:52 -07:00
Dustin Carlino
da6abc019b
overhaul one of the oldest things ever, the almighty turn cycler
2020-03-08 11:27:00 -07:00
Dustin Carlino
b3917bf17b
mechanical rename of UI -> App
2020-03-02 09:51:20 -08:00
Dustin Carlino
e5d9d80c14
make sim stepping way more precise, doing minimal amount of time
...
advancement in the innermost layer
tested by making sure prebaked results don't budge
2020-02-28 14:52:41 -08:00
Dustin Carlino
758fb2a1d0
remove more ModalMenus. DebugMode needs UI work, but it did anyway.
2020-02-27 13:22:57 -08:00
Dustin Carlino
d17be067e0
select entire roads/intersections in unzoomed edit mode, click to zoom
...
in
2020-02-24 16:41:43 -08:00
Dustin Carlino
0f0924ac56
restore an old debug tool to spot what agents are blocking an intersection. optional mode to avoid some gridlock... seemingly working for a few cases, but breaking other stuff, so disabled.
2020-02-18 08:40:05 -08:00
Dustin Carlino
3ff56f54cf
prepping for a caching layer by changing render API, plumbing ctx...
...
getting close
2020-02-08 10:36:44 -08:00
Dustin Carlino
95c1f47047
clean up text_dims, then unplumb a BUNCH of stuff
2020-02-08 10:36:44 -08:00
Dustin Carlino
17ebb506b5
draw previous state underneath wizards, so everything doesnt vanish
2020-02-04 12:52:47 -08:00
Dustin Carlino
b2216bb482
not all lanes have to be the same width. make sidewalks a bit thinner.
2020-01-28 17:26:14 -08:00
Dustin Carlino
5048c69750
scrape named amenities from OSM, match to buildings
2020-01-28 15:57:45 -08:00
Dustin Carlino
041b28ad2a
remove the last traces of override_colors!
2020-01-24 13:38:15 -08:00
Dustin Carlino
0b528c1eff
and buildings with (parked) car. remove the old ShowAssociated debug
...
thing -- if I ever need to see agents doing turns or extra shapes
matched to roads again, I'll impl it differently
2020-01-24 13:17:54 -08:00
Dustin Carlino
f8501ace6a
button in info panels to follow an agent, aka, unpause sim
2020-01-22 15:17:33 -08:00
Dustin Carlino
9a10c52d92
rename the wrapped managed things, for great sanity
2020-01-22 10:41:58 -08:00
Dustin Carlino
7ce3d5dd24
adjust agent meters panel (move info button there, display (un)finished
...
trips more succinctly)
2020-01-19 15:20:19 -08:00
Dustin Carlino
0ad371525b
after clicking a button, figure out if we're hovering over any new buttons that're created. kind of an invasive refactor to get to this, but worth it.
2020-01-07 11:43:34 -06:00
Dustin Carlino
3547c2cf1b
move some sandox menu items to tool panel for the moment
2019-12-18 15:14:59 -08:00
Dustin Carlino
959a89e81c
dont serialize paths of yet-to-be-spawned stuff. drastically reduces savestate size.
2019-12-17 18:08:59 -08:00
Dustin Carlino
9aa4fda837
overhaul color scheme. no more dynamic picker or saving. sometimes
...
generate an easily editable JSON file.
2019-12-17 11:05:07 -08:00
Dustin Carlino
ec01267dd0
let some buttons skip having callbacks and let the owner query them instead
2019-12-16 10:10:01 -08:00
Dustin Carlino
2c8f68344c
move tool panel to Composite, the first one with interaction. edit mode
...
exit temporarily broken, need to rearrange things a bit
2019-12-16 09:42:12 -08:00
Dustin Carlino
f51a077ee9
move some more functionality to the tool panel. remove another
...
MenuUnderButton
2019-12-12 15:09:28 -08:00
Dustin Carlino
bd557ef4bb
move savestate tools in debug mode to modal menu, getting rid of another MenuUnderButton
2019-12-12 14:12:14 -08:00
Dustin Carlino
0de212f763
move back and settings to a bottom-left panel, out of the drop-down menus. no more hamburgers!
2019-12-12 14:10:09 -08:00
Dustin Carlino
ec40780ee3
use the action list to populate a menu in InfoPanel. cant choose the actions yet there.
2019-12-11 15:25:43 -08:00
Dustin Carlino
061aed2624
add in a shim to collect contextual actions. just silently pass-through to old behavior for now.
2019-12-11 15:04:32 -08:00
Dustin Carlino
b9fd59c930
remove some debug functions from UI, document them in dev guide
2019-12-11 10:29:08 -08:00
Dustin Carlino
7434ff44e1
hide savestating controls in debug mode. they interact poorly with map edits.
2019-12-07 09:38:06 -08:00
Dustin Carlino
c329ce6522
remove unusd neighborhood summary tool
2019-12-03 15:18:27 -08:00
Dustin Carlino
3fc4684fec
starting an options panel, with a way to toggle traffic signal rendering style
2019-12-03 10:39:16 -08:00
Dustin Carlino
d66daa22f0
adding some hotkeys back to the main menu. not sure how to communicate them yet.
2019-11-25 18:37:59 -08:00
Dustin Carlino
1440a8630b
prototyping a text button, using it for a title screen
2019-11-24 15:23:28 -08:00
Dustin Carlino
9e3f318f48
make floodfiller show reachability based on PathConstraint. start new
...
methods for valid turns based on PathConstraint.
2019-11-14 20:00:52 -08:00