Dustin Carlino
1ffcd1e5b5
make web fill the entire browser. fix the inverted mouse-wheel
...
direction.
2020-02-26 10:30:41 -08:00
Dustin Carlino
64bde1e4a3
multiple hotkeys
2020-02-25 14:17:49 -08:00
Dustin Carlino
06759dc58c
new tutorial flow [rebuild]
2020-02-25 12:17:19 -08:00
Dustin Carlino
fbb4140181
tiny wasm cleanup. havent figured out serde problem yet. [rebuild]
2020-02-25 10:35:58 -08:00
Dustin Carlino
0f19cbab55
glsl 300 isnt working on mac. go back to 140 on native, and only use 300 for wasm. [rebuild]
2020-02-25 10:02:40 -08:00
Dustin Carlino
da1731ccb2
start with the realistic scenario by default. give extra info about some
...
scenarios by adding tooltips in the popup menus
2020-02-24 11:27:22 -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
95b9731dee
rip out all of the support for textures from ezgui. no more uber-shader!
...
\o/
2020-02-20 18:23:00 -08:00
Dustin Carlino
8693c4f0d2
upgrade to latest lyon, which has a new fill tesselator
2020-02-20 18:12:09 -08:00
Dustin Carlino
266ca19970
adjust speed controls, and make note of keybindings in the tooltip
2020-02-20 13:30:33 -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
e79790249e
separators in meters [rebuild]
2020-02-19 13:44:09 -08:00
Dustin Carlino
848347a9b5
change up agent meters
2020-02-19 08:23:06 -08:00
Dustin Carlino
f28961e9c4
add padding to OSD
2020-02-18 17:43:00 -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
254d07223e
option to invert scroll direction
2020-02-18 07:30:32 -08:00
Dustin Carlino
d292e29ad0
get the game crate running in wasm. bundle in lots of data files, fake out a few more IO things, glue timer println's to console log
2020-02-15 16:44:06 -08:00
Dustin Carlino
bdb0844512
make game crate compile under wasm
2020-02-14 16:15:44 -08:00
Dustin Carlino
b2c92ab8f9
upstreaming some changes for wasm here
...
- use instant crate
- bring in the wasm ezgui backend and necessary setup tweaks
- upgrade stdweb
but no map editor build magic yet
2020-02-14 14:28:25 -08:00
Dustin Carlino
152568476c
no more Text::prompt
2020-02-13 13:57:48 -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
67846ee2ca
X buttons in popup menus werent clickable, fix by unconsuming the event
2020-02-11 16:25:44 -08:00
Dustin Carlino
606325ac77
make the glow and glium backends toggleable at build-time
2020-02-10 20:23:12 -08:00
Dustin Carlino
0b56ef6dea
clipping support
2020-02-10 20:10:58 -08:00
Dustin Carlino
b2e9709c33
fixed the broken drawing, needed indices count, not vertices
2020-02-10 19:51:05 -08:00
Dustin Carlino
7267410ac0
aha, fixed size problem, gotta update viewport
2020-02-10 19:41:15 -08:00
Dustin Carlino
34fdf6a5e5
got stuff displaying! \o/ buggily
2020-02-10 19:28:23 -08:00
Dustin Carlino
dcca8e7147
WIP upload and draw buffers. doesn't work yet. I miss glium's nice
...
abstractions. :(
2020-02-10 17:44:59 -08:00
Dustin Carlino
5205a0c43e
starting a stubbed out port to glow (glutin dependencies still). it
...
uploads the shaders, clears the window out so far!
2020-02-10 16:59:02 -08:00
Dustin Carlino
c5a055cbb6
rearrange ezgui internals to isolate all glium/glutin specifics into one
...
module
2020-02-10 16:18:31 -08:00
Dustin Carlino
82f149db56
X button on popup menus
2020-02-10 13:38:14 -08:00
Dustin Carlino
9c5ea334e0
avoid a crash with empty text (happening in building info panels, for example) [rebuild]
2020-02-10 10:10:05 -08:00
Dustin Carlino
6ff0c85a14
cutover to use winit's own event loop. thanks to goddessfreya for help
...
fixing the animation timing in
https://github.com/rust-windowing/winit/pull/1450#pullrequestreview-355698895
2020-02-10 10:01:49 -08:00
Dustin Carlino
935e42aee6
upgrade glium and glutin
...
- reference events exported from glutin as winit events, which will ease a transition to wasm (where winit is used with glow, not glium)
- also winit stopped requiring a dance to convert logical to physical sizes, so stop tracking dpi!
2020-02-09 10:56:51 -08:00
Dustin Carlino
62fb7bfd95
avoid unnecessary polygon transformations when adding SVGs to things.
...
rotate() requires center(), which is actually a bit expensive because of
some paranoia about dupe pts.
2020-02-08 17:08:08 -08:00
Dustin Carlino
4660dd077c
rip out the old support for mapping UV coordinates onto a polygon
2020-02-08 16:48:01 -08:00
Dustin Carlino
e46cd7b677
cache SVGs
2020-02-08 16:27:45 -08:00
Dustin Carlino
4f79339b0f
adjust plot axes and mouseover
2020-02-08 14:08:26 -08:00
Dustin Carlino
db65e1d41f
slightly less inefficient draw_blocking_text
2020-02-08 13:52:29 -08:00
Dustin Carlino
0fc864ee51
limit text cache size. work on build scripts again [rebuild]
2020-02-08 13:25:48 -08:00
Dustin Carlino
a5e9505fd2
manually add padding to text, making it look reasonably usable. cutover!
...
[rebuild]
2020-02-08 13:08:31 -08:00
Dustin Carlino
5a1e54f40e
override dims of text-based things. kinda fixes some problems, but...
2020-02-08 10:36:44 -08:00
Dustin Carlino
f262317b7e
trying to sort out line height
2020-02-08 10:36:44 -08:00
Dustin Carlino
c51c37caba
draw the OSD better [rebuild]
2020-02-08 10:36:44 -08:00
Dustin Carlino
4b95f34209
make loading screen draw its bg properly
2020-02-08 10:36:44 -08:00
Dustin Carlino
fad4cdbda2
plumb font directory so it'll work anywhere, but still would prefer to bundle binary data properly
2020-02-08 10:36:44 -08:00
Dustin Carlino
6268b291b9
escape svg text
2020-02-08 10:36:44 -08:00