sp614x / optifine

1.78k stars 419 forks source link

[color.properties] Custom Text Colors Do Not Work #7501

Open richardatsley opened 1 year ago

richardatsley commented 1 year ago

My resource pack uses a very specific color palette that I thought would be easy to keep consistent thanks to Optifine's Custom Text Colors feature explained in the documentation, but this feature doesn't seem to work.

  1. Create a color.properties file in the Optifine folder
  2. Add a code similar to "text.code.4=491A2D"
  3. Run a tellraw command or change the lang file to reflect a color code (in this case §4)

preview_OptiFine_1.20.1_HD_U_I5_pre7

Jar Installation

2023-07-24_03 37 37

Below is the ingame screenshot depicting the standard Survival inventory

OptifineBug1

This is a quick photoshop of the desired effect (Just the word "Crafting" has changed)

OptifineBug

This feature, although small, would be extremely helpful to keeping things consistent for myself and others. If this feature cannot be repaired a notice in the Documentation stating such or just being removed would be nice, thank you for your time :)!

Jiingy commented 12 months ago

Can you send a version of the resource pack you are using?

richardatsley commented 12 months ago

Can you send a version of the resource pack you are using?

Sure thing! Here's the most recent version of the pack with the information needed to test this bug: [https://drive.google.com/file/d/1Hj2R95YIRBlHAbJLcSz1xZ_WbIM-haXK/view?usp=sharing]

Please let me know if this is an issue on my end too, Thank you! :)

Jiingy commented 12 months ago

Looks like custom colors can replace a GUI's text color with an existing vanilla color code, but not replace the vanilla color codes themselves.

richardatsley commented 12 months ago

Looks like custom colors can replace a GUI's text color with an existing vanilla color code, but not replace the vanilla color codes themselves.

Ah, very well, maybe I'll put this function under Feature Requests in a different post, thank you for having a look!

Jiingy commented 12 months ago

To clarify my statement, from my testing that's what I observed. it's intended that you'd be able to modify the color codes so it's still a bug