// Originally found in Fantasia.

// Description:
// Changes the text color of entities while holding down ALT to white (#FFFFFF).

// Walkthrough:
// Find the function that generates the alt text (see ShowCombatPower.js).
// The function that calls that text generating function also sets the the color
// that the text will be, so xrefs to find the calling function.
// Near the top you'll see some hex values being moved into a structure, they
// look like FF99CC00h 3099CC00h FF3366FFh etc.
// The one we want is the last one, FF3366FFh, to make it white just set it to
// FFFFFFFFh. That will make everyone elses alt text white. To make our own alt
// text white, change FF99CC00h if you want (by default we keep it as it is).
//
// I think the first part of the color code is alpha.


// ARGB hex format.
var desiredColor = 0xFFFFFFFF;


var movColor = scan('C7 46 ? ? ? ? ? C7 46 ? ? ? ? ? 68');

patchDword(movColor.add(3), desiredColor);

@@ -858,25 +858,25 @@
 = scan('C7 4
-6
+7
  ? ? ? ? ? C
@@ -878,17 +878,17 @@
 ? ? C7 4
-6
+7
  ? ? ? ?

Fix ColorAltText.js