Dustin Carlino
d5312fabd4
remove the show/hide feature from ModalMenus. ModalMenus are on the way out, the icon is often covering stuff up, and now we can delete some old pngs
2019-12-18 16:26:28 -08:00
Dustin Carlino
7ad40959ca
adjust all of the UI panels...
2019-12-18 16:20:14 -08:00
Dustin Carlino
ea59c84f6b
start a more general top-center panel for freeform mode
2019-12-18 16:06:52 -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
959a89e81c
dont serialize paths of yet-to-be-spawned stuff. drastically reduces savestate size.
2019-12-17 18:08:59 -08:00
Dustin Carlino
a1ff95e80a
exploring the feasibility of recording prebaked savestates (to use for
...
quick previews in edit mode). reduced size of savestates significantly
by ommitting analytics...
2019-12-17 16:36:29 -08:00
Dustin Carlino
892e0592e1
adjust rendering of parked cars
2019-12-17 15:55:47 -08:00
Dustin Carlino
dfa1b82c70
stop adjusting agent colors when zoomed in. just one fixed scheme right now. acs just for unzoomed/minimap. get rid of the "arbitrary colors" scheme
2019-12-17 15:50:09 -08:00
Dustin Carlino
75f2b46f08
implement yuwen's car colors and turn indicators
2019-12-17 15:29:36 -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
9aa4fda837
overhaul color scheme. no more dynamic picker or saving. sometimes
...
generate an easily editable JSON file.
2019-12-17 11:05:07 -08:00
Dustin Carlino
e893e6b98c
add a flag to override DPI, so we can tune on mac
2019-12-16 19:09:02 -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
8ced649b62
try a different pattern, where callers keep ownership of the Slider, instead of Composite. lots of plumbing, but it's hidden away, so this seems like an improvement.
2019-12-16 14:13:08 -08:00
Dustin Carlino
2bdd7bef74
switching speed panel to Composite
2019-12-16 13:41:17 -08:00
Dustin Carlino
9a702d5c79
an easy one: use flexbox Composite on splash screen. can't quite express
...
the centering
2019-12-16 10:27:52 -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
1e9f14f62d
use the new Composite for time controls
2019-12-15 18:42:14 -08:00
Dustin Carlino
d2a18069e7
experiment with using ManagedWidgets and flexbox for AgentMeters.
...
crazy inefficient, but the API is darn nice
2019-12-15 17:09:41 -08:00
Dustin Carlino
97c8a84efb
switching out lane editing icons for yuwen's nice ones
2019-12-15 11:06:59 -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
90fcfbc1ea
start with the simulation playing by default. part of #31 and something on the long list of UX issues anyway
2019-12-14 21:02:21 -08:00
Dustin Carlino
9c879ab488
click to toggle signal priority and stop signs. key didnt make sense, because no way to open an info panel for those objects
2019-12-13 15:52:23 -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
e307e1f56d
only need to prebake once per map+scenario
2019-12-13 13:57:27 -08:00
Dustin Carlino
bb09f4aa72
remove chokepoints overlay (doesnt say anything meaningful) and bike
...
path costs overlay (was used for debugging why bike lanes werent being
used a while ago)
2019-12-13 12:20:21 -08:00
Dustin Carlino
10e0b229a5
previous fix exposed problem entering the time warp state, need to make sure to switch to animation mode upon entry
2019-12-13 11:51:21 -08:00
Dustin Carlino
33bd713609
fix the weirdness with clicking in the info panel to choose actions. the
...
click event was getting immediately reused after exiting the panel,
causing the panel to reappear. problem was some widget stuff looking for
mouse-down events. instead they should look for mouse-up.
2019-12-13 11:47:02 -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
bd557ef4bb
move savestate tools in debug mode to modal menu, getting rid of another MenuUnderButton
2019-12-12 14:12:14 -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
7d53f536d4
fix up speed controls a bit after yesterday's move. closes #23
2019-12-12 13:16:53 -08:00
Dustin Carlino
ed2f703e85
add some logging to debug #19
2019-12-12 10:35:51 -08:00
Dustin Carlino
dc2cc81249
make Timer methods and ModalMenu take &str or String
2019-12-12 10:25:48 -08:00
Dustin Carlino
ee598b6ae4
round of clippy. not fixing everything.
2019-12-11 16:17:15 -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