# UI Color ### Update 3rd October, 2018 It is believed that: - 72 = Foreground - 73 = Glow/background In Patch 4.4, SE changed how colours work in tooltips in preperation of new UI "Skins". The logic for displaying colours changed quite drastically but was figured out quickly, here is the process and how it works now: ## (ID: 174) Bane tooltip ![](https://cdn.discordapp.com/attachments/474519195963490305/491551208989917187/unknown.png) **Old tooltip logic** ``` Spread a target's Bio and Miasma effects (except Miasma II) to nearby enemies. ``` This is now: ``` Spread a target's <72>F201FA<73>F201FBBio<73>01<72>01 and <72>F201FA<73>F201FBMiasma<73>01<72>01 effects (except <72>F201FA<73>F201FBMiasma II<73>01<72>01) to nearby enemies. ``` And this is how it should be when converted: ``` Spread a target's Bio and Miasma effects (except Miasma II) to nearby enemies. ``` Taking a small snippet: - Before: `Bio` - After: `<72>F201FA<73>F201FBBio<73>01<72>01` > At this time we're not sure what 73 is for. Focusing on these values, **we need to remove the first byte: F2** - `<72>01FA<73>01FBBio<73>01<72>01` **After that, convert the HEX values to DEC:** - `<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: - `<72>4294928127<73>4294174719Bio<73>01<72>01` **And we can convert these values from DEC to HEX:** - `<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.** - `<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: - `<72 = FFFF66><73 = FFF3E7>Bio` And now it's an easy convert to html: - `Bio` Remove 73 as it doesn't seem to do much right now: - Before: `Bio` - After: `Bio` *And there we have it!* --- Some testing html: ```
default Bio
No 73 (correct look) Bio
No 72 Bio
72 = fore, 73 = back Bio
72 = fore, 73 = glow Bio
``` --- Test Data ``` Spreads a target's <72>F201FABio<72>01 and <72>F201FAMiasma<72>01 effects to nearby enemies.Spreads a target's <72>F201FABio<72>01 and <72>F201FAMiasma<72>01 effects to nearby enemies. Potency is reduced by 20% for the second enemy, 40% for the third, 60% for the fourth, and 80% for all remaining enemies. <72>F201F8Duration:<72>01 Time remaining on original effect <72>F201F8Additional Effect:<72>01 15% chance that <72>F201FABio<72>01 and <72>F201FAMiasma<72>01 duration resets if shorter than original effect duration <72>F201F8Additional Effect:<72>01 <72>F201FAAethertrail Attunement<72>01 <72>F201F8Additional Effect:<72>01 Increases <72>F201F4Faerie Gauge<72>01 by 10 <72>F201F8Aetherflow Gauge Cost:<72>01 1 Spread a target's Bio and Miasma effects (except Miasma II) to nearby enemies.Spreads a target's Bio and Miasma effects to nearby enemies.Spreads a target's Bio and Miasma effects to nearby enemies. Potency is reduced by 20% for the second enemy, 40% for the third, 60% for the fourth, and 80% for all remaining enemies. Duration: Time remaining on original effect Additional Effect: 15% chance that Bio and Miasma duration resets if shorter than original effect duration Additional Effect: Aethertrail Attunement Additional Effect: Increases Faerie Gauge by 10 Aetherflow Gauge Cost: 1 Spread a target's Bio and Miasma effects (except Miasma II) to nearby enemies. Potency is reduced by 20% for the second enemy, 40% for the third, 60% for the fourth, and 80% for all remaining enemies.nDuration: Time remaining on original effectnAdditional Effect: 15% chance that Bio and Miasma duration resets if shorter than original effect duration Additional Effect: Aethertrail Attunement Additional Effect: Increases Faerie Gauge by 10 Aetherflow Gauge Cost: 1 ```