rogueviz:: improved the graph subsystem

This commit is contained in:
Zeno Rogue
2025-12-04 19:44:39 +01:00
parent d101495e2a
commit 422593c17c
16 changed files with 313 additions and 359 deletions
+2 -7
View File
@@ -55,8 +55,6 @@ void show_likelihood() {
embedder_loop(1);
ts_vertices = ts_rbase;
place_rogueviz_vertices();
if(!stored) rogueviz::storeall(), stored = true;
else shmup::fixStorage();
});
dialog::addBack();
@@ -65,9 +63,8 @@ void show_likelihood() {
if(held_id >= 0) {
if(!mousepressed) held_id = -1;
else if(mouseover) {
rogueviz::vdata[held_id].m->base = mouseover;
shmup::fixStorage();
dhrg::fixedges();
auto& vd = rogueviz::vdata[held_id];
vd.be(mouseover, vd.m->at);
auto& mc = vertices[held_id];
tallyedgesof(held_id, -1, mc);
@@ -104,8 +101,6 @@ bool dhrg_animate(int sym, int uni) {
dhrg_init(); graph_from_rv();
ts_vertices = ts_rbase;
place_rogueviz_vertices();
if(!stored) rogueviz::storeall(), stored = true;
else shmup::fixStorage();
}
pushScreen(show_likelihood);