Commit Graph

1052 Commits

Author SHA1 Message Date
Dustin Carlino
ce25f8bbf6 making menus support multi-line prompts 2019-04-24 16:51:35 -07:00
Dustin Carlino
faea4538a1 remove old unused debug plugins: OSM classifier, geometry validation,
floodfiller
2019-04-24 13:54:40 -07:00
Dustin Carlino
3c2a8feef3 cleaning up apply_map_edits 2019-04-24 13:46:28 -07:00
Dustin Carlino
e86f88199c reset RenderingHints properly for traffic signal editor 2019-04-24 13:10:44 -07:00
Dustin Carlino
0694283b10 detect reverts to original for traffic signal 2019-04-24 13:06:58 -07:00
Dustin Carlino
02e1cd559c moving traffic signal editor into edit mode 2019-04-24 12:58:10 -07:00
Dustin Carlino
81bb9c8d1b moving the stop sign editor into edit mode. figuring out how to plumb show_turn_icons and color_for 2019-04-24 12:04:37 -07:00
Dustin Carlino
2384157108 simplify ezgui API -- event takes &mut EventCtx 2019-04-23 21:28:03 -07:00
Dustin Carlino
138b47512a folding in road editor 2019-04-23 17:29:51 -07:00
Dustin Carlino
1abb5b630a move load edits into new edit mode. remove old plugin. 2019-04-23 17:14:09 -07:00
Dustin Carlino
2affd5f238 put the screensaver and RNG into the SplashScreen state where they belong 2019-04-23 16:56:37 -07:00
Dustin Carlino
2c0c7bfc1d stop calling old UI event from edit mode 2019-04-23 16:48:37 -07:00
Dustin Carlino
74c922daf6 taking over save edits functionality 2019-04-23 16:42:51 -07:00
Dustin Carlino
d771927576 moving the map diffs viewer into a top-level Edit mode 2019-04-23 16:01:33 -07:00
Dustin Carlino
c0947fcb35 refactor tutorial mode impl 2019-04-23 15:48:18 -07:00
Dustin Carlino
6c247d376c clean up ezgui draw() API by putting screencap and naming_hint inside GfxCtx 2019-04-23 15:42:15 -07:00
Dustin Carlino
51db6887fa combine SplashScreen and About modes by adding LogScroller functionality to Wizard natively 2019-04-23 15:30:53 -07:00
Dustin Carlino
410cb17c5f hacky way to split GameState into multiple modules 2019-04-23 15:19:03 -07:00
Dustin Carlino
a8ca4b7dd0 make map edits actually show up reasonably loudly 2019-04-23 14:22:45 -07:00
Dustin Carlino
e627930757 draw text in map-space, except drawing zoomed-in text is extremely slow! 2019-04-23 14:12:30 -07:00
Dustin Carlino
320c91faf7 bam, variable font size 2019-04-22 20:17:18 -07:00
Dustin Carlino
008b2f9de5 preps for variable font size 2019-04-22 20:02:18 -07:00
Dustin Carlino
4eece7bae7 borrow text to draw, stop cloning everywhere 2019-04-22 13:29:24 -07:00
Dustin Carlino
c2ddb7587b make neighborhood polygon points easier to see and manipulate at all zoom levels 2019-04-22 12:51:43 -07:00
Dustin Carlino
26fd30191d removing controls from LogScroller, which doesn't do the right thing and
also crashes if you try to scroll
2019-04-22 11:06:07 -07:00
Dustin Carlino
7c67ceca2d remove UIState trait 2019-04-21 17:38:22 -07:00
Dustin Carlino
b433fc692e delete old tutorial mode, fold splash.rs into main.rs, change flag to
skip the menu
2019-04-21 17:25:18 -07:00
Dustin Carlino
4a9f9f0ae3 start a new tutorial mode 2019-04-21 17:16:50 -07:00
Dustin Carlino
45083198ea load different maps from splash menu 2019-04-21 15:59:04 -07:00
Dustin Carlino
a718717c5b pause game and return to splash screen, but now without scrolling and
with slightly different options
2019-04-21 14:28:41 -07:00
Dustin Carlino
996cab982c cleanly quit from splash menu 2019-04-21 14:18:45 -07:00
Dustin Carlino
adc12f85b9 continue scrolling while about screen is active 2019-04-21 14:16:19 -07:00
Dustin Carlino
c97c189975 about screen 2019-04-21 14:08:45 -07:00
Dustin Carlino
31f9f455bb scroll the map in the background while the splash screen menu is up.
remove screensaver as a plugin.
2019-04-21 13:55:18 -07:00
Dustin Carlino
17870baf9d actually start with a menu. just play and quit right now. 2019-04-21 13:32:28 -07:00
Dustin Carlino
8ff293bdc4 dont plumb last_data through ezgui layer. apps can just... store that themselves. removes unnecessary plumbing. 2019-04-21 13:20:40 -07:00
Dustin Carlino
0b4694dcba start splash screen wrapping everything. doesn't do anything yet 2019-04-21 13:05:03 -07:00
Dustin Carlino
bc47237f8d super basic reset sim function 2019-04-20 16:24:48 -07:00
Dustin Carlino
24d6924231 screensaver mode 2019-04-20 16:00:24 -07:00
Dustin Carlino
4b1107bf57 clean up ezgui runner API 2019-04-20 15:10:03 -07:00
Dustin Carlino
669fd886d5 improve turn markings on lanes 2019-04-20 11:47:42 -07:00
Dustin Carlino
a1176e053b use hotkey color in OSD, to make OSD slightly more readable 2019-04-19 16:05:06 -07:00
Dustin Carlino
beba58924c pedestrian turn arrows 2019-04-19 15:35:51 -07:00
Dustin Carlino
46d24a7c58 compile on mac 2019-04-19 09:23:36 -07:00
Dustin Carlino
dc2649ad59 fix some crashes when spawning agents 2019-04-18 18:42:52 -07:00
Dustin Carlino
5ed6f2256e also spawn peds around an intersection 2019-04-16 13:37:30 -07:00
Dustin Carlino
9a2699aab9 take a single screenshot (hiding menus and stuff) 2019-04-15 10:07:50 -07:00
Dustin Carlino
72ae49e25f draw real map bg by default now 2019-04-13 16:22:37 -07:00
Dustin Carlino
0772e6e3c8 make_arrow only for PolyLine, simplify and improve the result in most
cases
2019-04-12 15:06:44 -07:00
Dustin Carlino
ab2e37e2ab fix the show_route plugin, enter main state from hovering, not inactive 2019-04-12 12:20:36 -07:00