From 202b47857049817ad31e68056847ad1fc39f285f Mon Sep 17 00:00:00 2001 From: Josh Freeman Date: Tue, 18 Sep 2018 12:41:39 +0100 Subject: [PATCH] Create UIColor.md --- research/UIColor.md | 122 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 research/UIColor.md diff --git a/research/UIColor.md b/research/UIColor.md new file mode 100644 index 000000000..429054526 --- /dev/null +++ b/research/UIColor.md @@ -0,0 +1,122 @@ +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` + +Currently we think 72 = foreground colour and 73 = background color for when the new "Skins" come and colours need to work on a variety of different UI themes. + +Focusing on these values, we need to remove the first byte: F2 + +- Before: `Bio` +- After: `<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` + +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` + +And we can convert these values from DEC to HEX: + +- Before: `Bio` +- After: `<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` + +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` + +And now it's an easy convert to html: + +- Before: `Bio` +- After: `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 +```