Dustin Carlino
0ab262be99
remove stretch style boilerplate
2020-03-25 10:45:17 -07:00
Dustin Carlino
b6eb46ec04
moving ezgui stuff around a little, cleaning up some of the APIs for
...
instantiating widgets
2020-03-22 23:50:14 -07:00
Dustin Carlino
96d7987c7e
aha, dont need to plumb ScreenRectangle to widgets after all
2020-03-22 21:04:05 -07:00
Dustin Carlino
4df64b4c83
remove last users of ModalMenu. so long, (some variant of) the original widget.
2020-03-22 20:59:44 -07:00
Dustin Carlino
581956222c
refactor some of the downcasting [rebuild]
2020-03-22 16:35:20 -07:00
Dustin Carlino
0e59efe15b
trait-ifying nothing, row, column. the enum is hereby gone!
2020-03-22 16:19:05 -07:00
Dustin Carlino
1682b6c28f
trait-ify Button
2020-03-22 15:20:46 -07:00
Dustin Carlino
10d3c0aa60
get rid of the warping and normal item sliders. do something more manual in the (dev tools only) places using them. going to rethink slider API more carefully later.
...
(removed individual/all PSRC trip viz; these haven't been useful for a
long time, and the people/schedule stuff is kinda replacing it anyway)
2020-03-22 14:55:16 -07:00
Dustin Carlino
67b21a334c
trait-ify dropdowns (generic type plumbed in the right place now)
2020-03-22 14:23:01 -07:00
Dustin Carlino
2b2b30a6bb
express many ezgui widgets as a generic trait.
...
- prepares the API for anyone to implement widgets
- cleans up boilerplate code
- gets rid of hacks with Plot<T>
2020-03-22 14:06:02 -07:00
Dustin Carlino
2712ea8c74
settle on using the common widget ID for everything (except rows/cols).
...
move some non-widget tools to a better module, and rename shaders
directory
2020-03-22 10:48:11 -07:00
Dustin Carlino
1259b42ab5
same for fillers and menus
2020-03-21 18:51:07 -07:00
Dustin Carlino
dbd9dcf5dd
inline sliders in the tree directly
2020-03-21 18:41:01 -07:00
Dustin Carlino
acbeb2b499
expose some settings for interactively tuning the dot / heat map of people. this way is buggy (controls constantly being recreated), but a start.
2020-03-21 17:42:17 -07:00
Dustin Carlino
7edb8a6190
rename Widget -> WidgetImpl, ManagedWidget -> Widget
2020-03-20 23:41:07 -07:00
Dustin Carlino
81c5ae3700
consolidate ezgui internals a little, and start a little bit of rustdoc
2020-03-20 18:05:50 -07:00
Dustin Carlino
9644ff24be
remove the last button constructor, except for the inactive ones
2020-03-20 15:40:43 -07:00
Dustin Carlino
b08c2caa12
wittle down more old button constructors. also improve splash screen style.
2020-03-18 11:45:20 -07:00
Dustin Carlino
2ae6992a3e
continue button refactor
2020-03-16 12:20:37 -07:00
Dustin Carlino
fedacfe202
reduce verbosity of constructing text widgets [rebuild]
2020-03-13 23:06:52 -07:00
Dustin Carlino
c316d918d7
can only type in text boxes with focus
2020-03-09 13:23:03 -07:00
Dustin Carlino
e8bb993dfd
make dropdown menus work reasonably: fix z value, add background, recalculate button outline
2020-03-09 09:40:59 -07:00
Dustin Carlino
5a3263df47
quick fixes after ux study:
...
- double finish button on signal editor
- reset ACS on each tutorial stage
2020-03-07 15:59:45 -08:00
Dustin Carlino
a8f862f83d
fleshing out the ezgui demo, and fixing a little bug with checkboxes
2020-03-06 10:31:08 -08:00
Dustin Carlino
476751147c
starting a new dropdown widget and using it for picking walk buttons.
...
avoids the cloneable mess. but has lots of new little issues...
2020-03-05 15:00:42 -08:00
Dustin Carlino
54f4597166
just refactoring some places that mutably build up rows/cols
2020-03-04 16:13:17 -08:00
Dustin Carlino
250b59bfee
generalize checkboxes slightly. use in demo
2020-03-04 15:55:44 -08:00
Dustin Carlino
0fd4de749d
enter signal metadata via a form with multiple textboxes at once. needs
...
work.
2020-03-04 15:33:28 -08:00
Dustin Carlino
08cd956faa
filling out the trip timeline a bit more
2020-03-03 12:12:42 -08:00
Dustin Carlino
a301343159
add a setting to scale up on-screen UI things [rebuild]
2020-03-02 12:02:25 -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
5e85eee935
clean up dev tools mode, removing ModalMenu dependencies and modernizing
...
different UI things
2020-02-27 10:38:48 -08:00
Dustin Carlino
06759dc58c
new tutorial flow [rebuild]
2020-02-25 12:17:19 -08:00
Dustin Carlino
bba71844fd
small tweaks after a quick round of UX testing: [rebuild]
...
- flip order of +.1s, +1h buttons to match qwerty keybindings
- arrow keys for changing speed
- escape key applies to info panels first
- click out of some Composites to cancel them
2020-02-23 11:37:09 -08:00
Dustin Carlino
1268890b75
revamp time warp screen
2020-02-21 12:57:51 -08:00
Dustin Carlino
64cf4c5d69
replace components in an existing Composite. use for jump to time. maybe this will be convenient in lots of other places too...
2020-02-21 12:19:24 -08:00
Dustin Carlino
b7b607a6b6
eradicate DrawBoth
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
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
abba4be202
filter out overlays intelligently
2020-02-01 11:39:48 -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
cfbaf80fe3
autoscroll signal editor to show the current phase
2020-01-29 15:59:56 -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
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
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
76f5cde433
nicer text button style for the top bar
2020-01-23 15:35:08 -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
67ebb76f94
tiny refactor of rounded_rectangle. pad time panel
2020-01-20 12:36:27 -08:00