mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-03 18:22:49 +00:00
an option to disable label coloring
This commit is contained in:
parent
8a6b7e5752
commit
bdc4671be4
@ -534,6 +534,9 @@ color_t distribute_color(int id) {
|
|||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX bool dist_label_colored = true;
|
||||||
|
EX color_t dist_label_color = 0;
|
||||||
|
|
||||||
void celldrawer::do_viewdist() {
|
void celldrawer::do_viewdist() {
|
||||||
if(behindsphere(V)) return;
|
if(behindsphere(V)) return;
|
||||||
|
|
||||||
@ -581,6 +584,8 @@ void celldrawer::do_viewdist() {
|
|||||||
case ncNone: ;
|
case ncNone: ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!dist_label_colored) dc = dist_label_color;
|
||||||
|
|
||||||
// string label = its(fieldpattern::getriverdistleft(c)) + its(fieldpattern::getriverdistright(c));
|
// 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),
|
/* queuepolyat(V, shFloor[ct6], darkena(gradient(0, distcolors[cd&7], 0, .25, 1), fd, 0xC0),
|
||||||
PPR::TEXT); */
|
PPR::TEXT); */
|
||||||
@ -893,6 +898,11 @@ int expansion_readArgs() {
|
|||||||
not_only_descendants = argi() & 8;
|
not_only_descendants = argi() & 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if(argis("-expansion-labelcolor")) {
|
||||||
|
dist_label_colored = false;
|
||||||
|
shift(); dist_label_color = arghex();
|
||||||
|
}
|
||||||
|
|
||||||
else if(argis("-expansion-off")) {
|
else if(argis("-expansion-off")) {
|
||||||
viewdists = false;
|
viewdists = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user