Dustin Carlino
b3917bf17b
mechanical rename of UI -> App
2020-03-02 09:51:20 -08:00
Dustin Carlino
042bff7971
refactoring this checkbox pattern... wound up also refactoring how
...
widgets are found within Composites [rebuild]
2020-02-28 19:06:59 -08:00
Dustin Carlino
a17f46703c
some super basic way to enable/disable stopping for traffic jams in jump-to-time
2020-02-28 18:25:20 -08:00
Dustin Carlino
8fb1f2fa37
cut off the active agent graph properly. dont assume anything about the rest of the day. also reset prebaked in a missing case
2020-02-28 13:11:31 -08:00
Dustin Carlino
0c89b98525
show trip summary after an agent finishes
2020-02-28 12:49:17 -08:00
Dustin Carlino
5e85eee935
clean up dev tools mode, removing ModalMenu dependencies and modernizing
...
different UI things
2020-02-27 10:38:48 -08:00
Dustin Carlino
1cb11e2edc
make unzoomed agent radius more explicitly dependent on camera. no
...
visible change.
2020-02-26 14:36:19 -08:00
Dustin Carlino
e19f88cd40
experiment with finding sources of gridlock, exposed as a new heatmap
2020-02-26 12:13:28 -08:00
Dustin Carlino
64bde1e4a3
multiple hotkeys
2020-02-25 14:17:49 -08:00
Dustin Carlino
682c9e76f8
trip info panel had no header (and thus way to close it).
2020-02-25 11:01:27 -08:00
Dustin Carlino
d17be067e0
select entire roads/intersections in unzoomed edit mode, click to zoom
...
in
2020-02-24 16:41:43 -08:00
Dustin Carlino
cbfd0259b3
hide building paths in unzoomed mode
2020-02-24 15:36:29 -08:00
Dustin Carlino
d1757873e7
handle (some?) trip transitions in info panels [rebuild]
2020-02-24 15:26:22 -08:00
Dustin Carlino
8c26109b13
dont check the 'following car' tutorial bit until the panel is actually opened
2020-02-24 14:39:29 -08:00
Dustin Carlino
3ed6a8e6db
few small tweaks:
...
- adjust minimap agent size
- info panel is explicit about stop signs
- adjust unzoomed threshold
2020-02-20 13:19:50 -08:00
Dustin Carlino
2a747ef46b
tooltips for UI elements only. don't need the OSD fullscreen now.
2020-02-20 11:24:50 -08:00
Dustin Carlino
848347a9b5
change up agent meters
2020-02-19 08:23:06 -08:00
Dustin Carlino
e713013cf9
improve lane editor. click to edit different lanes
2020-02-18 19:07:46 -08:00
Dustin Carlino
f28961e9c4
add padding to OSD
2020-02-18 17:43:00 -08:00
Dustin Carlino
a88a836752
adjust unzoomed colors
2020-02-18 17:33:41 -08:00
Dustin Carlino
b4017cc0e2
put action buttons higher up in info panels
2020-02-18 17:31:29 -08:00
Dustin Carlino
d112707261
more info about trips to/from bldgs and intersections [rebuild]
2020-02-18 15:15:31 -08:00
Dustin Carlino
f90ac143e0
put IDs back in info panels, in a less scary way. make histogram a bit
...
smaller, to stop covering new scorecard
2020-02-18 12:14:05 -08:00
Dustin Carlino
8434369d94
simplify representation of intersection edits, to allow proper undoing
2020-02-18 10:45:50 -08:00
Dustin Carlino
254d07223e
option to invert scroll direction
2020-02-18 07:30:32 -08:00
Dustin Carlino
bd51208684
name intersections in info panels better, and avoid horizontal scrolling
...
in most?? cases
2020-02-17 17:07:25 -08:00
Dustin Carlino
d56803a12a
include ongoing trips in measured trip times. adjust wording of
...
"finished trips" things.
2020-02-17 15:58:27 -08:00
Dustin Carlino
9a9619ec32
moving game assets to data/system, to more easily bundle in wasm
...
[rebuild]
2020-02-15 16:19:23 -08:00
Dustin Carlino
152568476c
no more Text::prompt
2020-02-13 13:57:48 -08:00
Dustin Carlino
b2e21ea856
disable more controls early in tutorial. change tutorial goal text in a
...
few more cases.
2020-02-13 13:23:48 -08:00
Dustin Carlino
1f0b225b6b
cleaning up trip_details
2020-02-12 16:17:41 -08:00
Dustin Carlino
691dcdfbbc
also revamp panels for other objects, except for the trip details part
2020-02-12 12:22:43 -08:00
Dustin Carlino
fc47d2b948
work on info panels a little more. lanes are looking pretty good now.
2020-02-12 11:16:05 -08:00
Dustin Carlino
8b50492d42
trying out a different look for info panel contents. mostly just lanes
...
right now
2020-02-11 17:04:25 -08:00
Dustin Carlino
66c983d119
refactor away DrawCtx, just pass UI
2020-02-10 13:28:03 -08:00
Dustin Carlino
f359995a27
adjust the indication of some selected objects
2020-02-10 13:16:39 -08:00
Dustin Carlino
604c87f2c7
new release. also sneak in tiny popup menu fix for the next round
2020-02-09 17:32:03 -08:00
Dustin Carlino
1cd7629dfa
dont reload prebaked data unnecessarily [rebuild]
2020-02-09 17:15:33 -08:00
Dustin Carlino
e46cd7b677
cache SVGs
2020-02-08 16:27:45 -08:00
Dustin Carlino
c51c37caba
draw the OSD better [rebuild]
2020-02-08 10:36:44 -08:00
Dustin Carlino
da59362dfe
fix z values, especially for tooltips. also refactor Button::new
2020-02-08 10:36:44 -08:00
Dustin Carlino
12826fe118
start dismantling DrawBoth, and make the JustDraw API nicer
2020-02-08 10:36:44 -08:00
Dustin Carlino
3ff56f54cf
prepping for a caching layer by changing render API, plumbing ctx...
...
getting close
2020-02-08 10:36:44 -08:00
Dustin Carlino
bdb4ba43ba
less terrible stop sign editor [rebuild]
2020-02-05 16:54:10 -08:00
Dustin Carlino
a878f57a42
refactor rotating colors, and use a different palette for the 10 bucket case
2020-02-05 14:53:22 -08:00
Dustin Carlino
0909344c15
minimap tuning: add vertical separator, make the dropdown appear by the
...
button
2020-02-05 12:15:37 -08:00
Dustin Carlino
17ebb506b5
draw previous state underneath wizards, so everything doesnt vanish
2020-02-04 12:52:47 -08:00
Dustin Carlino
59f2f03acb
refactoring some UI-related colors
2020-02-03 11:14:17 -08:00
Dustin Carlino
116d0dfef0
revamp tutorial mode as a gameplay mode underneath sandbox. few small
...
bugs left after the transition. unlocks more fixes and improvements
2020-02-02 14:17:27 -08:00
Dustin Carlino
abba4be202
filter out overlays intelligently
2020-02-01 11:39:48 -08:00
Dustin Carlino
8228f53d02
make it easier to debug objects by warping to them, draw turn cycler
...
arrows a little more successfully
2020-01-31 14:06:37 -08:00
Dustin Carlino
800008dc03
making the histogram more clear about same trips
2020-01-30 15:33:27 -08:00
Dustin Carlino
da92518d62
align all overlay panels above the minimap
2020-01-30 14:38:26 -08:00
Dustin Carlino
a0ec59b6c3
remove the modalmenu from traffic sig challenge. show target goal always. pop up score when all trips are done
2020-01-30 12:00:21 -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
43ea723111
tune lane editor style, and refactor some widget centering patterns
...
[rebuild]
2020-01-29 12:16:18 -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
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
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
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
89a269a59e
consolidating other button styles, and adjusting signal editor colors
2020-01-23 16:05:35 -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
f8501ace6a
button in info panels to follow an agent, aka, unpause sim
2020-01-22 15:17:33 -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
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
dfd8d43b83
tutorial stage introducing the minimap. point to widgets more precisely.
2020-01-21 15:01:10 -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
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
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
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
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
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
0835e58bef
use floating panels for signal diagrams too. no more smushing into the
...
OSD
2020-01-15 11:38:05 -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
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
eb0fa982c6
click to warp to intersection whose demand is being shown
2020-01-14 14:42:14 -08:00
Dustin Carlino
801d4f47c9
simpler top-center panel
2020-01-14 14:15:22 -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
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
1f01054077
draw a legend for intersection demand too
2020-01-13 10:00:25 -08:00
Dustin Carlino
f78bc6a5ef
simplify top-center panel in challenge mode
2020-01-12 10:53:32 -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
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
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
f7c2911671
[rebuild] to test windows info panel click bug
2020-01-10 10:01:26 -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
de21ee0727
show keybindings in info panel
2020-01-09 15:43:35 -06:00
Dustin Carlino
53f33a31e4
hide IDs unless in dev mode
2020-01-09 11:50:56 -06:00
Dustin Carlino
6203ff70f0
make it easier to find all bus stops
2020-01-08 11:23:00 -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
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
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
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
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
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
3ddae0517e
put action buttons in the info panel directly; scrap the modal menu
2019-12-24 15:50:13 -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
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
194dbae66f
embed Scroller functionality in Composite directly. use for analytics panel
2019-12-22 10:26:48 -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
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
49a0f7abd6
yay, delete old gunky attempts at scrolling
2019-12-20 10:30:56 -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
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
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
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
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
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
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
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
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
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
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
b9fd59c930
remove some debug functions from UI, document them in dev guide
2019-12-11 10:29:08 -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
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
e567d14fc2
silently add hotkeys to challenge picker screen for my own sanity
2019-12-07 13:29:34 -08:00
Dustin Carlino
d0cdf2412d
record intersection delays in analytics
2019-12-04 10:48:36 -08:00
Dustin Carlino
10e44dd0b8
move dev flag into options
2019-12-03 14:36:51 -08:00
Dustin Carlino
a043a9ba05
clean up more of abstutil path/filesystem API
2019-12-03 09:59:43 -08:00
Dustin Carlino
720f9b8b30
similar for writing
2019-12-02 20:41:09 -08:00
Dustin Carlino
808c3da141
panic early with a nice error if we cant read a binary or json file
2019-12-02 20:35:20 -08:00
Dustin Carlino
b533377159
come up with some building address when there are no building tags
2019-12-02 15:00:53 -08:00
Dustin Carlino
3267ec4068
switch some UI stuff to use new analytics, get rid of the old FinishedTrips cruft. remove the a/b test scoreboard for now; not sure what info is needed, and a/b test mode is a bit dormant anyway now
2019-12-02 14:55:47 -08:00
Dustin Carlino
f483d7ea85
some analytics on how long people spend parking. need a histogram still
2019-12-02 12:15:38 -08:00
Dustin Carlino
200b3c8c95
avoid crash in minimap
2019-12-01 15:37:26 -08:00
Dustin Carlino
8039680b95
showing start, current position, end of trip in the new explorer too.
...
cutting over to this instead of the old warping item slider one
2019-12-01 14:24:11 -08:00
Dustin Carlino
dbd83d0805
draw trip phase paths as traces, not with road colorer, to get that vital detail
2019-11-29 14:58:56 -08:00
Dustin Carlino
8a93265a4b
draw phases of a trip route
2019-11-29 14:04:09 -08:00
Dustin Carlino
6c6113d1bc
ripping text data out of canvas
2019-11-28 22:41:08 -08:00
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
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
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
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
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
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
e1496acf70
toggle dev mode at runtime
2019-11-25 15:23:17 -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
e7bda09978
simple perf boosts: avoiding some unnecessary GPU uploads every frame
2019-11-22 14:06:44 -08:00
Dustin Carlino
6fa9003898
turbocharge speed controls in dev mode
2019-11-20 12:52:51 -08:00
Dustin Carlino
463ed7022e
small fixes/cleanups to map layer:
...
- print highest cost in heatmap over all turns
- rm defunct label support for roads/bldgs
- trim out unused methods from Map
- making spawner go through sim layer to get paths, consolidating a bit
2019-11-18 10:33:36 -08:00
Dustin Carlino
f840175ef4
display pathfinding cost in info panel and heatmap
2019-11-16 15:16:28 -08:00
Dustin Carlino
4c9975f8b0
be a little more precise with PathRequest
2019-11-14 19:18:22 -08:00
Dustin Carlino
0f427542c7
putting in dummy paint buttons to edit mode
2019-11-13 08:54:25 -08:00
Dustin Carlino
b24100caba
collect and draw info on road throughput per some bucket of time. much
...
work needed.
2019-11-10 14:38:26 -08:00
Dustin Carlino
965037ce77
mvp of visualizing interactive sources/sinks
2019-11-08 13:16:22 -08:00
Dustin Carlino
8fa813f5c2
match agents spawning somewhere on a lane as a border intersection, so trip counting works. much simpler than the full refactor attempted in another branch.
2019-11-08 12:23:55 -08:00
Dustin Carlino
fff1068689
remove text bg in speed panel. adjust text API to remove bg color.
2019-11-08 11:56:29 -08:00
Dustin Carlino
de88805ec0
move some associated-stuff coloring to debug mode
2019-11-08 11:36:46 -08:00
Dustin Carlino
c6ed4a687b
adjusting how routes are shown -- thick when zoomed out, thin and dashed
...
when zoomed in
2019-11-08 09:32:03 -08:00
Dustin Carlino
e82abafb70
change gridlock score to use number of finished trips
2019-11-07 08:59:29 -08:00
Dustin Carlino
5b50cac80e
log scale for speed slider. thanks julian ;)
2019-11-06 14:26:10 -08:00
Dustin Carlino
255a7f735d
very basic way to hover over series in a plot
2019-11-06 13:14:18 -08:00
Dustin Carlino
af7112592f
show blank plots, rather than skipping out when there's no data. handle
...
the current time and lots of edge cases
2019-11-05 16:40:14 -08:00
Dustin Carlino
21724aa826
moving generic plotting stuff away from trip stats
2019-11-05 13:13:09 -08:00
Dustin Carlino
7eeebb72ec
displaying different bus arrival info, and experimenting with storing the data differently. no prebaking yet.
2019-11-04 10:41:50 -08:00
Dustin Carlino
3ba33e4bd0
add some initial info on trips to/from different locations to info panel
2019-11-02 16:34:10 -07:00
Dustin Carlino
e7068867fb
fix bugs in scenario viz mode and draw demand arrows a little better
2019-11-02 16:01:02 -07:00
Dustin Carlino
db86a24cda
draw button text in the OSD (not owned by ezgui), not as a mouse tooltip
2019-11-01 11:45:02 -07:00
Dustin Carlino
e9e6664f61
using popup text box in a few more places to show important messages
2019-11-01 11:33:15 -07:00
Dustin Carlino
50ee547994
adding some help text to all gameplay modes
2019-10-31 15:30:12 -07:00
Dustin Carlino
7833346fa2
cleaning up speed controls
2019-10-30 18:15:03 -07:00
Dustin Carlino
a94e210c22
changing speed controls to be a panel of manually arranged buttons. not
...
done, but functionality is cutover. fix details later.
2019-10-30 15:01:11 -07:00
Dustin Carlino
1d5064ca1b
track all bus arrivals, show distribution. track total number of
...
passengers per route
2019-10-29 22:11:56 -07:00
Dustin Carlino
a5892daedb
add a new lane type for road closures
2019-10-29 17:04:57 -07:00
Dustin Carlino
0575e57584
tweaks to buttons
2019-10-29 15:45:26 -07:00
Dustin Carlino
aae6d6d998
cleanup: collapse the old separated modal menu groups
2019-10-29 15:37:19 -07:00
Dustin Carlino
c2fd82328a
move more controls under a general menu
2019-10-29 15:31:55 -07:00
Dustin Carlino
7574869798
tie together a popup menu and a button in a really simple way. move some
...
info and location things there
2019-10-29 15:14:17 -07:00
Dustin Carlino
49ecf2e792
move time stepping controls to speed panel, where they belong
2019-10-29 13:08:59 -07:00
Dustin Carlino
6f50cbaa30
finishing the big cutover from stable to original IDs. main path works,
...
now looking at map editor
2019-10-28 12:40:09 -07:00
Dustin Carlino
ee02ff9944
display when a bus last served a stop. move some of these analytics to
...
be owned by sim
2019-10-26 12:33:00 -07:00
Dustin Carlino
6f3f9d085f
weird heatmpish thing of all paths to/from a border or building. not too
...
useful.
2019-10-24 12:52:30 -07:00