@@ -404,8 +404,29 @@ function TooltipClass:Draw(x, y, w, h, viewPort)
404404 self .influenceIcon2 :Load (headerInfluence [self .influenceHeader2 ])
405405 end
406406
407- if self .tooltipHeader == " RELIC" then -- Temporary
408- SetDrawColor (0.6 ,1 ,0.5 )
407+ local foilTypes = {
408+ [" Rainbow" ] = {0.6 , 1 , 0.5 },
409+ [" Amethyst" ] = {0.9 , 0.6 , 1 },
410+ [" Verdant" ] = {0.5 , 1 , 0.5 },
411+ [" Ruby" ] = {1 , 0.5 , 0.6 },
412+ [" Cobalt" ] = {0.6 , 0.7 , 1 },
413+ [" Sunset" ] = {1 , 1 , 0.6 },
414+ [" Aureate" ] = {1 , 0.85 , 0.2 },
415+ [" Celestial Quartz" ] = {1 , 0.7 , 0.85 },
416+ [" Celestial Ruby" ] = {0.8 , 0.3 , 0.2 },
417+ [" Celestial Emerald" ] = {0.2 , 0.6 , 0.3 },
418+ [" Celestial Aureate" ] = {0.8 , 0.7 , 0.2 },
419+ [" Celestial Pearl" ] = {1 , 0.85 , 0.9 },
420+ [" Celestial Amethyst" ] = {0.5 , 0.6 , 1 },
421+ }
422+ if self .tooltipHeader == " RELIC" then
423+ -- ConPrintf(self.foilType)
424+ local color = foilTypes [self .foilType ] or foilTypes [" Rainbow" ]
425+ if color then
426+ SetDrawColor (color [1 ], color [2 ], color [3 ])
427+ else
428+ SetDrawColor (0.6 , 1 , 0.5 ) -- fallback to green
429+ end
409430 end
410431 -- Draw left cap first, then influence icon on top
411432 DrawImage (self .headerLeft , headerX , headerY , headerSideWidth , headerHeight )
@@ -414,8 +435,14 @@ function TooltipClass:Draw(x, y, w, h, viewPort)
414435 DrawImage (self .influenceIcon1 , headerX + 2 , headerY + (headerHeight - (headerHeight / 2 ))/ 2 , headerHeight / 2 , headerHeight / 2 )
415436 end
416437
417- if self .tooltipHeader == " RELIC" then -- Temporary
418- SetDrawColor (0.6 ,1 ,0.5 )
438+ if self .tooltipHeader == " RELIC" then
439+ -- ConPrintf(self.foilType)
440+ local color = foilTypes [self .foilType ] or foilTypes [" Rainbow" ]
441+ if color then
442+ SetDrawColor (color [1 ], color [2 ], color [3 ])
443+ else
444+ SetDrawColor (0.6 , 1 , 0.5 ) -- fallback to green
445+ end
419446 end
420447 -- Draw middle fill
421448 if headerMiddleAreaWidth > 0 then
0 commit comments