From bdc4671be4e2b405d25ddd00418a3c857832db42 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 12 May 2021 20:15:06 +0200 Subject: [PATCH] an option to disable label coloring --- expansion.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/expansion.cpp b/expansion.cpp index 63e9c452..072ad2ce 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -534,6 +534,9 @@ color_t distribute_color(int id) { return v; } +EX bool dist_label_colored = true; +EX color_t dist_label_color = 0; + void celldrawer::do_viewdist() { if(behindsphere(V)) return; @@ -580,6 +583,8 @@ void celldrawer::do_viewdist() { } case ncNone: ; } + + if(!dist_label_colored) dc = dist_label_color; // string label = its(fieldpattern::getriverdistleft(c)) + its(fieldpattern::getriverdistright(c)); /* queuepolyat(V, shFloor[ct6], darkena(gradient(0, distcolors[cd&7], 0, .25, 1), fd, 0xC0), @@ -893,6 +898,11 @@ int expansion_readArgs() { not_only_descendants = argi() & 8; } + else if(argis("-expansion-labelcolor")) { + dist_label_colored = false; + shift(); dist_label_color = arghex(); + } + else if(argis("-expansion-off")) { viewdists = false; }