Commit Graph

640 Commits

Author SHA1 Message Date
Dustin Carlino
b0a56abb6e no more prompt in some of the popups, adjust the menu coloring, cancel
popups by clicking on the map
2020-02-04 13:41:09 -08:00
Dustin Carlino
7f82241ed9 put some popup menus beneath their buttons 2020-02-04 13:25:53 -08:00
Dustin Carlino
28d593797a overhaul fullscreen layouts: splash menu, about, challenge picker,
sandbox dashboards. I think I understand enough of the tricks now.
2020-02-03 16:13:40 -08:00
Dustin Carlino
92c2fca55e make the details button in signal challenge inactivate 2020-02-03 12:01:13 -08:00
Dustin Carlino
acef70add0 draw after update events [rebuild] 2020-02-02 22:16:02 -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
78344ee2a4 simplify traffic signal challenge's communication of main score. move
count/duration comparators to a more general place.
2020-01-30 10:49:20 -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
8a966395af prevent a crash with spawning agents around intersections. tiny tutorial tweaks 2020-01-28 14:33:55 -08:00
Dustin Carlino
e733fe9d94 plumb real time passed through Update event, just base off of that 2020-01-28 09:39:44 -08:00
Dustin Carlino
bef513ec8b inactive buttons in tutorial mode 2020-01-27 15:22:53 -08:00
Dustin Carlino
52e921ff66 tune miter explosion threshold for plots 2020-01-25 14:30:28 -08:00
Dustin Carlino
dea77369a5 fix crash when an info panel becomes smaller in a direction and scroll offset was too big 2020-01-25 14:25:47 -08:00
Dustin Carlino
d3b2055b8f plot grid lines 2020-01-25 13:28:50 -08:00
Dustin Carlino
6d016cd01b stop blindly plumbing through no-op events after any input is used. do
it more explicitly in just a few places.

fixes crash when cycling through turns while sim is running.

this makes modal menus appear laggy, but that's fine; phasing those out
anyway.
2020-01-23 17:11:29 -08:00
Dustin Carlino
89a269a59e consolidating other button styles, and adjusting signal editor colors 2020-01-23 16:05:35 -08:00
Dustin Carlino
76f5cde433 nicer text button style for the top bar 2020-01-23 15:35:08 -08:00
Dustin Carlino
fd0cdb4fdb skip empty warps 2020-01-22 15:42:10 -08:00
Dustin Carlino
bdd05ee1a7 point out the car to follow 2020-01-22 15:36:17 -08:00
Dustin Carlino
75281ed354 when we change states, immediately run through a round of no-op event(). this lets us immediately draw a WizardState without having to flail the mouse a bit to trigger a first event.
(also, fix release script again)
2020-01-22 11:47:06 -08:00
Dustin Carlino
95a84fd26a tweaking rustfmt options; the long literal string vecs in tutorial look awful 2020-01-21 15:20:02 -08:00
Dustin Carlino
318faacbdb less silly scrollbar colors 2020-01-21 15:06:40 -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
67ebb76f94 tiny refactor of rounded_rectangle. pad time panel 2020-01-20 12:36:27 -08:00
Dustin Carlino
2c5030926c add outline to any widget. use to outline popup menus a bit 2020-01-19 14:18:38 -08:00
Dustin Carlino
1e49d4b6eb adjust parking heatmap color. start changing sandbox mode's top-center
panel
2020-01-19 14:04:59 -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
1c3b7fe52b cut down the places populating covered_areas. mainly Composite should do it, being aware of clipping. some temporary exceptions remain. 2020-01-17 13:58:33 -08:00
Dustin Carlino
14596d00ea lock down many widgets from being used outside of Composites 2020-01-17 13:50:13 -08:00
Dustin Carlino
3cf916a2bc adjust info panel dims slightly [rebuild] 2020-01-16 18:19:30 -08:00
Dustin Carlino
aff092776e fix hidpi issue ONCE AND FOR ALL. tested successfully on linux and
windows. [rebuild]
2020-01-16 10:38:01 -08:00
Dustin Carlino
bb01c30b9d scale scrollbar length to show how much stuff is actually scrollable 2020-01-15 12:07:25 -08:00
Dustin Carlino
a349eb330b fix flex wrapping and other weird issues 2020-01-15 11:21:32 -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
8eecb6e190 draw the scrollbars outside the clip 2020-01-14 16:50:26 -08:00
Dustin Carlino
b348e5d393 position the scrollbars so that theyre always visible. is kind of
broken.
2020-01-14 16:46:45 -08:00
Dustin Carlino
851e12f432 simplify some code without changing behavior 2020-01-14 15:57:21 -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
f613b003a4 fix scissor DPI issue once and for all? the math was backwards [rebuild] 2020-01-14 10:50:18 -08:00
Dustin Carlino
3482d61c0d attempt to detect hidpi changes? [rebuild] 2020-01-13 19:13:00 -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