Dustin Carlino
14cabd3686
remove the old speed controls (used in all trip viz debug mode, which is broken anyway right now, and a/b test mode, which is in hiatus right now anyway)
2019-11-28 13:57:47 -08:00
Dustin Carlino
1a9c78b5fe
tuning a few last things with the speed panel for now
2019-11-28 13:45:08 -08:00
Dustin Carlino
6fcf8d4478
redo layouting of new speed panel. pull absolute coordinates from
...
mockup. looks much closer now
2019-11-28 10:31:55 -08:00
Dustin Carlino
229bac4149
plumb tooltips for image buttons. small refactor making a
...
color+rectangle for an image. organizing NewSpeedControls a bit
2019-11-28 09:55:56 -08:00
Dustin Carlino
d553530ee7
prototype new speed panel. adapting changes from
...
https://github.com/jinzhong2/abstreet/tree/new_speed_panel
2019-11-27 15:42:19 -08:00
Dustin Carlino
e1156a6384
print negative durations properly
2019-11-27 13:20:31 -08:00
Dustin Carlino
3d614ed763
helper for duration to make real-time seconds
2019-11-27 13:16:49 -08:00
Dustin Carlino
2c49d68a0f
last lingering cleanups for Duration / Time types
2019-11-27 13:12:19 -08:00
Dustin Carlino
c6bfab7cde
cutover scenrio-layer stuff to use Time
2019-11-27 12:50:52 -08:00
Dustin Carlino
a5dab493cd
cutover internal sim time to Time
2019-11-27 12:40:49 -08:00
Dustin Carlino
819e27aa5d
cutover sim time (via the API) to time
2019-11-27 11:49:57 -08:00
Dustin Carlino
e109c6b5a4
switch sim analytics to use Time
2019-11-27 11:06:57 -08:00
Dustin Carlino
3b6cc91440
make a new time type, don't touch duration yet
2019-11-27 10:33:58 -08:00
Dustin Carlino
b8bb2667c2
click minimap to warp
2019-11-27 10:10:55 -08:00
Dustin Carlino
c0cfbde4ec
add a bit of padding to the minimap, pick an initial zoom to fit the entire width, and clip using scissor test
2019-11-27 09:55:08 -08:00
Dustin Carlino
082ae0cea1
simple polygon translate API -- no use in taking distances. pt2d isnt natively expressed in meters, and mostly using this for screenspace anyway
2019-11-27 09:15:46 -08:00
Dustin Carlino
de0847073b
start prototyping the minimap. discovering some problems, but a solid
...
start.
2019-11-26 22:03:58 -08:00
Dustin Carlino
b47a186373
unify the two JustDraw things
2019-11-26 13:55:16 -08:00
Dustin Carlino
13b1e86fb7
unify the two button types
2019-11-26 13:41:05 -08:00
Dustin Carlino
ad20f596bf
actually round the rectangles
2019-11-26 11:28:29 -08:00
Dustin Carlino
202cfcf0d6
hack in a mask to change the color of image buttons without backgrounds
2019-11-26 10:59:33 -08:00
Dustin Carlino
c87c043286
unify two button types, and use proper bbox for images
2019-11-25 22:00:36 -08:00
Dustin Carlino
431df09312
fix a crash when changing scenario
2019-11-25 21:39:05 -08:00
Dustin Carlino
188b2fd372
adding in some image buttons for the main menu. no highlighting yet.
...
wrong bounding boxes.
2019-11-25 19:31:39 -08:00
Dustin Carlino
d66daa22f0
adding some hotkeys back to the main menu. not sure how to communicate them yet.
2019-11-25 18:37:59 -08:00
Dustin Carlino
863e587d53
when exiting sim mode, reset to main menu state. reset the stack if we entered from a challenge. this also introduces dev buttons if we entered dev mode
2019-11-25 18:21:55 -08:00
Dustin Carlino
9ba4f83ca4
remove the unused total_width param from set_pos. it's confusing, and will probably change with flexbox soon
2019-11-25 17:58:55 -08:00
Dustin Carlino
dfd036300b
refactor: make text_dims return ScreenDims. also, update the logo image
2019-11-25 17:38:37 -08:00
Dustin Carlino
a4d5aa766b
widget wrapper for drawing text, so we can layout it
2019-11-25 17:19:22 -08:00
Dustin Carlino
b1bc7de2e8
prototype flexbox support via stretch. it unbreaks the challenge picker
...
screen, to start. :)
2019-11-25 16:51:45 -08:00
Dustin Carlino
e3ddd5b3db
new release
2019-11-25 15:37:47 -08:00
Dustin Carlino
e1496acf70
toggle dev mode at runtime
2019-11-25 15:23:17 -08:00
Dustin Carlino
a8aa8f526d
implement the challenge picker screen
2019-11-25 11:54:15 -08:00
Dustin Carlino
69d6aca0ef
switch from wget to curl, since wget isnt installed by default on mac.
...
improve developer instructions a bit. don't crash if scrot doesnt exist.
This partly helps with #3 , but more work still needed
2019-11-25 11:21:43 -08:00
Dustin Carlino
573edbd13e
adding the logo to the title screen and filling out some credits
2019-11-24 19:09:07 -08:00
Dustin Carlino
f0314c31b1
making an... almost rounded rectangle ;)
2019-11-24 18:08:46 -08:00
Dustin Carlino
042db55009
try out a managed GUI state with, gasp, callbacks
2019-11-24 17:53:13 -08:00
Dustin Carlino
3511669c4e
ripped out the old splash screen entirely now, new about screen
2019-11-24 17:05:44 -08:00
Dustin Carlino
305cad0563
stubbed out start to main menu screen
2019-11-24 15:46:45 -08:00
Dustin Carlino
56e2b6f81e
move the screensaver to the title screen
2019-11-24 15:27:59 -08:00
Dustin Carlino
1440a8630b
prototyping a text button, using it for a title screen
2019-11-24 15:23:28 -08:00
Dustin Carlino
941b423b16
make conversion from ScreenPt to Pt2D a bit easier
2019-11-24 14:42:46 -08:00
Dustin Carlino
51bb492953
speed up import of huge_seattle by 90s by computing node order from scratch for bikes
2019-11-24 14:06:55 -08:00
Dustin Carlino
1422554d74
fix the rng for releases, so the prebaked baseline results match
2019-11-24 13:47:00 -08:00
Dustin Carlino
aa4a002fb4
fix the mysterious flipped textures. i thought the UV mapping was the problem, but turns out I was using from_rgba_reversed for some mysterious reason
2019-11-24 08:55:37 -08:00
Dustin Carlino
888e405146
actually, auto-group textures into groups based on size. too tedious otherwise.
2019-11-24 08:52:50 -08:00
Max Shenfield
f89bdbab86
Fix cs2cs call when generating popdat.bin ( #5 )
...
* Fix cs2cs call when generating popdat.bin
I got the following error when running `cs2cs`
```
cannot instantiate source coordinate system
program abnormally terminated
```
[The "+init=esri:1234" syntax is deprecated](https://pyproj4.github.io/pyproj/dev/gotchas.html#init-auth-auth-code-should-be-replaced-with-auth-auth-code ). This just uses
the new "esri:1234" syntax, which runs on Mac OSx.
* Also update the corresponding command comment
2019-11-24 08:02:13 -08:00
Dustin Carlino
a2ea691fa3
fix the 16 texture limit on mac properly, by using texture arrays for icons
2019-11-24 07:38:32 -08:00
Dustin Carlino
3ca998b08e
properly fix the crashing border intersection
2019-11-23 20:27:00 -08:00
Dustin Carlino
0814974885
fix more stuff...
2019-11-23 13:15:05 -08:00