diff --git a/research/UIColor.md b/research/UIColor.md index b34dc531f..383a49722 100644 --- a/research/UIColor.md +++ b/research/UIColor.md @@ -33,40 +33,33 @@ Taking a small snippet: Focusing on these values, **we need to remove the first byte: F2** -- Before: `Bio` -- After: `<72>01FA<73>01FBBio<73>01<72>01` +- `<72>01FA<73>01FBBio<73>01<72>01` **After that, convert the HEX values to DEC:** -- Before: `Bio` -- After: `<72>506<73>507Bio<73>01<72>01` +- `<72>506<73>507Bio<73>01<72>01` In Patch 4.4 a new file was added: [UIColor.csv](https://github.com/viion/ffxiv-datamining/blob/master/csv/UIColor.csv) If our guess of Foreground/Background is correct, then in `UIColor`: Col 1 = Foreground and Col 2 = Background, grabbing the rows related to our decimal values and the correct column we get: -- Before: `Bio` -- After: `<72>4294928127<73>4294174719Bio<73>01<72>01` +- `<72>4294928127<73>4294174719Bio<73>01<72>01` **And we can convert these values from DEC to HEX:** -- Before: `Bio` -- After: `<72>FFFF66FF<73>FFF3E7FFBio<73>01<72>01` +- `<72>FFFF66FF<73>FFF3E7FFBio<73>01<72>01` The hex can contain the alpha transparency, so if the value is a 8 character hex, **we only care about the first 6.** -- Before: `Bio` -- After: `<72>FFFF66<73>FFF3E7Bio<73>01<72>01` +- `<72>FFFF66<73>FFF3E7Bio<73>01<72>01` The 01 are always closing colours (resetting back to default text colors) so we can just replace those with generic closing tags and replace the opening tags to be HTML-like: -- Before: `Bio` -- After: `<72 = FFFF66><73 = FFF3E7>Bio` +- `<72 = FFFF66><73 = FFF3E7>Bio` And now it's an easy convert to html: -- Before: `Bio` -- After: `Bio` +- `Bio` Remove 73 as it doesn't seem to do much right now: