@@ -6,6 +6,7 @@ import { NgIf, NgFor } from "@angular/common";
66import { AbilitiesComponent } from "../../abilities/abilities.component" ;
77import { ShieldIconComponent } from "./shield-icon/shield-icon.component" ;
88import { TranslateModule } from "@ngx-translate/core" ;
9+ import { NameoverridePipe } from "../../pipes/nameoverride.pipe" ;
910
1011const componentAnimations = [
1112 trigger ( "deathAnimation" , [
@@ -51,7 +52,7 @@ const componentAnimations = [
5152 templateUrl : "./playercard.component.html" ,
5253 styleUrls : [ "./playercard.component.scss" ] ,
5354 animations : componentAnimations ,
54- imports : [ NgIf , AbilitiesComponent , ShieldIconComponent , NgFor ] ,
55+ imports : [ NgIf , AbilitiesComponent , ShieldIconComponent , NgFor , NameoverridePipe ] ,
5556} )
5657export class InhouseTrackerPlayercardComponent {
5758 private config = inject ( Config ) ;
@@ -99,13 +100,21 @@ export class InhouseTrackerPlayercardComponent {
99100 clamp ( value : number , min : number , max : number ) : number {
100101 return Math . max ( min , Math . min ( max , value ) ) ;
101102 }
103+
104+ getOverrideNames ( ) : Map < string , string > {
105+ let toReturn = this . match ?. tools ?. nameOverrides ?. overrides ;
106+ if ( ! toReturn ) {
107+ toReturn = new Map < string , string > ( ) ;
108+ }
109+ return toReturn ;
110+ }
102111}
103112
104113@Component ( {
105114 selector : "app-playercard-minimal" ,
106115 templateUrl : "./playercard-minimal.component.html" ,
107116 styleUrls : [ "./playercard.component.scss" ] ,
108117 animations : componentAnimations ,
109- imports : [ TranslateModule , NgIf ] ,
118+ imports : [ TranslateModule , NgIf , NameoverridePipe ] ,
110119} )
111120export class InhouseTrackerPlayercardMinimalComponent extends InhouseTrackerPlayercardComponent { }
0 commit comments