mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	use two-letter labels instead of excessive primes
This commit is contained in:
		| @@ -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); | ||||
|     } | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue