Commit Graph

877 Commits

Author SHA1 Message Date
Dustin Carlino
d3fe865ad9 tuning signal editor 2020-01-29 16:22:49 -08:00
Dustin Carlino
cfbaf80fe3 autoscroll signal editor to show the current phase 2020-01-29 15:59:56 -08:00
Dustin Carlino
d54384742a tune minimap controls. also avoid the brief flash of a loading screen
when it's very fast [rebuild]
2020-01-29 13:35:36 -08:00
Dustin Carlino
c07d5b7c55 add a 4th speed option (uncapped) 2020-01-29 12:47:33 -08:00
Dustin Carlino
2750035172 tuning the speed panel, to fix #34 2020-01-29 12:26:09 -08:00
Dustin Carlino
43ea723111 tune lane editor style, and refactor some widget centering patterns
[rebuild]
2020-01-29 12:16:18 -08:00
Dustin Carlino
4ceae3de14 embed a version number in the title screen 2020-01-29 11:43:54 -08:00
Dustin Carlino
5914b39fc5 adjust bus stop and crosswalk icons after thinner sidewalks. deactivate
turn cycler when hovering on bus stops (and other objects)
2020-01-29 11:13:45 -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
8a966395af prevent a crash with spawning agents around intersections. tiny tutorial tweaks 2020-01-28 14:33:55 -08:00
Dustin Carlino
e733fe9d94 plumb real time passed through Update event, just base off of that 2020-01-28 09:39:44 -08:00
Dustin Carlino
8d3f58f214 whoa, time_limited_step always jumped too much 2020-01-28 09:07:09 -08:00
Dustin Carlino
6c0d42ffe7 open bus analytics from an individual bus. open up bus analytic actions
in tutorial mode.
2020-01-27 15:57:34 -08:00
Dustin Carlino
bef513ec8b inactive buttons in tutorial mode 2020-01-27 15:22:53 -08:00
Dustin Carlino
07995fb060 starting a tutorial for bus lanes too 2020-01-27 12:38:51 -08:00
Dustin Carlino
426ebdc606 let vehicles spawn on all lanes from a border. lets the bike tutorial have a better solution 2020-01-27 11:54:36 -08:00
Dustin Carlino
2747ca5181 bike trips were counting as driving trips 2020-01-27 11:01:02 -08:00
Dustin Carlino
0d3cfb90ec wire up edit mode in tutorial properly. add end condition to bike lane
tutorial [rebuild]
2020-01-26 09:31:03 -08:00
Dustin Carlino
1c7764843a reorder and tune some info panel contents 2020-01-25 14:56:30 -08:00
Dustin Carlino
5f82c855ed slidey windows for thruput plots 2020-01-25 14:19:03 -08:00
Dustin Carlino
91cd0e9852 working more on the bike lane tutorial 2020-01-25 10:28:34 -08:00
Dustin Carlino
a45405055a start a tutorial stage to justify bike lanes 2020-01-24 16:04:58 -08:00
Dustin Carlino
4f60d6cb77 make the all-walk conversion idempotent, and some other bugfixes to the
editor
2020-01-24 15:30:32 -08:00
Dustin Carlino
09b0c47f3c show better names for maps and scenarios 2020-01-24 14:13:27 -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
89e27b5e3d associate cars with owner buildings 2020-01-24 13:10:24 -08:00
Dustin Carlino
6452953370 when an info panel is open, keep an outline on the object. dont quite
handle peds <-> crowds
2020-01-24 12:59:34 -08:00
Dustin Carlino
ffdde86fc6 reduce use of override_colors. make ColorerBuilder slightly easier to
use
2020-01-24 12:02:40 -08:00
Dustin Carlino
971e8ae3a5 rainy night fixes:
- skip out-of-bounds turn restrictions during map creation
- don't enter sandbox mode with a tutorial map loaded
- fix intersection demand overlay getting clobbered
- keep updating info panel even when we hover over something else
- tweak bad order in trip details info
2020-01-23 23:03:07 -08:00
Dustin Carlino
6d016cd01b stop blindly plumbing through no-op events after any input is used. do
it more explicitly in just a few places.

fixes crash when cycling through turns while sim is running.

this makes modal menus appear laggy, but that's fine; phasing those out
anyway.
2020-01-23 17:11:29 -08:00
Dustin Carlino
89a269a59e consolidating other button styles, and adjusting signal editor colors 2020-01-23 16:05:35 -08:00
Dustin Carlino
76f5cde433 nicer text button style for the top bar 2020-01-23 15:35:08 -08:00
Dustin Carlino
ee38657a31 change the escort mission to focus on the parked car, since it's so easy to miss the ped getting out 2020-01-23 15:02:58 -08:00
Dustin Carlino
13e139bd84 encode edits as an overlay, let it be shown in sandbox mode too. some
shuffling around to update the overlay in edit mode
2020-01-23 14:31:41 -08:00
Dustin Carlino
622072721b make download links and build from source instructions easier to see,
for #41
2020-01-22 17:27:24 -08:00
Dustin Carlino
1043008ba8 and bus lanes [rebuild] 2020-01-22 15:55:04 -08:00
Dustin Carlino
1b9d5d7c07 bike lane markings! \o/ 2020-01-22 15:51:42 -08:00
Dustin Carlino
bdd05ee1a7 point out the car to follow 2020-01-22 15:36:17 -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
06b83a5f73 less colors: use sidewalk/road color for building connections 2020-01-22 14:12:12 -08:00
Dustin Carlino
1ff48e728e woops, little crash [rebuild] 2020-01-22 13:02:16 -08:00
Dustin Carlino
c2b4d39efb applying easy tutorial feedback [rebuild] 2020-01-22 12:56:46 -08:00
Dustin Carlino
2bc48d0568 found a fun case entering tutorial. get rid of scary hack a few commits ago by properly recursing when waking up new states [rebuild] 2020-01-22 12:03:40 -08:00
Dustin Carlino
2a194a9bea actually, with the previous fix, now we can get rid of all the transitions that ask for Animation when entering a new state! 2020-01-22 11:57:37 -08:00
Dustin Carlino
75281ed354 when we change states, immediately run through a round of no-op event(). this lets us immediately draw a WizardState without having to flail the mouse a bit to trigger a first event.
(also, fix release script again)
2020-01-22 11:47:06 -08:00
Dustin Carlino
9a10c52d92 rename the wrapped managed things, for great sanity 2020-01-22 10:41:58 -08:00
Dustin Carlino
54d7f31097 generalize overlays, stick it in UI. only sandbox and tutorial mode can modify it for now though. 2020-01-22 10:24:52 -08:00
Dustin Carlino
09e87687db more of the minimap tut 2020-01-21 15:45:43 -08:00
Dustin Carlino
95a84fd26a tweaking rustfmt options; the long literal string vecs in tutorial look awful 2020-01-21 15:20:02 -08:00
Dustin Carlino
dfd8d43b83 tutorial stage introducing the minimap. point to widgets more precisely. 2020-01-21 15:01:10 -08:00
Dustin Carlino
42e5597539 warp to certain positions in some tutorial phases, and other polishing
to the tutorial so far [rebuild]
2020-01-21 12:17:46 -08:00
Dustin Carlino
f198a6c35f dont insist on prebaked data existing in some places. also go update
scenarios with the new name, oops.
2020-01-21 11:50:56 -08:00
Dustin Carlino
6303cf52a4 next tutorial stage, following an agent 2020-01-21 11:23:39 -08:00
Dustin Carlino
a8a55aaaef trying a more declarative way of specifying tutorial stages 2020-01-20 22:45:09 -08:00
Dustin Carlino
389d033ed2 starting a few more tutorial stages 2020-01-20 14:38:43 -08:00
Dustin Carlino
73680948b5 use top-center panel for more things in all challenge modes. remove help
functions in favor of putting more info in the challenge description
2020-01-20 13:52:11 -08:00
Dustin Carlino
67ebb76f94 tiny refactor of rounded_rectangle. pad time panel 2020-01-20 12:36:27 -08:00
Dustin Carlino
3eb8d61dd2 adjust title screen layouting [rebuild] 2020-01-19 17:59:37 -08:00
Dustin Carlino
562f462519 draw an icon on parked cars 2020-01-19 15:48:41 -08:00
Dustin Carlino
e9d40fe494 just kidding, use two counters in meters panel 2020-01-19 15:34:53 -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
ca6b81099c rename scenarios to be less confusing 2020-01-19 14:39:46 -08:00
Dustin Carlino
1e49d4b6eb adjust parking heatmap color. start changing sandbox mode's top-center
panel
2020-01-19 14:04:59 -08:00
Dustin Carlino
790e860632 start poking at tutorial mode again. don't expect much yet. 2020-01-18 20:04:15 -08:00
Dustin Carlino
7d238ceff5 jump to stop sign editor from sandbox mode too 2020-01-18 16:57:15 -08:00
Dustin Carlino
afcd694524 fade out map when a blocking menu is open 2020-01-17 14:33:35 -08:00
Dustin Carlino
901b938b31 dont let screenspace things see cursor if it's in mapspace. fixes clicking buttons hidden by clipping. 2020-01-17 14:11:07 -08:00
Dustin Carlino
4327322ea4 turn edit mode's lane brushes into a proper Composite 2020-01-17 13:44:58 -08:00
Dustin Carlino
6bdd557c80 make ModalMenu optional for gameplay modes, now that we dont need it for unfollowing agents. stop using it in freeform and play scenario modes. 2020-01-17 11:24:13 -08:00
Dustin Carlino
44310ffe28 refactor some color legend stuff 2020-01-17 11:07:50 -08:00
Dustin Carlino
d5653e42ab use info panel for finished trips 2020-01-17 10:53:09 -08:00
Dustin Carlino
b6d7acd385 er, we need to do a little caching when hovering on routes after all. such lag. 2020-01-17 10:17:28 -08:00
Dustin Carlino
3cf916a2bc adjust info panel dims slightly [rebuild] 2020-01-16 18:19:30 -08:00
Dustin Carlino
f63577e2b7 no more toggling on permanent routes. still show little preview when hovering. 2020-01-16 17:21:35 -08:00
Dustin Carlino
3636f7afdc fold trip explorer into info panel 2020-01-16 17:11:51 -08:00
Dustin Carlino
eb0281a294 just move info panel handling code 2020-01-16 16:42:25 -08:00
Dustin Carlino
610f8f7e46 totally remove route explorer, the wonky warping slider one 2020-01-16 16:30:01 -08:00
Dustin Carlino
2068ef2d9e follow agents automatically when info panel is open. drastically simpler
impl.
2020-01-16 16:26:25 -08:00
Dustin Carlino
ad49e37706 gracefully exit info panels for agents that go away 2020-01-16 16:13:21 -08:00
Dustin Carlino
9312d81471 auto-update info panels 2020-01-16 15:57:18 -08:00
Dustin Carlino
5f0dd70d43 jump to info panel object 2020-01-16 15:43:01 -08:00
Dustin Carlino
497d05552a use a locate icon button in a few places 2020-01-16 15:34:30 -08:00
Dustin Carlino
5966460527 change info panels to coexist in a parent state. only contextual action
possible on the map is to close the info panel or open a new one.
2020-01-16 15:33:13 -08:00
Dustin Carlino
9296765369 simplify manage_overlays. make bus picker from big info dash work 2020-01-16 14:45:59 -08:00
Dustin Carlino
1a16a5289b launch bus delay plot from anywhere 2020-01-16 14:38:49 -08:00
Dustin Carlino
f85ca54a44 bail out of spawning parked cars if we're totally out of space. still
horribly slow in maps without enough onstreet parking.

also fix the name of github artifacts [rebuild]
2020-01-16 11:27:15 -08:00
Dustin Carlino
08a601c45a same for the bus timeline 2020-01-15 16:37:22 -08:00
Dustin Carlino
52c394aaf2 get rid of the scrolling bus explorer thing. be able to launch show bus route as a normal overlay anywhere. 2020-01-15 16:28:12 -08:00
Dustin Carlino
15400dc514 slightly adjust some fullscreen stuff 2020-01-15 14:51:55 -08:00
Dustin Carlino
bb01c30b9d scale scrollbar length to show how much stuff is actually scrollable 2020-01-15 12:07:25 -08:00
Dustin Carlino
0835e58bef use floating panels for signal diagrams too. no more smushing into the
OSD
2020-01-15 11:38:05 -08:00
Dustin Carlino
a349eb330b fix flex wrapping and other weird issues 2020-01-15 11:21:32 -08:00
Dustin Carlino
c1f35aca46 simplify size management -- minimal size by default, can limit max size 2020-01-15 10:33:08 -08:00
Dustin Carlino
5af9c7e17b every composite will automatically be scrollable if needed. simplify API. 2020-01-15 10:19:21 -08:00
Dustin Carlino
ffb8270b10 treat the percentage as a max, not a set limit 2020-01-14 16:53:11 -08:00
Dustin Carlino
851e12f432 simplify some code without changing behavior 2020-01-14 15:57:21 -08:00
Dustin Carlino
d637243f2a support horizontal scrolling 2020-01-14 15:47:35 -08:00
Dustin Carlino
6db84efdae WIP clip composites 2020-01-14 15:18:27 -08:00
Dustin Carlino
51756b570c show selected phase in full view 2020-01-14 15:03:19 -08:00
Dustin Carlino
a29b8f5fd0 render phases differently in the full diagram 2020-01-14 14:57:14 -08:00
Dustin Carlino
eb0fa982c6 click to warp to intersection whose demand is being shown 2020-01-14 14:42:14 -08:00
Dustin Carlino
d21bcb9aa6 make the finished trips histogram closeable easily 2020-01-14 14:27:03 -08:00
Dustin Carlino
801d4f47c9 simpler top-center panel 2020-01-14 14:15:22 -08:00
Dustin Carlino
875f311f55 preserve scenario when changing maps 2020-01-14 14:05:21 -08:00
Dustin Carlino
cca6ce48a6 creep towards floating info panels, by moving it away from the corner of the screen 2020-01-13 18:52:44 -08:00
Dustin Carlino
8a7e3cecff make clipping be a stateful API, as prep for clipping composites 2020-01-13 16:57:09 -08:00
Dustin Carlino
90300c655e switch remaining signal editor stuff to a top-center panel 2020-01-13 15:56:25 -08:00
Dustin Carlino
af76ad9d60 wrap text in signal diagram to limit width 2020-01-13 14:57:46 -08:00
Dustin Carlino
1ab3c5200a limit max unzoom based on actual map dims 2020-01-13 14:39:02 -08:00
Dustin Carlino
0a771404ea make the zoom in/out fully feature actually smoothly zoom 2020-01-13 14:01:56 -08:00
Dustin Carlino
32afd5663b inline some signal editor controls 2020-01-13 11:34:43 -08:00
Dustin Carlino
8f17bc9227 branch a copy of the signal diagram for the editor 2020-01-13 10:36:52 -08:00
Dustin Carlino
1f01054077 draw a legend for intersection demand too 2020-01-13 10:00:25 -08:00
Dustin Carlino
30664d9791 stop listing edits in main edit mode too 2020-01-13 09:51:35 -08:00
Dustin Carlino
23b3b1e0a4 add redo support in signal editor 2020-01-13 09:35:49 -08:00
Dustin Carlino
b40a4a5b59 stop describing edits in traffic signal editor 2020-01-13 09:28:52 -08:00
Dustin Carlino
bf6392384b remove redundant traffic signal editor feature 2020-01-13 09:23:59 -08:00
Dustin Carlino
f28029c69f dont crash when peds are waiting for a bus that isnt spawned, and dont walk in place while waiting 2020-01-13 09:21:23 -08:00
Dustin Carlino
649d0ddbda always draw brake light with turn signals 2020-01-13 09:08:51 -08:00
Dustin Carlino
f78bc6a5ef simplify top-center panel in challenge mode 2020-01-12 10:53:32 -08:00
Dustin Carlino
ec1e3f435b make it easy to dump raw events for debugging on windows/mac [rebuild] 2020-01-12 09:35:38 -08:00
Dustin Carlino
de1c481c93 svg parking icons 2020-01-12 09:20:54 -08:00
Dustin Carlino
5f4e2bd81e use edit map icon 2020-01-11 20:40:44 -06:00
Dustin Carlino
e207500877 move some controls above minimap viz panel 2020-01-11 20:27:25 -06:00
Dustin Carlino
f1b42ecdb9 consolidate composite layouting... just need to know alignment and percentage of screen 2020-01-11 14:59:27 -06:00
Dustin Carlino
0023002935 proof of concept: max size for composites! 2020-01-11 14:32:41 -06:00
Dustin Carlino
abe89d65f8 center popup menus 2020-01-11 14:02:47 -06:00
Dustin Carlino
60c20230ec align X button to the right. flexbox is so unintuitive. 2020-01-11 13:54:42 -06:00
Dustin Carlino
f4f85febd7 choose heatmap via yuwen's icons. layouting is funky, but when is it
not?
2020-01-11 13:42:26 -06:00
Dustin Carlino
511c451e8a totally ditch the fixed Composite positioning 2020-01-10 12:01:05 -06:00
Dustin Carlino
52e08238e5 use relative positioning for the minimap and legend. (when starting maximized, window size changes a few times, really exposing how silly exact positioning is) 2020-01-10 11:59:15 -06:00
Dustin Carlino
e2de6b24d9 start windows maximized 2020-01-10 11:23:52 -06:00
Dustin Carlino
f7c2911671 [rebuild] to test windows info panel click bug 2020-01-10 10:01:26 -06:00
Dustin Carlino
a6edc70d3c input validation for naming edits 2020-01-10 09:34:23 -06:00
Dustin Carlino
bc8eb8d6e0 ahhh, fix bug that made crosswalks not conflict with turns 2020-01-10 09:18:21 -06:00
Dustin Carlino
f12e231966 jump to editing traffic signal directly from sandbox mode 2020-01-09 19:13:06 -06:00
Dustin Carlino
11ece6b188 no more log scroller. have an OK button 2020-01-09 17:54:07 -06:00
Dustin Carlino
7b4c7306e7 dont allow 0s phases 2020-01-09 17:38:02 -06:00
Dustin Carlino
4115d26b6b woops, adding missing turns to traffic sig needs to prioritize crosswalks 2020-01-09 17:23:00 -06:00
Dustin Carlino
d871e3b447 loading screen for applying map edits 2020-01-09 17:19:35 -06:00
Dustin Carlino
bc95319859 hide traffic sig details when turn cycling in sandbox mode 2020-01-09 17:17:24 -06:00
Dustin Carlino
f6274e566d OSD even for pregame stuff 2020-01-09 15:50:00 -06:00
Dustin Carlino
de21ee0727 show keybindings in info panel 2020-01-09 15:43:35 -06:00
Dustin Carlino
0a5d945f20 avoid some bugs if we simulate way past 24 hours 2020-01-09 12:01:12 -06:00
Dustin Carlino
53f33a31e4 hide IDs unless in dev mode 2020-01-09 11:50:56 -06:00
Dustin Carlino
c049221743 add a timeline showing bus location 2020-01-08 13:59:01 -06:00
Dustin Carlino
0ecfb1be20 make the passenger delay panel into a Composite, and click stops to warp to them 2020-01-08 13:17:10 -06:00
Dustin Carlino
6203ff70f0 make it easier to find all bus stops 2020-01-08 11:23:00 -06:00
Dustin Carlino
45c7ee08e1 remove speed slider, use the 3 settings instead 2020-01-08 10:55:34 -06:00
Dustin Carlino
5ae2557b2c adjusting some speed panel buttons. the new triangles dont do anything
yet.
2020-01-07 12:52:56 -06:00
Dustin Carlino
24565cfe49 refactoring composite builder API 2020-01-07 12:08:39 -06: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
eb9050777b hide button for heatmaps 2020-01-07 11:07:34 -06:00
Dustin Carlino
0439e05e4e start a panel for showing live passenger delay 2020-01-04 10:52:25 -06:00
Dustin Carlino
05888357ea generalize that into a prebaked analytics thing. undo the previous
thing. (i forgot even live stuff should be in analytics)
2020-01-04 10:30:57 -06:00
Dustin Carlino
fd2fbf6a5e info panel for bus stop has number of people waiting currently, time spent waiting 2020-01-04 10:11:22 -06:00
Dustin Carlino
9aac76ee39 draw less terrible bus stops 2020-01-04 09:50:03 -06:00
Dustin Carlino
3208636c29 move legend for colorer 2020-01-03 10:58:07 -06:00
Dustin Carlino
35357534aa draw heatmap on the minimap 2020-01-03 10:52:09 -06:00
Dustin Carlino
e8ea180f8a clean up places using Colorer that were drawing things themselves 2020-01-03 10:44:28 -06:00
Dustin Carlino
a2e749c30c merge RoadColorer and ObjectColorer 2020-01-03 10:30:02 -06:00
Dustin Carlino
a70cea84b5 make road colorer draw on top of original stuff when zoomed in, with
less opacity. dont use override_colors.
2020-01-03 10:15:50 -06:00
Dustin Carlino
852ee69430 buttons to zoom in/out fully. poor animation for now. 2020-01-02 12:21:47 -06:00
Dustin Carlino
d21676ea11 make the zoom indicators clickable 2020-01-02 12:11:13 -06:00
Dustin Carlino
3bd4a7220d make popup menus use scrolling 2020-01-02 11:35:41 -06:00
Dustin Carlino
c9b8438bd5 yuwen's magical new heatmap colors 2020-01-02 10:41:43 -06:00
Dustin Carlino
642084c595 rotate walk icons 2020-01-02 10:24:12 -06:00
Dustin Carlino
1ad3dfd634 always draw crosswalks, draw walk / dont walk icons 2020-01-01 13:47:55 -06:00
Dustin Carlino
c925eff8b9 new traffic signal arrow styles and phase spinner 2020-01-01 12:51:40 -06:00
Dustin Carlino
87a2c82ba6 fixed number of zoom levels for the minimap 2019-12-30 11:10:32 -06:00
Dustin Carlino
74de79e0dd make an iterator to determine when we're on the last item. use to refactor a few places that have to do this. there are more though. 2019-12-29 11:20:05 -06:00
Dustin Carlino
7cd7eec5cd stop embedding TimePanel inside SpeedPanel (even though they always go together) 2019-12-29 10:55:34 -06:00
Dustin Carlino
4329f55e97 zoom controls for minimap 2019-12-29 10:44:29 -06:00
Dustin Carlino
863e239c98 turning histogram into a proper ManagedWidget 2019-12-29 10:16:38 -06:00
Dustin Carlino
1de77f0d3b prevent a crash spawning agents on a synthetic map [rebuild] 2019-12-28 11:02:27 -06:00
Dustin Carlino
5b6e7a6f54 jump straight to a challenge from command line for fast development. fixes #31 2019-12-26 18:53:44 -06:00
Dustin Carlino
71553cbc70 make time jump textbox start with the current time, so the format is a bit more clear. addresses #24 2019-12-26 18:30:51 -06:00
Dustin Carlino
38bc88d54b make the pan buttons do something 2019-12-25 12:35:49 -08:00
Dustin Carlino
517a35775f adding pan buttons to minimap. they dont do anything yet, but the hard
part was positioning the minimap using all the new layouting
2019-12-25 12:01:51 -08:00
Dustin Carlino
e8c9cfd2cf support command stack and undo within traffic sig ed 2019-12-25 11:22:31 -08:00
Dustin Carlino
b81d66dcc3 real time/speed controls in traffic sig preview, with a different
meaning for reset
2019-12-25 10:58:12 -08:00
Dustin Carlino
3ddae0517e put action buttons in the info panel directly; scrap the modal menu 2019-12-24 15:50:13 -08:00
Dustin Carlino
bb55b2158f start sandbox mode with agents from main screen 2019-12-24 15:40:16 -08:00
Dustin Carlino
fbbb59f6a5 add option to preview traffic signal edits with the live sim results 2019-12-24 14:34:50 -08:00
Dustin Carlino
ebd405e2ef make the scrollbar slider work! also, stop wasting github resources 2019-12-23 15:00:22 -08:00
Dustin Carlino
21b8f41a59 change API of Composite. we need to own all the sliders after all. prep
for including a scrollbar.
2019-12-23 14:33:43 -08:00
Dustin Carlino
3c0b88dfdf rewrite slider a bit. support vertical scrolling (untested). fix some
bugs in speed panel introduced a while ago. keep tuning github workflow.
2019-12-23 13:56:29 -08:00
Dustin Carlino
dafcc50479 for now, hack around layouting mess by hardcoding window width to make flex wrapping kind of work 2019-12-23 11:05:24 -08:00
Dustin Carlino
47db959155 also for picking finished trips 2019-12-22 20:14:15 -08:00
Dustin Carlino
c249934eba use flex buttons for picking a bus route 2019-12-22 20:00:19 -08:00
Dustin Carlino
2a8c657770 only upload widget backgrounds once 2019-12-22 10:52:41 -08:00
Dustin Carlino
194dbae66f embed Scroller functionality in Composite directly. use for analytics panel 2019-12-22 10:26:48 -08:00
Dustin Carlino
c130e49cb4 reverse earlier decision and put prebaked analytics back in UI, so existing plumbing works. but it's optional and carefully set/reset 2019-12-22 10:14:19 -08:00
Dustin Carlino
7c37c786fd stick the finished trips plot in the new dashboard 2019-12-21 14:47:39 -08:00
Dustin Carlino
2a67872d17 turning the old scoreboard into a separate dashboard. also fold in the
bus route explorer
2019-12-21 14:43:03 -08:00
Dustin Carlino
e7d9efc4e4 split the plot into 3 pieces, use layouting for the axes 2019-12-21 10:43:26 -08:00
Dustin Carlino
f1566b48c9 lift ManagedWidget and friends into ezgui. have a wrapper layer in game that adds callbacks. here's my herculean refactor of the week. :D 2019-12-20 15:56:04 -08:00
Dustin Carlino
a188741c06 migrate remaining users of old Plot to new Plot 2019-12-20 14:38:54 -08:00
Dustin Carlino
f6b4af1797 move road throughput into info panel 2019-12-20 14:28:34 -08:00
Dustin Carlino
c2e5678308 cut intersection delay and thruput plots over to being embedded in info panel composite. working on rendering issues. 2019-12-20 14:19:40 -08:00
Dustin Carlino
2a02e31bce making Plot be something that can be composited. just some of the glue
so far, nothing working yet.
2019-12-20 13:42:58 -08:00
Dustin Carlino
38d731e2a5 adjust traffic signal diagram based on yuwen's mocks 2019-12-20 13:11:50 -08:00
Dustin Carlino
a67b1bf19a refactor Polygon::rectangle_top_left and a few more things... taking
Distance everywhere is kind of silly
2019-12-20 12:42:49 -08:00
Dustin Carlino
ae41408c70 compute Composite layout upfront. only recompute when window is resized. 2019-12-20 11:20:09 -08:00
Dustin Carlino
6b5e33a665 glue up the next/prev phase keys 2019-12-20 11:00:38 -08:00
Dustin Carlino
49a0f7abd6 yay, delete old gunky attempts at scrolling 2019-12-20 10:30:56 -08:00
Dustin Carlino
b229c44511 make the new signal diagram selectable. it's now basically usable! 2019-12-20 10:25:14 -08:00
Dustin Carlino
04bcf77e2b work on new traffic signal scrolling panel. generalized scrollable
Composite works!
2019-12-20 09:35:27 -08:00
Dustin Carlino
988b4bed18 adjust pregame screens slightly 2019-12-20 08:12:01 -08:00
Dustin Carlino
82d91d3ec6 actually toggle layers of agent color schemes. the indirection might be
crazy expensive...
2019-12-19 14:52:54 -08:00
Dustin Carlino
56285a7b30 add screen positioning to some Composites 2019-12-19 10:59:39 -08:00
Dustin Carlino
d5312fabd4 remove the show/hide feature from ModalMenus. ModalMenus are on the way out, the icon is often covering stuff up, and now we can delete some old pngs 2019-12-18 16:26:28 -08:00
Dustin Carlino
7ad40959ca adjust all of the UI panels... 2019-12-18 16:20:14 -08:00
Dustin Carlino
ea59c84f6b start a more general top-center panel for freeform mode 2019-12-18 16:06:52 -08:00
Dustin Carlino
1eb21f2fe0 get rid of the sandbox modal menu in favor of a top-center panel 2019-12-18 15:46:21 -08:00
Dustin Carlino
0fcbd69264 flexbox margins. thanks julian 2019-12-18 15:27:52 -08: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
a1ff95e80a exploring the feasibility of recording prebaked savestates (to use for
quick previews in edit mode). reduced size of savestates significantly
by ommitting analytics...
2019-12-17 16:36:29 -08:00
Dustin Carlino
892e0592e1 adjust rendering of parked cars 2019-12-17 15:55:47 -08:00
Dustin Carlino
dfa1b82c70 stop adjusting agent colors when zoomed in. just one fixed scheme right now. acs just for unzoomed/minimap. get rid of the "arbitrary colors" scheme 2019-12-17 15:50:09 -08:00
Dustin Carlino
75f2b46f08 implement yuwen's car colors and turn indicators 2019-12-17 15:29:36 -08:00
Dustin Carlino
7701e19c05 tune a few text button colors, to make it more obvious they're buttons 2019-12-17 14:58:36 -08:00
Dustin Carlino
a2ac3c5265 make the minimap visibility panel match up with the agent colorscheme.
remove the old color legend
2019-12-17 14:54:25 -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
e893e6b98c add a flag to override DPI, so we can tune on mac 2019-12-16 19:09:02 -08:00
Dustin Carlino
b1da0f0284 get rid of unzoomed_radius, used to highlight agents stuck in intersections. there are better gridlock debug tools now, and this complicates the minimap 2019-12-16 18:51:29 -08:00
Dustin Carlino
4046be3966 start drawing agents in the minimap. theyre a bit big. 2019-12-16 18:46:03 -08:00
Dustin Carlino
eda40ecdec start an interactive legend for the minimap. pretty disjoint from real
AgentColorScheme right now
2019-12-16 15:40:32 -08:00
Dustin Carlino
a7071a1bc4 convert ColorLegend to Composite. 2019-12-16 14:50:21 -08:00
Dustin Carlino
8ced649b62 try a different pattern, where callers keep ownership of the Slider, instead of Composite. lots of plumbing, but it's hidden away, so this seems like an improvement. 2019-12-16 14:13:08 -08:00
Dustin Carlino
2bdd7bef74 switching speed panel to Composite 2019-12-16 13:41:17 -08:00
Dustin Carlino
9a702d5c79 an easy one: use flexbox Composite on splash screen. can't quite express
the centering
2019-12-16 10:27:52 -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
1e9f14f62d use the new Composite for time controls 2019-12-15 18:42:14 -08:00
Dustin Carlino
d2a18069e7 experiment with using ManagedWidgets and flexbox for AgentMeters.
crazy inefficient, but the API is darn nice
2019-12-15 17:09:41 -08:00
Dustin Carlino
97c8a84efb switching out lane editing icons for yuwen's nice ones 2019-12-15 11:06:59 -08:00
Dustin Carlino
eaf01559d3 temporarily adjust position of color legends and agent meters. not the final position, but doing a release today and ideally not drawing two panels on top of each other 2019-12-15 10:30:19 -08:00
Dustin Carlino
90fcfbc1ea start with the simulation playing by default. part of #31 and something on the long list of UX issues anyway 2019-12-14 21:02:21 -08:00
Dustin Carlino
9c879ab488 click to toggle signal priority and stop signs. key didnt make sense, because no way to open an info panel for those objects 2019-12-13 15:52:23 -08:00
Dustin Carlino
442a0509dd invert the default for text background. none by default, should be an exception to use it. planning to support background more generally through some kind of widget layouting. 2019-12-13 15:45:24 -08:00
Dustin Carlino
e307e1f56d only need to prebake once per map+scenario 2019-12-13 13:57:27 -08:00
Dustin Carlino
bb09f4aa72 remove chokepoints overlay (doesnt say anything meaningful) and bike
path costs overlay (was used for debugging why bike lanes werent being
used a while ago)
2019-12-13 12:20:21 -08:00
Dustin Carlino
10e0b229a5 previous fix exposed problem entering the time warp state, need to make sure to switch to animation mode upon entry 2019-12-13 11:51:21 -08:00
Dustin Carlino
33bd713609 fix the weirdness with clicking in the info panel to choose actions. the
click event was getting immediately reused after exiting the panel,
causing the panel to reappear. problem was some widget stuff looking for
mouse-down events. instead they should look for mouse-up.
2019-12-13 11:47:02 -08:00
Dustin Carlino
4594bd5a7f add OSD annotations to let people know when to click something. use to
switch interactive spawner away from keypresses, since it's impossible
to open the info panel there anyway
2019-12-12 18:56:27 -08:00
Dustin Carlino
201c0edaab moving some debug info from the info panel to the console log 2019-12-12 16:09:01 -08:00
Dustin Carlino
5440fca4fe move the functions from the last MenuUnderButton to the ModalMenus, just so I can get rid of the atrocity that is MenuUnderButton 2019-12-12 15:24:07 -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
7d53f536d4 fix up speed controls a bit after yesterday's move. closes #23 2019-12-12 13:16:53 -08:00
Dustin Carlino
ed2f703e85 add some logging to debug #19 2019-12-12 10:35:51 -08:00
Dustin Carlino
dc2cc81249 make Timer methods and ModalMenu take &str or String 2019-12-12 10:25:48 -08:00
Dustin Carlino
ee598b6ae4 round of clippy. not fixing everything. 2019-12-11 16:17:15 -08:00
Dustin Carlino
260574b208 remove dependency on old ezgui context menus 2019-12-11 16:02:08 -08:00
Dustin Carlino
94502a73ed the magic hack: make the actions usable from the info panel 2019-12-11 15:55:27 -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
14f4dc2e3c left click to open info panel. refiddling how drag events are detected.
kind of messy code, but the behavior is FINALLY right.
2019-12-11 13:52:01 -08:00
Dustin Carlino
706f602e10 splitting time/speed panels. horrible layouting hacks 2019-12-11 13:08:17 -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
f0af92f00e split out an agent meter with icons for the modes 2019-12-11 10:13:36 -08:00
Dustin Carlino
2afa2ef43f experimenting with tracking and visualizing demand at traffic signals 2019-12-09 15:23:30 -08:00
Dustin Carlino
b83e61eaee little outlines for the bars 2019-12-09 14:06:25 -08:00
Dustin Carlino
c35ae15ec0 start gameplay with the histogram shown 2019-12-09 14:00:28 -08:00
Dustin Carlino
f296513b2e add mouseover to histogram 2019-12-09 13:47:46 -08:00
Dustin Carlino
11e9d7781f adjust the histogram, hide some text stats now 2019-12-09 13:42:28 -08:00
Dustin Carlino
158f09c3a9 suppress minimap in tutorials 2019-12-09 13:23:18 -08:00
Dustin Carlino
3187fc7ef8 replace MultiText with DrawBoth 2019-12-09 13:03:28 -08:00
Dustin Carlino
954ac97a9f started a histogram to show relative trip durations for fixing traffic
signals. lots of work needed.
2019-12-09 12:50:55 -08:00
Dustin Carlino
4e96363398 tuning color rewriting and placement of some svg icons. removing the
crazy shader color masking
2019-12-08 13:44:43 -08:00
Dustin Carlino
5a7314d137 Add color rewriting and stroke support for SVG images. Cut over more
images, discovering some break...
2019-12-08 12:46:56 -08:00
Dustin Carlino
77099a164b try using usvg and lyon to produce Polygon+Colors from svg files. so
far, so good. dodging a dependency on harfbuzz (which doesn't build in
my windows cross-compilation env), now trying on mac...
2019-12-08 10:24:01 -08:00
Dustin Carlino
345346a33d tune the tail lights some more 2019-12-07 18:17:00 -08:00
Dustin Carlino
e567d14fc2 silently add hotkeys to challenge picker screen for my own sanity 2019-12-07 13:29:34 -08:00
Dustin Carlino
050b9ea629 simpler turn arrows -- just plain left/right, not angle of exact turn 2019-12-07 13:21:40 -08:00
Dustin Carlino
8c98f9dc87 make cars asymmetric, so the front is easier to spot 2019-12-07 13:17:08 -08:00
Dustin Carlino
c4b0c12797 new default color scheme to use different colors for cars 2019-12-07 12:57:31 -08:00
Dustin Carlino
61ef9f0b33 adding turn lanes to the tutorial level 2019-12-07 10:44:05 -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
3e629e504d grouping challenges into stages. no completion tracking yet. 2019-12-06 14:20:33 -08:00
Dustin Carlino
89a3d1cf5f one generic prebake method to rule them all 2019-12-06 13:45:15 -08:00
Dustin Carlino
5f8fe5e6a8 hack in a second scenario on a synthetic map, just to start to figure out how to organize this 2019-12-06 11:33:01 -08:00
Dustin Carlino
81a19eb78d remove the experimental hi-res grass and park textures and all the
flagged off textures. going to experiment in a different branch instead.
2019-12-05 09:37:05 -08:00
Dustin Carlino
5e646c0dbd move prebaked analytics back to gameplay runner. now that they depend on scenario and map, automatically loading them is harder, and it's confusing to be all the way up in UI. 2019-12-04 17:15:33 -08:00
Dustin Carlino
1753a40a25 prebake results for tutorial levels too, really manually. load prebaked
results more manually, since it now depends on map and scenario.
2019-12-04 16:36:01 -08:00
Dustin Carlino
e4ab4739df squeezing in a challenge for the first traffic signal tutorial.
prototyping some new abstractions for specifying demand.
2019-12-04 15:12:18 -08:00
Dustin Carlino
e308fa666b prevent loadign edits that dont fit the current gameplay mode 2019-12-04 14:10:18 -08:00
Dustin Carlino
a654f7ddc7 be able to show intersection delay over time 2019-12-04 11:15:10 -08:00
Dustin Carlino
d0cdf2412d record intersection delays in analytics 2019-12-04 10:48:36 -08:00
Dustin Carlino
c329ce6522 remove unusd neighborhood summary tool 2019-12-03 15:18:27 -08:00
Dustin Carlino
394e14270f simple final score for fixing traffic signals 2019-12-03 15:01:06 -08:00
Dustin Carlino
10e44dd0b8 move dev flag into options 2019-12-03 14:36:51 -08:00
Dustin Carlino
db8bc73ddd finally grouping system data too. forgot some data/input things... 2019-12-03 12:22:59 -08:00
Dustin Carlino
72c68aa320 remove old census popdat stuff 2019-12-03 11:42:02 -08:00
Dustin Carlino
6695f72847 organize abstutil paths internally a bit, inching towards organizing data/ dir 2019-12-03 11:15:17 -08:00