Smaller and colored nameplates for traffic (Updated 2022-03-04)

For those who want to tweak their nameplates further, here’s a HowTo which I don’t want to provide as a standalone mod:

(Updated to be compatible with SU5)

Hide numeric value from gamertags
XBox appends a # with a number to every gamertag that is not unique. Since it is mostly useless and makes the nameplates even longer, here’s how to remove them:
Find the file

Official\OneStore\fs-base-ui-pages\html_ui\Pages\InGameMarkers\Templates\IGM_AirTraffic.js

and add the following lines after line 22:

  // remove number after gamertag
  data.title.text = data.title.text.replace(/#[0-9]*/gi, "");

Highlight specific names
This only works if you’re using the cppr-nameplates-v2-green of my mod since it contains a highlighting prepared already.
Again look for the file

Official\OneStore\fs-base-ui-pages\html_ui\Pages\InGameMarkers\Templates\IGM_AirTraffic.js

And add there the following line (I exemplary added a few streamers, feel free to add others the same way. Note that you have to omit here the numeric part if you’re using the above tweak as well:

  // highlight some users from livestreams
  if (data.title.text.toUpperCase() == "SIMTOM2" 
  	|| data.title.text.toUpperCase() == "PIETER1982NL") {
  	this.querySelector('.name').classList.add('highlighted');
  }

You need to apply this change every time there is an MSFS update that overrides these changes.

With the two fixes in place, my file looks as follows:

6 Likes