Dustin Carlino
7ff9a90516
use colored checkboxes in plot too. generate the shape programatically.
2020-04-06 14:45:22 -07:00
Dustin Carlino
ebf31c33e6
preserve plot settings over time. also dropdowns
2020-04-06 14:05:59 -07:00
Dustin Carlino
5868fe4736
let plots have a chance to update themselves. hacky.
2020-04-06 12:16:54 -07:00
Dustin Carlino
694b1f6cc9
prep for all plots to have toggleable series.
2020-04-06 11:41:06 -07:00
Dustin Carlino
fadae3aa85
improve checkbox API, use it for colored minimap checkboxes
2020-04-06 11:12:23 -07:00
Dustin Carlino
696077a460
new release
2020-04-05 18:27:00 -07:00
Dustin Carlino
3e462cda90
cargo fmt, mostly just to trigger [rebuild]
2020-04-05 18:20:19 -07:00
Orestis
ec29ade70e
Pandemic modeling ( #46 )
...
* i think I managed to add a field that analyses who stands at a bus stop
* draining the people at waiting a bus stop in analytics and resturning the stopid, pedestrianid and times of arrival and leave
* trying to add sccache to see if it speeds up the compil
* small update
* need libm to have the erf function
* added pandemic stuff
* must check probabilities bug with them
* removed explicit sane state and refactored probas to correct bug. looks to be working. added info about pandemic situation
* moved the code of transition E/I/R
* i think its working now. every time we check for a dt around t0 + tinf
* updated value
* removed warning from mutable_borrow_reservation_conflict
* updated comments
* started adpting code
* refactoring models
* game compiles. must still adapt overla
* corrected bug
* added count of different catergories of people
* added quarantined state to see how it work but nothing implemented yet. trying to generalize a bit parameters
* made the model a bit more generic. not there yet though
* corrected bug
* rustfmt
* Update game/src/common/overlays.rs
Co-Authored-By: Dustin Carlino <dabreegster@gmail.com>
* Update sim/src/pmodel/mod.rs
Co-Authored-By: Dustin Carlino <dabreegster@gmail.com>
* Update sim/src/pandemic.rs
Co-Authored-By: Dustin Carlino <dabreegster@gmail.com>
* corrected compilation error. and bug
* modified the dir structure
Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2020-04-05 13:41:37 -07:00
Dustin Carlino
2ef76b5e7c
generate nicer active agent area diagram, use in jump-to-time
2020-04-05 13:10:31 -07:00
Dustin Carlino
ae96627711
add the separator to split btns
2020-04-05 12:16:51 -07:00
Dustin Carlino
fec2bb51ca
start organizing ezgui internal constants into a Style struct
2020-04-05 11:57:27 -07:00
Dustin Carlino
f986dd8683
switch back to upstream fast_graphs, using the new 32-bit wasm-friendly
...
serialization. no measured performance impact. file sizes shrink!
2020-04-05 09:41:51 -07:00
Dustin Carlino
0bec946dce
resurrect another color scheme idea
2020-04-04 18:28:30 -07:00
Dustin Carlino
b62c293104
start some in-progrss color schemes for rapid prototyping
2020-04-04 18:13:45 -07:00
Dustin Carlino
5a28f399fc
convert to horizontal color legend in few more places
2020-04-04 17:03:26 -07:00
Dustin Carlino
2c38a945e9
overlays: include layer icon, adjust padding, try a horizontal scale for
...
pop map, smaller text, better "X" buttons
2020-04-04 16:35:53 -07:00
Dustin Carlino
d995a494dd
dont draw some overlays when zoomed in
2020-04-04 16:01:44 -07:00
Dustin Carlino
c477897b1b
always display layer's panel, even when zoomed in
2020-04-04 14:54:11 -07:00
Dustin Carlino
51d91640e4
load different colorschemes in another way
2020-04-04 14:29:45 -07:00
Dustin Carlino
b09c7d2726
moved rest of colors over
2020-04-04 14:15:34 -07:00
Dustin Carlino
8b6485b233
persistent split buttons for time increments. still need few tweaks, but
...
largely there
2020-04-04 13:22:14 -07:00
Dustin Carlino
edffcf3db7
small time/speed panel changes. also learning a little more about when
...
padding actually works in flexbox...
2020-04-04 12:06:06 -07:00
Dustin Carlino
4d8ab45750
slowly moving string colors to the struct
2020-04-04 10:59:51 -07:00
Dustin Carlino
fd80a7f2a9
starting the grand colorscheme refactor (there really are lots of grand
...
refactors lately). plumbing and replacing constants / floating methods
2020-04-04 10:16:18 -07:00
Dustin Carlino
af2708df67
goodbye eyes, hello colored checkboxes. also switch to a vertical
...
visibility panel when unzoomed. [rebuild]
2020-04-03 17:41:20 -07:00
Dustin Carlino
eedbb2b967
rearrange minimap controls. nearly matching the new design.
2020-04-03 16:46:11 -07:00
Dustin Carlino
e0acc4973b
actually, i don't need to support changing font or size mid-line yet. simplifies some info panel code.
2020-04-03 14:26:17 -07:00
Dustin Carlino
24acb27934
force override width to make the table look nice
2020-04-03 13:35:20 -07:00
Dustin Carlino
5ba468f4cf
SVG border-radius is sometimes a lie. mimic the dirty trick.
2020-04-03 13:22:05 -07:00
Dustin Carlino
2d4095fd8d
except for layout/style, I think the trip/agent panels now have the
...
right information
2020-04-03 13:02:23 -07:00
Dustin Carlino
88bad05d39
clean up agent properties. lots of tweaks needed, but i'm exhausted
2020-04-02 21:36:19 -07:00
Dustin Carlino
51a81fc74d
handle people being in the same building, bus stop, and bus in one
...
uniform way. also the first unit tests in an amusingly long time
2020-04-02 16:08:20 -07:00
Dustin Carlino
29c86d656d
plumb more info in sim events. this will allow for some consolidated pandemic modeling
2020-04-02 15:12:46 -07:00
Dustin Carlino
c12775e5ea
change the pandemic model to be a first-class, optional part of Sim
2020-04-02 14:30:18 -07:00
Dustin Carlino
1e63078096
pandemic model ideas:
...
- use a priority queue to handle events more sanely
- seed with all people
2020-04-02 13:38:14 -07:00
Dustin Carlino
0b6418bdb6
finally make autocomplete a real widget
2020-04-02 13:33:42 -07:00
Dustin Carlino
6f56bf64bf
dismantle the old draw_text_at, clean up a few more ezgui APIs and
...
callers
2020-04-02 12:02:14 -07:00
Dustin Carlino
2fe6303f9c
fix some buttons not having correct hover state when composites are
...
replaced due to time passing or values changing. handle for restoring
scroll state and realigning panels.
2020-04-02 11:27:21 -07:00
Dustin Carlino
a31d3baf1d
create a spinner widget, replace some bad heatmap sliders with it
2020-04-02 11:03:27 -07:00
Dustin Carlino
87cc45752d
better person headers
2020-04-01 17:18:29 -07:00
Dustin Carlino
ef90c6935c
use the locate header button to follow/unfollow people
2020-04-01 15:50:11 -07:00
Dustin Carlino
70875d104d
Scenario should just have specific trips. split a different structure for generating Scenarios. has the happy side effect of removing lots of weird old spawning code, duplicated checks
2020-04-01 13:50:36 -07:00
Dustin Carlino
9138097e9e
add a legend to the heatmap
2020-04-01 11:49:09 -07:00
Dustin Carlino
5c69c6e221
change heatmap to use gaussian instead of weird diffusion. still looks
...
odd.
2020-04-01 11:38:41 -07:00
Dustin Carlino
199b175319
change the mouse cursor based on context [rebuild]
2020-04-01 10:23:28 -07:00
Dustin Carlino
93227a138b
ありがとう, Mr Roboto. You've served us well, but switch to Overpass
2020-04-01 09:32:52 -07:00
Dustin Carlino
b28507c247
don't crash when prebaked analytics gets out of sync
2020-04-01 09:17:52 -07:00
Dustin Carlino
648cca2673
use the new generic histograms to draw heatmap colors binned by percentile, not fixed size buckets (although actually this is bad too! TODO: log scale)
2020-03-31 21:28:05 -07:00
Dustin Carlino
62b49ad884
refactor: properly generic histogram, and remove unnecessary boilerplate
...
from Plot. Rust generics are so awesome.
2020-03-31 20:57:50 -07:00
Dustin Carlino
e12e788716
work on more small style improvements of info panels [rebuild]
2020-03-31 17:27:25 -07:00