1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-07 17:54:07 +00:00

rogueviz::fundamental::name the connections with letters if more than 10

This commit is contained in:
Zeno Rogue 2025-02-24 09:39:02 +01:00
parent 10459c0452
commit c62abf18a5

View File

@ -316,11 +316,13 @@ void fundamental_marker() {
queuecurve(T, color2, 0, PPR::LINE);
string conlabels = "123456789ABCDEFGHIJKLMNOPQRSTUVWYXZabcdefghijklmnopqrstuvwxyz$%@&+#";
for(int ci=0; ci<corners; ci++) {
int mc = (mirrored[ci] ? color1 : color2) >> 8;
int id = connections[ci];
if(id == -1) continue;
queuestr(labelpos(T * abs_cornerpos[ci], T * abs_cornerpos[ci+1]), label_scale/cgi.scalefactor, its(id), mc);
queuestr(labelpos(T * abs_cornerpos[ci], T * abs_cornerpos[ci+1]), label_scale/cgi.scalefactor, s0 + conlabels[id % isize(conlabels)], mc);
}
}