psiberx / cp2077-codeware

Cyberpunk 2077 library and framework for creating script mods.
MIT License
75 stars 11 forks source link

feat: bind main colors in popups. #25

Closed poirierlouis closed 2 months ago

poirierlouis commented 2 months ago

Use SetStyle and BindProperty to define colors in InGamePopup and InMenuPopup. Make popups compatible with mods like HUD Painter. Changed comment in ThemeColors to deprecate the class in favor of BindProperty feature.

poirierlouis commented 2 months ago

fyi, there is still one color (used twice) in InMenuPopup, I didn't found an equivalent in inkstyle for now. I'll see if I can find the value using WKit.

psiberx commented 2 months ago

Should I wait for this last change or merge as is?

poirierlouis commented 2 months ago

If you can wait, I'm finding my way with WKit script to export all data to Json and quickly lookup for the missing value, see if it is somewhere. I'll get back to you as soon as I find something or not.

poirierlouis commented 2 months ago

I finally found them in base\\gameplay\\gui\\common\\dialogs_popups.inkstyle. It is ready :)

psiberx commented 2 months ago

Thank you!