Commit Graph

937 Commits

Author SHA1 Message Date
Dustin Carlino
ec9ba28891 stop using simsearch for matching road names. it has odd behavior when the query is just a few charactes, and it often has the wrong results after typing most of a name. just use simple string containment for now. 2020-07-20 08:36:32 -07:00
Dustin Carlino
4f8f659dfb widget replacement keeps margins from the old 2020-07-19 11:28:12 -07:00
Dustin Carlino
c645876ea2 find some excuse to include one of holly's characters in a cutscene.
need to rework the dialogue more.
2020-07-18 09:46:21 -07:00
Dustin Carlino
614354271a see modified trips in the table and info panels 2020-07-14 16:10:50 -07:00
Dustin Carlino
0c283d0da7 finish up the grand geom stabilization with ring and some docs.
regenerated everything from scratch. one effect is more parking
blockface gets matched onto border roads, but that's fine.
2020-07-11 16:05:26 -07:00
Dustin Carlino
07ed1fec95 more polyline work... get rid of Warn<>. extremely spammy and hasn't
been helpful in ages.
2020-07-11 15:17:16 -07:00
Dustin Carlino
cce624edd8 start the big one: Polyline::new 2020-07-11 13:42:19 -07:00
Dustin Carlino
0593aa52d9 more caution in Line API 2020-07-11 13:05:34 -07:00
Dustin Carlino
98c6f46c78 the first real big change: Line::new always returns Option 2020-07-11 12:37:38 -07:00
Dustin Carlino
5c5a9d8a43 freebsd release! fixes #167 2020-07-08 11:41:37 -07:00
Dustin Carlino
94512d95b9 change LaneID from usize to u32. savings:
scenarios: 458MB -> 431MB
maps: 676MB -> 638MB
prebaked: 85MB -> 80MB

also fix #163
2020-07-08 08:47:02 -07:00
Dustin Carlino
9f72b3dd51 cleanup after the relative dir fix, and add support for hardcoding the
data dir, for #137
2020-07-07 12:14:02 -07:00
Dustin Carlino
6919c24bf8 detect the data/ dir more intelligently. fixes #73. still need to
- consider collapsing the directory structure in the releases
- fix wasm

[rebuild]
2020-07-07 11:09:35 -07:00
Dustin Carlino
181de12409 woops, 72d0171300 broke signal editor by
crashing if you were missing a turn. dont validate in the middle of
editing. still seeing a problem with traffic signal -> construction
2020-07-04 17:51:45 -07:00
Dustin Carlino
068b4223c8 prototype controls for hiding z-orders, for #126 [rebuild] 2020-07-04 13:18:27 -07:00
Dustin Carlino
4f507ef96a refactor Composite style 2020-07-03 13:01:54 -07:00
Dustin Carlino
7d4cf4cd5b follow up to #59. when we do the no-op events, have to plumb back
updates. this is needed when we push on new states to warp somewhere or
jump to a time or do anything else requesting updates
2020-07-01 22:07:54 -07:00
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
f90e506fbf the important stuff: adding a face browser to the ezgui demo 2020-07-01 09:04:55 -07:00
Dustin Carlino
1617a3d3c1 skip missing maps in the city picker 2020-06-29 09:36:37 -07:00
Dustin Carlino
ac993115f5 workaround usvg mac build break [rebuild] 2020-06-28 19:05:44 -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