From c62abf18a5293072480a3cbcaf6ac8951b1d247c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 24 Feb 2025 09:39:02 +0100 Subject: [PATCH] rogueviz::fundamental::name the connections with letters if more than 10 --- rogueviz/fundamental.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rogueviz/fundamental.cpp b/rogueviz/fundamental.cpp index b04ba907..023dbbe9 100644 --- a/rogueviz/fundamental.cpp +++ b/rogueviz/fundamental.cpp @@ -316,11 +316,13 @@ void fundamental_marker() { queuecurve(T, color2, 0, PPR::LINE); + string conlabels = "123456789ABCDEFGHIJKLMNOPQRSTUVWYXZabcdefghijklmnopqrstuvwxyz$%@&+#"; + for(int ci=0; ci> 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); } }