mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	items/monsters in your collection have their text brightened if too dark (or the auxiliary orb color is used)
This commit is contained in:
		
							
								
								
									
										10
									
								
								hud.cpp
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								hud.cpp
									
									
									
									
									
								
							| @@ -197,6 +197,7 @@ bool displayglyph(int cx, int cy, int buttonsize, char glyph, color_t color, int | |||||||
|    |    | ||||||
|   if(graphglyph(isMonster)) { |   if(graphglyph(isMonster)) { | ||||||
|     initquickqueue(); |     initquickqueue(); | ||||||
|  |     poly_outline = bordcolor << 8; | ||||||
|     if(isMonster) { |     if(isMonster) { | ||||||
|       eMonster m = eMonster(id - ittypes); |       eMonster m = eMonster(id - ittypes); | ||||||
|       double bsize = buttonsize * 2/3; |       double bsize = buttonsize * 2/3; | ||||||
| @@ -231,8 +232,17 @@ bool displayglyph(int cx, int cy, int buttonsize, char glyph, color_t color, int | |||||||
|         ((glyph == 't' && qty%5) || it == itOrbYendor) ? ticks/2 :  |         ((glyph == 't' && qty%5) || it == itOrbYendor) ? ticks/2 :  | ||||||
|         it == itTerra ? glyphphase[id] * 3 * M_PI + 900 * M_PI: |         it == itTerra ? glyphphase[id] * 3 * M_PI + 900 * M_PI: | ||||||
|         glyphphase[id] * 2; |         glyphphase[id] * 2; | ||||||
|  |  | ||||||
|       drawItemType(it, NULL, shiftless(V), icol, t, false); |       drawItemType(it, NULL, shiftless(V), icol, t, false); | ||||||
|  |        | ||||||
|  |       int c1 = max(color_diff(color, backcolor), color_diff(color, bordcolor)); | ||||||
|  |       if(c1 < 0x80) { | ||||||
|  |         color = orb_auxiliary_color(it); | ||||||
|         } |         } | ||||||
|  |       } | ||||||
|  |     int c1 = max(color_diff(color, backcolor), color_diff(color, bordcolor)); | ||||||
|  |     if(c1 < 0x80) | ||||||
|  |       color = gradient(color, forecolor, 0, .4, 1); | ||||||
|     sortquickqueue(); |     sortquickqueue(); | ||||||
|     quickqueue(); |     quickqueue(); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue