mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
rogueviz:: legend color is now changeable
This commit is contained in:
parent
e2cbf80986
commit
e799f76e5d
@ -1525,7 +1525,10 @@ vector<int> legend;
|
||||
|
||||
vector<cell*> named;
|
||||
|
||||
color_t chosen_legend_color = DEFAULT_COLOR;
|
||||
|
||||
bool rogueviz_hud() {
|
||||
color_t legend_color = chosen_legend_color == DEFAULT_COLOR ? forecolor : chosen_legend_color;
|
||||
if(!rogueviz::on) return false;
|
||||
if(cmode & sm::DRAW) return false;
|
||||
|
||||
@ -1552,7 +1555,7 @@ bool rogueviz_hud() {
|
||||
poly_outline = OUTLINE_NONE;
|
||||
queuedisk(V, vd.cp, true, NULL, i);
|
||||
poly_outline = OUTLINE_DEFAULT;
|
||||
queuestr(int(x-rad), int(y), 0, rad*(svg::in?5:3)/4, vd.name, forecolor, 0, 16);
|
||||
queuestr(int(x-rad), int(y), 0, rad*(svg::in?5:3)/4, vd.name, legend_color, 0, 16);
|
||||
}
|
||||
|
||||
for(int i=0; i<qet; i++) {
|
||||
@ -1566,7 +1569,7 @@ bool rogueviz_hud() {
|
||||
queuepolyat(V, cgi.shTriangle, 0, PPR::MONSTER_HEAD);
|
||||
|
||||
poly_outline = OUTLINE_DEFAULT;
|
||||
queuestr(int(x-rad), int(y), 0, rad*(svg::in?5:3)/4, t->name, forecolor, 0, 16);
|
||||
queuestr(int(x-rad), int(y), 0, rad*(svg::in?5:3)/4, t->name, legend_color, 0, 16);
|
||||
}
|
||||
|
||||
quickqueue();
|
||||
@ -1927,6 +1930,10 @@ int readArgs() {
|
||||
shift();
|
||||
fat_edges = argf();
|
||||
}
|
||||
else if(argis("-lcol")) {
|
||||
shift();
|
||||
chosen_legend_color = arghex();
|
||||
}
|
||||
else if(argis("-ggamma")) {
|
||||
shift(); ggamma = argf();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user