DragonKnightOfBreeze / Paradox-Language-Support

IDEA Plugin: Paradox Language Support.
https://windea.icu/Paradox-Language-Support
MIT License
37 stars 4 forks source link

Cyan color support in localisation #4

Closed toliner closed 2 years ago

toliner commented 2 years ago

(at least) in HoI4, Cyan color is supported with id "C", however, this plugin say it as invalid. Full reference for HoI4 color ids are here: https://hoi4.paradoxwikis.com/Localisation

DragonKnightOfBreeze commented 2 years ago

@toliner Currently this plugin resolve localisation colors (for ALL Paradox Games) by config/internal/localisation_config.pls.cwt. This file is written refer to Stellaris Vanilla Script / Localisation files. (colors from interface/font.gfx, locales from localisation/langages.yml) Such "Internal Config" could be different in different Paradox Games, will check it in future.

If you import vanilla game directory as a library and add it to the mod module/project, this plugin should resolve localisation colors from textcolors definitions (see it in interface/fonts.gfx) instead, will check whether other Paradox Games also use this file to declare localisation colors in future.

image

toliner commented 2 years ago

Thank you for your reply!

in HoI4, textcolors is written in interface/core.gfx, so other Paradox games may defined in other files :( image

DragonKnightOfBreeze commented 2 years ago

Should modify original cwt rule files to support it. Hard to write codes. (⊙︿⊙)

DragonKnightOfBreeze commented 2 years ago

7bdac41e3956d9d84a54d8aeb3e2ae1b59c775f2

Fixed on 0.6.3, localisation colors will be resolved as textcolor definition. Should import game directory first.