@@ -415,7 +415,7 @@ protected void configureDisplayText(MultiblockUIBuilder builder) {
415415 "gregtech.multiblock.hpca.energy" ,
416416 KeyUtil .number (syncer .syncLong (hpcaHandler .cachedEUt )),
417417 KeyUtil .number (syncer .syncLong (hpcaHandler .getMaxEUt ())),
418- voltageName ));
418+ voltageName + TextFormatting . GRAY ));
419419
420420 // Provided Computation
421421 manager .add (KeyUtil .lang ("gregtech.multiblock.hpca.computation" ,
@@ -568,14 +568,17 @@ public void registerBars(List<UnaryOperator<TemplateBarBuilder>> bars, PanelSync
568568 double temp = temperatureValue .getDoubleValue ();
569569 int degrees = (int ) Math .round (temp / 10.0 );
570570
571- // TODO working dynamic color substitutions into IKey.lang
571+ TextFormatting color ;
572572 if (temp < 500 ) {
573- t . addLine ( IKey . lang ( "gregtech.multiblock.hpca.temperature.low" , degrees )) ;
573+ color = TextFormatting . GREEN ;
574574 } else if (temp < 750 ) {
575- t . addLine ( IKey . lang ( "gregtech.multiblock.hpca.temperature.medium" , degrees )) ;
575+ color = TextFormatting . YELLOW ;
576576 } else {
577- t . addLine ( IKey . lang ( "gregtech.multiblock.hpca.temperature.high" , degrees )) ;
577+ color = TextFormatting . RED ;
578578 }
579+
580+ t .addLine (IKey .lang ("gregtech.multiblock.hpca.temperature" ,
581+ () -> new Object [] { color , degrees }));
579582 } else {
580583 t .addLine (IKey .lang ("gregtech.multiblock.invalid_structure" ));
581584 }
0 commit comments