1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-05 18:27:01 +00:00

use two-letter labels instead of excessive primes

This commit is contained in:
Zeno Rogue 2025-03-02 21:45:10 +01:00
parent f3cd8248ef
commit 45c1a3296a

View File

@ -334,8 +334,12 @@ void shapedata::render() {
int mc = mirrored[ci] ? sett.color_mirror : sett.color_mirage;
int id = connections[ci];
if(id == -1) continue;
string lab = s0 + conlabels[id % isize(conlabels)];
for(int i=0; i<id / isize(conlabels); i++) lab += "'";
id++;
string lab = s0;
while(id) {
lab += conlabels[(id-1) % isize(conlabels)];
id /= isize(conlabels);
}
queuestr(labelpos(T * abs_cornerpos[ci], T * abs_cornerpos[ci+1]), sett.label_scale/cgi.scalefactor, lab, mc);
}
}