1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

edgelegend has to be enabled to appear

This commit is contained in:
Zeno Rogue 2018-09-08 13:43:10 +02:00
parent 4fc18a4c36
commit bf97d28fb2

View File

@ -39,6 +39,7 @@ void init();
bool showlabels = false; bool showlabels = false;
bool specialmark = false; bool specialmark = false;
bool edge_legend = false;
bool rog3 = false; bool rog3 = false;
int vertex_shape = 1; int vertex_shape = 1;
@ -1381,14 +1382,16 @@ vector<cell*> named;
bool rogueviz_hud() { bool rogueviz_hud() {
if(!rogueviz::on) return false; if(!rogueviz::on) return false;
if(cmode & sm::DRAW) return false; if(cmode & sm::DRAW) return false;
if(legend.empty() && isize(edgetypes) < 2) return true;
initquickqueue();
int qet = isize(edgetypes); int qet = isize(edgetypes);
if(qet == 1) qet = 0; if(qet == 1 || !edge_legend) qet = 0;
int legit = qet + isize(legend); int legit = qet + isize(legend);
if(legit == 0) return true;
initquickqueue();
int rad = vid.radius/10; int rad = vid.radius/10;
ld x = vid.xres - rad; ld x = vid.xres - rad;
@ -1748,6 +1751,9 @@ int readArgs() {
else if(argis("-nolegend")) { else if(argis("-nolegend")) {
legend.clear(); legend.clear();
} }
else if(argis("-edgelegend")) {
edge_legend = true;
}
else if(argis("-rvshape")) { else if(argis("-rvshape")) {
shift(); vertex_shape = argi() & 3; shift(); vertex_shape = argi() & 3;
} }