Commit Graph

950 Commits

Author SHA1 Message Date
Dustin Carlino
a62e3133db cleanup after #59:
- cargo fmt
- update some comments
- remove EventLoopMode
- if no updates are requested, that's the equivalent of InputOnly
2020-07-01 17:57:43 -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
c61371a777 variant of row/col that have good default margins. starting a big
refactor to make everything consistent. not sure mechanical refactor is
right here. lots left, but a start.
2020-07-01 09:50:35 -07:00
Dustin Carlino
ae6c099bd5 start bringing in private broadmoor roads. omit from the CH, so trips will just fail without a path for now. 2020-06-27 16:19:48 -07:00
Dustin Carlino
a6b90d00d8 very simple modifier to cancel all trips for some percentage of people 2020-06-27 14:20:25 -07:00
Dustin Carlino
16beebd1de use underlining to refer to edits, not quotes. only in some places. :\ 2020-06-26 14:13:12 -07:00
Dustin Carlino
77fa6eb43d switch to upstream usvg, now with support for a loaded-once fontdb that
only uses bundled fonts, not system fonts. side effect is that
apparently the overpass font doesn't have ▼, so switch to a silly down
arrow for now
2020-06-26 11:22:22 -07:00
Dustin Carlino
ccb93d198f add a third opengl fallback that expresses no pixel reqs whatsoever, for #103 [rebuild] 2020-06-25 17:20:32 -07:00
Dustin Carlino
097b33c80a release another attempt at a windows fix 2020-06-24 17:20:21 -07:00
Dustin Carlino
79ddbb5a74 fallback to a minimal opengl context if needed. attempting to solve #79 [rebuild] 2020-06-24 16:11:44 -07:00
Dustin Carlino
915713babb to mitigate #95, add a setting to adjust scroll speed 2020-06-24 14:26:15 -07:00
Dustin Carlino
8f75e10ca7 revert back to using primary monitor size on linux only. fallout from b267997554 was that sometimes on linux when using --dev to jump directly into sandbox mode, the minimap and some panels are very screwed up, because they see incorrect window dims before the resize event. until all ezgui things properly handle resizing, do this 2020-06-24 14:01:34 -07:00
Dustin Carlino
07bf9725d4 use a regularly spaced marking for construction instead of the weird
stripes. clean up the hack in the shader
2020-06-24 08:36:47 -07:00
Dustin Carlino
2630fabf83 link to fixed windows build, and make a few small adjustments 2020-06-23 12:57:06 -07:00
Dustin Carlino
b267997554 add debugging for #65 and try setting the initial window size differently [rebuild] 2020-06-23 10:59:56 -07:00
Dustin Carlino
7f6beb73db mac keyboards maybe dont have right ctrl, use left ctrl instead [rebuild] 2020-06-23 10:38:41 -07:00
Dustin Carlino
ca22d63671 numpad support for #83 2020-06-23 10:29:14 -07:00
Dustin Carlino
a9b2a33ffc windows fixes:
- the updater script was clobbering clobber data/
- window resize events seem to capture title bar (#65)
[rebuild]
2020-06-22 15:51:42 -07:00
Dustin Carlino
6ff190065c hold the presses!
- dont scale the lyon-powered thick lines by the DPI, to help #61
- move the message panel to the left for one part of the tutorial, to
help #62
- adjust some tutorial wording
- let people skip tutorial stages
[rebuild]
2020-06-21 23:04:35 -07:00
Dustin Carlino
4dd2835cd4 fix most of the angle inversion mess! 2020-06-19 20:25:47 -07:00
Dustin Carlino
288e90e530 use lyon for stroking line plots 2020-06-18 17:44:12 -07:00
Dustin Carlino
a25994123b lift filtering out of scatter and line plots. makes everything
responsive by default and is way simpler. [rebuild]
2020-06-18 15:48:46 -07:00
Dustin Carlino
4aeb80cfce recompute scatter plot avg when filtering stuff. but actually, should
probably implement the filtering differently anyway...
2020-06-18 14:50:48 -07:00
Dustin Carlino
b5e9d64a9b optionally use arrow keys to pan the map. need this for filming a trailer. fixes #10. also make the settings panel layout less horrific 2020-06-18 12:44:47 -07:00
Dustin Carlino
4aec41a8b6 average line in delay scatterplots 2020-06-17 16:11:57 -07:00
Dustin Carlino
ca9202c1e8 group the before/after series in line plots 2020-06-17 14:33:27 -07:00
Dustin Carlino
d2c674eb9a per suggestion of a cugos member, color all parked cars the same. distinguishing moving cars is helpful, but not parked ones 2020-06-17 11:15:14 -07:00
Dustin Carlino
a86ef0fa12 start revamping layers. for delay, have zoomed and unzoomed views. always use gradients. 2020-06-15 12:51:32 -07:00
Dustin Carlino
bfaefe1df3 implement new, better word wrap. remove the old way. applied everywhere
except tutorial instructions, since those need rewriting soon anyway
2020-06-15 11:42:09 -07:00
Dustin Carlino
64fba66e42 add links to proposal write-ups and adjust the UI for that page 2020-06-14 13:04:28 -07:00
Dustin Carlino
5cda64d6fd adjusting start/end marker icons 2020-06-14 12:32:44 -07:00
Dustin Carlino
57651fd270 fix crash with loading edits. still draw modified layer in edit mode.
communicate autosaving a bit better
2020-06-13 16:37:13 -07:00
Dustin Carlino
01d55991c8 quick fixes after meeting:
- tweaks to demand panel
- put missing turns first
- "before changes" -> "before 'edits name'"
2020-06-12 15:40:47 -07:00
Dustin Carlino
c20a8ea36b tuning plot appearance: labels, grid, titles, bg and outline 2020-06-12 12:12:01 -07:00
Dustin Carlino
14c7518787 break down delay by agent 2020-06-12 11:37:12 -07:00
Dustin Carlino
269bdc9171 dont force reset from midnight in survivor mode! 2020-06-11 16:30:31 -07:00
Dustin Carlino
dfb9e7e349 move gameplay meters to the side. also start capturing logs for linux
and mac too
2020-06-11 14:55:56 -07:00
Dustin Carlino
a96b77ba3f more granular profiling 2020-06-09 18:56:33 -07:00
Dustin Carlino
e9355f0b64 using a proper gradient for comparing thruput! [rebuild] 2020-06-09 17:13:08 -07:00
Dustin Carlino
e87b2aca05 fancier slider finally 2020-06-09 09:45:46 -07:00
Dustin Carlino
03c63ab34d working on new cutscene UI 2020-06-08 13:25:21 -07:00
Dustin Carlino
b13f3106d9 scroll wheel on spinners 2020-06-07 11:01:27 -07:00
Dustin Carlino
051d6bca24 finish cleaning up geombatch apis 2020-06-05 21:01:03 -07:00
Dustin Carlino
63067656b8 whittle away weird geombatch APIs. more left 2020-06-05 11:14:17 -07:00
Dustin Carlino
bd17ebaf8e fleshing out story map editor more 2020-06-04 12:05:26 -07:00
Dustin Carlino
1b774b13b0 reviving tutorial...
- pick another building, now that the montlake market is demolished
- layouting (i understand flexbox now \o/)
- finally listen to reason and get rid of the extra "inspect" action.
  not many per-object actions remaining at this point
- handle window resizing much better, making the --tutorial flag useful
  again
2020-06-03 17:38:02 -07:00
Dustin Carlino
e1cfd52e32 always spawn buses. otherwise can't really interactively spawn agents and have buses at the same time 2020-06-03 12:55:40 -07:00
Dustin Carlino
d5e3c3740c make spinner buttons more responsive 2020-06-02 10:15:29 -07:00
Dustin Carlino
204b2962b1 add a debug tab to try to understand people's schedules better 2020-05-29 16:37:12 -07:00
Dustin Carlino
8b7d93c64e robustify city picker 2020-05-28 17:17:50 -07:00
Dustin Carlino
42a35c736a starting a city region picker 2020-05-28 14:11:34 -07:00
Dustin Carlino
c119ca710f fix lots of layouting! exact_size_percent can play well with scrolling 2020-05-27 11:52:57 -07:00
Dustin Carlino
10bc4b9c32 try showing delay measurements as a raw scatter plot 2020-05-26 14:59:20 -07:00
Dustin Carlino
608d8cad4f breathe life into the little buggers 2020-05-25 17:10:15 -07:00
Dustin Carlino
c4e1f449d8 make the 'closest parking' a little more obvious 2020-05-25 11:20:38 -07:00
Dustin Carlino
6f2c88eccc lift phase controls out of a menu 2020-05-25 11:11:26 -07:00
Dustin Carlino
390a6d23d4 omit summary dash without prebaked data, more dpi fixes [rebuild] 2020-05-24 13:04:57 -07:00
Dustin Carlino
d3ade25c9f fix a few DPI issues yuwen found, most caused by creating screen-space
geometry based on percentge of window width
2020-05-24 12:39:41 -07:00
Dustin Carlino
8c77cdd889 validation for naming edits. fixes #35. also improve how wizards manage
textboxes when parsing fails
2020-05-24 11:52:32 -07:00
Dustin Carlino
c47cd5b9b6 improving the street finder 2020-05-23 14:14:06 -07:00
Dustin Carlino
967c8929e3 cleanup after PR, and start to wittle down EventLoopMode to handle
multiple types of update events
2020-05-23 11:23:38 -07:00
Javed Nissar
c34fe4f2c7
Resolve #11 by panning map when cursor is at edge of screen (#57) 2020-05-23 10:42:59 -07:00
Dustin Carlino
ba5d776bd0 draw a minimap with route preview below the trip table 2020-05-20 12:26:56 -07:00
Dustin Carlino
ddf6de5f59 stop dependending directly on serde_derive 2020-05-19 15:06:32 -07:00
Dustin Carlino
41e80b48a1 fix a few buttons that dont immediately redetect mouseover after clicking, and fix a crash when trying to click out of autocomplete 2020-05-18 10:30:58 -07:00
Dustin Carlino
fa1273bd34 more dpi fixes:
- margin and padding
- Widget::draw_batch
- trip timeline
- custom buttons

and finally enable automatically setting DPI based on the monitor!!!
[rebuild]
2020-05-17 17:02:33 -07:00
Dustin Carlino
2f1b274276 for different DPIs, don't scale SVGs in map-space, only in screen-space. 2020-05-17 15:40:04 -07:00
Dustin Carlino
7ff5e870d0 fix loading edits when other edits are loaded. include west seattle in
release. [rebuild]
2020-05-15 12:25:02 -07:00
Dustin Carlino
9f78766ee6 try brian's signals. making them the default to get used to them, but
not updating screenshot goldenfiles yet
2020-05-13 15:31:29 -07:00
Dustin Carlino
dd99936fa0 also scrape amenities from buildings themselves. make an 'other'
category
2020-05-13 13:58:15 -07:00
Dustin Carlino
f3b396a7e9 set a window icon 2020-05-09 09:48:24 -07:00
Dustin Carlino
5c0c133253 finally get the first community proposal baked in! 2020-05-06 16:58:09 -07:00
Dustin Carlino
0f39ea46ce simple idea: render roads/intersections with a low zorder as slightly transparent. makes downtown and 99 more palatable 2020-05-04 14:05:43 -07:00
Dustin Carlino
7d2fa77323 grab turn restrictions across roads from OSM, plumb into RawMap 2020-05-03 10:41:00 -07:00
Dustin Carlino
912d964b75 store screenshots as much smaller .gifs. this lets us start taking screenshots of a larger area, since i'm making substantial changes there now 2020-05-02 18:44:09 -07:00
Dustin Carlino
bba8ac9941 remove the screenshot MANIFEST; the more general one suffices 2020-04-28 11:39:10 -07:00
Dustin Carlino
55c8a9d875 use colorous for heatmaps 2020-04-27 18:48:19 -07:00
Dustin Carlino
40eed3f116 show parking utilization of a single lane over time 2020-04-20 11:30:19 -07:00
Dustin Carlino
2e374ef684 make trip table look like a table, not an unaligned abomination of
lovecraftian geometry
2020-04-18 18:25:53 -07:00
Dustin Carlino
59a5680895 try a new before/after toggle for trip info [rebuild] 2020-04-17 12:40:27 -07:00
Dustin Carlino
0005feb0ac adjust time warp experience for trips 2020-04-17 12:22:55 -07:00
Dustin Carlino
b7be5aa804 filter trip summaries by modes, better scatter plot tooltip 2020-04-15 13:41:16 -07:00
Dustin Carlino
6b356bbc01 fix the contingency table filtering, make it easy to see scatter plot
diagonal, and get headless buildign again
2020-04-15 12:34:03 -07:00
Dustin Carlino
f9ac07d07d implement julian's contingency table-ish thing. buggy, but a start 2020-04-14 15:38:03 -07:00
Dustin Carlino
ec81c4d03a optionally filter the scatterplot for changes only, and fix rounding for
small numbers
2020-04-14 13:26:58 -07:00
Dustin Carlino
bde09a08e4 scatter plot: move to ezgui, add a grid, interactive cursor 2020-04-14 12:50:16 -07:00
Dustin Carlino
0d22127b76 consistent wording everywhere for Before/After changes 2020-04-13 14:20:07 -07:00
Dustin Carlino
03c00bcb3b remove the defunct bus challenge for now. hide the traffic signal challenge. fix up the cutscene style a bit. 2020-04-12 11:20:22 -07:00
Dustin Carlino
1060ed208f adding a cutscene to a challenge mode 2020-04-12 09:37:46 -07:00
Dustin Carlino
cd043be4ce move the histogram out of ezgui while things are in flux. rename plot -> line plot 2020-04-11 14:43:05 -07:00
Dustin Carlino
d9016a7fc3 simple scatter plot idea for comparing trip times 2020-04-11 13:17:52 -07:00
Dustin Carlino
57e2d6a03a make the table layouting a little better 2020-04-11 12:03:42 -07:00
Dustin Carlino
3318d6aa8a round attempt at simplifying the Histogram -- scrap special handling for zero and negatives 2020-04-10 12:42:33 -07:00
Dustin Carlino
69a8b88583 experimenting with new summaries of trip diffs 2020-04-10 11:44:47 -07:00
Dustin Carlino
a34b7acb8b start a new UI to explore finished trips 2020-04-09 11:25:55 -07:00
Dustin Carlino
ac3e4ee233 update an ezgui API from another branch, so the git diff isnt crazy 2020-04-07 17:02:06 -07:00
Dustin Carlino
7ff9a90516 use colored checkboxes in plot too. generate the shape programatically. 2020-04-06 14:45:22 -07:00
Dustin Carlino
ebf31c33e6 preserve plot settings over time. also dropdowns 2020-04-06 14:05:59 -07:00