Commit Graph

3818 Commits

Author SHA1 Message Date
Dustin Carlino
e22727ee98 reorganizing info panel code, splitting into modules 2020-03-23 14:25:16 -07:00
Dustin Carlino
fb8072d7b7 prototype embedding more state in info panels, starting with
building->people
2020-03-23 12:38:04 -07:00
Dustin Carlino
b6eb46ec04 moving ezgui stuff around a little, cleaning up some of the APIs for
instantiating widgets
2020-03-22 23:50:14 -07:00
Dustin Carlino
96d7987c7e aha, dont need to plumb ScreenRectangle to widgets after all 2020-03-22 21:04:05 -07:00
Dustin Carlino
4df64b4c83 remove last users of ModalMenu. so long, (some variant of) the original widget. 2020-03-22 20:59:44 -07:00
Dustin Carlino
b70037b4e8 new release 2020-03-22 16:42:05 -07:00
Dustin Carlino
581956222c refactor some of the downcasting [rebuild] 2020-03-22 16:35:20 -07:00
Dustin Carlino
0e59efe15b trait-ifying nothing, row, column. the enum is hereby gone! 2020-03-22 16:19:05 -07:00
Dustin Carlino
1682b6c28f trait-ify Button 2020-03-22 15:20:46 -07:00
Dustin Carlino
10d3c0aa60 get rid of the warping and normal item sliders. do something more manual in the (dev tools only) places using them. going to rethink slider API more carefully later.
(removed individual/all PSRC trip viz; these haven't been useful for a
long time, and the people/schedule stuff is kinda replacing it anyway)
2020-03-22 14:55:16 -07:00
Dustin Carlino
67b21a334c trait-ify dropdowns (generic type plumbed in the right place now) 2020-03-22 14:23:01 -07:00
Dustin Carlino
2b2b30a6bb express many ezgui widgets as a generic trait.
- prepares the API for anyone to implement widgets
- cleans up boilerplate code
- gets rid of hacks with Plot<T>
2020-03-22 14:06:02 -07:00
Dustin Carlino
2712ea8c74 settle on using the common widget ID for everything (except rows/cols).
move some non-widget tools to a better module, and rename shaders
directory
2020-03-22 10:48:11 -07:00
Dustin Carlino
d7886fa85b move person counters to population panel 2020-03-22 10:34:32 -07:00
Dustin Carlino
1259b42ab5 same for fillers and menus 2020-03-21 18:51:07 -07:00
Dustin Carlino
dbd9dcf5dd inline sliders in the tree directly 2020-03-21 18:41:01 -07:00
Dustin Carlino
acbeb2b499 expose some settings for interactively tuning the dot / heat map of people. this way is buggy (controls constantly being recreated), but a start. 2020-03-21 17:42:17 -07:00
Dustin Carlino
4ad75f99a1 implement a super basic heatmap (many many problems) for the dot map 2020-03-21 14:46:23 -07:00
Dustin Carlino
d7c855c556 speed up dot map in trivial ways 2020-03-21 13:40:42 -07:00
Dustin Carlino
3045f99266 stop plumbing back unused agent metadata from sim, now that ACS is gone 2020-03-21 13:13:46 -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
1abddda18b change how inactive buttons are created, finally completing the grand button refactor 2020-03-21 12:04:12 -07:00
Dustin Carlino
b3028fd69c adjust edit overlay color, and add an explicit reset button to edits 2020-03-21 10:12:13 -07:00
Dustin Carlino
718c6a346a more arrows for one-ways. forces some changes to edit tracking -- more
computation, less code.
2020-03-21 09:56:43 -07:00
Dustin Carlino
7edb8a6190 rename Widget -> WidgetImpl, ManagedWidget -> Widget 2020-03-20 23:41:07 -07:00
Dustin Carlino
81c5ae3700 consolidate ezgui internals a little, and start a little bit of rustdoc 2020-03-20 18:05:50 -07:00
Dustin Carlino
9644ff24be remove the last button constructor, except for the inactive ones 2020-03-20 15:40:43 -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
d8744648df clean up more old button constructors -- nice_text_button 2020-03-20 15:08:08 -07:00
Dustin Carlino
606e23f7cd refactoring WrappedComposite::svg_button 2020-03-20 13:47:49 -07:00
Dustin Carlino
469c11e532 fix up overlays, part 2:
- say what layer is active when zoomed in
- zoom out after opening an overlay, if needed
- sadly, scrap the heatmap icons for now
[rebuild]
2020-03-20 12:31:08 -07:00
Dustin Carlino
7368f9ef24 tiny button refactor -- svg_def instead of standard rewrite color 2020-03-20 11:59:20 -07:00
Dustin Carlino
d22b26d66b fix up overlays, part 1:
- dont show most of them when zoomed in
- change the layers icon when one is active
2020-03-20 11:55:32 -07:00
Dustin Carlino
3aacb06fa5 adjust tutorial top panel to make task selection more clear 2020-03-20 10:23:30 -07:00
Dustin Carlino
d4cd9c2899 put legend to the right of minimap, to emphasize its for minimap only 2020-03-19 18:54:06 -07:00
Dustin Carlino
5e824562ac remove Inner ACS; only one case now 2020-03-19 18:52:06 -07:00
Dustin Carlino
760ee795e7 scrap intersection delay, make a new road-or-intersection delay, based just on waiting turns 2020-03-19 08:34:02 -07:00
Dustin Carlino
fea6129f00 filling out trip timeline icons and colors (with some placeholders).
fixing the icon for locating an object and for visibility hidden.
2020-03-18 19:47:21 -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
41ce8fe8f3 force trips per person to be time ordered 2020-03-18 14:01:03 -07:00
Dustin Carlino
b08c2caa12 wittle down more old button constructors. also improve splash screen style. 2020-03-18 11:45:20 -07:00
Dustin Carlino
d63c79d87c popup info in map editor only when a key is held. lock down old
blocking_text methods a little more
2020-03-18 11:13:40 -07:00
Dustin Carlino
01b5617840 show recommended scale factor in options [rebuild] 2020-03-18 10:22:39 -07:00
Dustin Carlino
ad4ebeeb61 add z-buffering to glow/wasm backends. helps #21 2020-03-17 11:16:22 -07:00
Dustin Carlino
0bcbac1fee upgrade a few misc packages 2020-03-17 10:35:37 -07:00
Dustin Carlino
e47d5f7917 fix parking markings and where pedestrians walk for left-hand maps for #27 2020-03-17 10:09:44 -07:00
Dustin Carlino
6de415033e more button refactor:
- custom tooltips
- get rid of a few old Button constructors
2020-03-17 09:46:51 -07:00
Dustin Carlino
be9671a51f more fixes for left-hand maps (#27):
- avoid a crash by deduping intersection polygon points
- make shared sidewalk corners saner by flipping order of points
- improve crosswalk determination
2020-03-16 18:27:33 -07:00
Dustin Carlino
812c7fa640 start support driving on the left, more carefully tracking all the dependencies. part of #27. lots of bugs left, but it doesn't break anything for driving on the right. 2020-03-16 17:40:12 -07:00