Dustin Carlino
d365213948
Small refactor: {road, lane}.length()
2021-09-26 11:08:44 -07:00
Dustin Carlino
632a527dbc
Consolidate the route results panel on the left side, as a first step towards Mara's design. #743
2021-09-21 09:09:34 -07:00
Dustin Carlino
f14b7eb9e7
Calculating and showing network gaps, wiring up filters. #448
2021-09-20 14:42:02 -07:00
Gedalia Kott
d833f82c73
Fix Issue #692:settings for metric VS imperial distance units are repsected for distance
2021-09-18 14:06:32 -07:00
Dustin Carlino
dd49caec4a
When dragging the canvas is interrupted, clean up the state properly, cancelling the drag. #754
2021-09-17 14:05:14 -07:00
Dustin Carlino
cca701fb3e
Show traffic signals along route. #743
2021-09-17 12:27:00 -07:00
Michael Kirk
83ebc96bb1
drag/drop uses system grabbable/grabbing cursor
2021-09-10 15:17:15 -07:00
Michael Kirk
577192bb89
style row header
2021-09-10 15:17:15 -07:00
Michael Kirk
09fcca8533
left-align vertical drag/drops
2021-09-10 15:17:15 -07:00
Michael Kirk
3b1ed1f82f
fix button v alignment,
...
Also: use standard interaction color when dragging, not the primary
orange color.
2021-09-10 15:17:15 -07:00
Michael Kirk
84b3d87c37
refactor uninted to be builder method, not constructor. it composes better this way
2021-09-10 15:17:15 -07:00
Michael Kirk
a0ea2ba14e
use btn_close instead of "X"s
2021-09-10 15:17:15 -07:00
Dustin Carlino
8147f49093
Work around widgetry focus problem -- allow space or enter to choose a menu entry. Proper fix started and problem described more in #739 .
2021-09-10 13:54:47 -07:00
Dustin Carlino
2598f2a15d
Workaround spinners with f64s that wind up with 0.0000001 drift
2021-09-08 08:00:49 -07:00
Dustin Carlino
27a712bcc3
Remove buttons from map_editor map loader -- very slow and not useful
2021-09-07 15:39:55 -07:00
Dustin Carlino
b231ba602f
Drag-n-drop for waypoints! #743
...
Also some drag-n-drop API tweaks:
- Don't require the caller to set `named()`
- Vertical card layout!
Some UX issues:
- deletion button alignment
- horizontal card alignment off
- sync up highlighting between map and cards
- selection state for a waypoint is meaningless
2021-09-03 13:23:17 -07:00
Dustin Carlino
1c756befa8
Hover on route, to show elevation on line plot. #743
...
Some messiness, but step forward.
2021-09-01 18:20:48 -07:00
Dustin Carlino
30a114a483
Improve the bike network tool's colors. Always draw the fog-of-war, and
...
highlight road types better. #743
2021-09-01 17:07:57 -07:00
Dustin Carlino
ba6f9f4a14
When hovering on the elevation line plot, show the equivalent position
...
on the route. #743
2021-09-01 13:18:30 -07:00
Dustin Carlino
69d965ea3e
Use the new drag-drop widget for traffic signal editor stages!
2021-08-30 09:02:00 -07:00
Dustin Carlino
e924e9d7df
Simplify the buttons for picking a stage in the traffic signal editor,
...
in preparation for dragon-drop.
These were using MultiButtons, a widgetry concept kind of redundant with
DrawWithTooltips. I think at some point we had more visual mapping
between the stage icon and the intersection on the map, to help when
synchronizing many intersections. But the functionality remaining today
just looks like clicking one intersection inside the icon, which is
barely noticeable and not helpful, so sacrifice this to proceed.
2021-08-30 08:41:29 -07:00
Dustin Carlino
1c9aaac17f
Show drop position on the map while dragging lane cards
2021-08-29 16:40:54 -07:00
Dustin Carlino
93fb9a274f
Organize bike lane buffer types into a dropdown ( #724 )
...
Organize lane types in the editor. All buffer types expressed as a dropdown, and lanes for moving/not moving are grouped.
2021-08-25 14:12:17 -07:00
Michael Kirk
ae80eb2509
road editor design tweaks ( #737 )
...
- regroup sections to avoid undesirable inner rounding
- move panel away from edge
- make tabs more obvious with "shadow" on bottom of unselected tabs
2021-08-25 12:21:05 -07:00
Dustin Carlino
9761373c4b
Don't recalculate map hover state in the middle of dragging
2021-08-25 11:47:10 -07:00
Dustin Carlino
6c3ce23e5f
Use a cross-hatch pattern to show edited roads, instead of that bizarre
...
cyan.
For the moment, just to simplify things, bake the edited color into the
bike network layer. Probably will split it out later, maybe moving the
proposal management to the legend row.
2021-08-24 15:50:19 -07:00
Dustin Carlino
78222ffadb
Preserve the same Layers object through all the states of the ungap tool. Do this by a "new" Transition that's allowed to consume the current state.
...
Alternatives considered:
- put Layers in the App struct, since it's shared -- but only for the
ungap tool. It'd be nice to split it into its own standalone crate now,
but it'll be some work to refactor edit mode out of game.
- put Layers in App session
2021-08-24 14:37:16 -07:00
Dustin Carlino
bddbe8af99
Followup to #728 : highlight lanes on map when hovering on the cards
2021-08-24 10:58:04 -07:00
Dustin Carlino
b5015143cb
Small drag-and-drop typo fixes
2021-08-24 10:27:43 -07:00
Michael Kirk
4e93b34ded
restore proper shape/size/color/highlights of lane cards
2021-08-24 10:27:43 -07:00
Michael Kirk
03b15fae43
widgetry: dont grow widget as you're dragging
...
Otherwise the screen bizarrely grows/shrinks as you're dragging.
2021-08-24 10:27:43 -07:00
Michael Kirk
161e962bbc
widgetry: dragondrop inserts at proper place, not swap, fixes offset
2021-08-24 10:27:43 -07:00
Dustin Carlino
050c59e817
Draw the new state if the user would finish dropping.
...
Incorrect math in some cases, but making progress.
2021-08-24 10:27:43 -07:00
Dustin Carlino
7afd428017
Draw the card being dragged near the cursor
2021-08-24 10:27:43 -07:00
Dustin Carlino
b9b0ac5bb7
Very roughly express the road editor lane cards with DragDrop
2021-08-24 10:27:43 -07:00
Dustin Carlino
0d028d1bb7
Dragon drop poof of conscepter
2021-08-24 10:27:43 -07:00
Michael Kirk
9e0fc19bb1
canvas: double click to zoom ( #727 )
2021-08-21 09:56:15 -07:00
Dustin Carlino
4ad652fce5
Use SVG to create a text outline for labels
2021-08-20 15:14:41 -07:00
Michael Kirk
e124f21317
map explorer: add zoom buttons near legend ( #726 )
2021-08-20 12:47:19 -07:00
Dustin Carlino
135e85d06d
Force some distance spinners to render in feet
2021-08-19 10:49:10 -07:00
Dustin Carlino
98a081303f
Fix btn_plain_destructive in day/night mode. Background should be clear, not grey.
2021-08-18 13:54:28 -07:00
Dustin Carlino
ae490b54c9
Only grab OpenGL uniform location once per draw call. Chrome profiling says it's a hot-spot (very slight, but it's quite easy to fix, so...)
2021-08-15 09:51:46 -07:00
Dustin Carlino
fd1480cbac
Make widgetry require less Houdini skills: never mind on downloading new cities gets stuck with autocomplete search.
2021-08-09 14:28:55 -07:00
Dustin Carlino
1787611f56
More ergonomic route sketcher:
...
- still zoom when hovering on points
- more clearly show nodes being dragged
2021-08-08 10:00:44 -07:00
Dustin Carlino
773be88aed
Increase multisampling to fix unzoomed road outline tearing ( #722 )
2021-08-07 21:56:40 -07:00
Dustin Carlino
116198e863
Revive the ability to render in greyscale with the fragment shader, for quicker color scheme tuning...
2021-08-05 15:37:49 -07:00
Dustin Carlino
1585eed66f
Don't keep jamming the same button for the skeletonvator, that doesn't help
2021-08-04 10:51:31 -07:00
Dustin Carlino
06429d0d5f
In the mode shift dashboard, show roads that might be highly used by converted trips... but that're missing bike infrastructure. #448
2021-07-26 10:41:51 -07:00
Dustin Carlino
f6a94e8a58
Allow DrawWithTooltip to return custom data instead of string labels.
...
CloneableAny revived from e35c69f6f3
2021-07-18 14:14:19 -07:00
Dustin Carlino
942f2292fc
Steps towards clicking cells in the problem matrix to explore trips with differences. #600
...
- Add optional clickable labels to DrawWithTooltips
- Wire up problem_matrix to remember the list of trips associated with
each cell
- When clicking a cell, just open one arbitrary example trip
2021-07-18 14:14:19 -07:00