Page 1 of 1

DisplayMessage(). Font style and size.

Posted: Tue Nov 26, 2024 6:37 pm
by Adrian
First question.

I hope the developers don't mind that I study the source code of the game? in cs-files?

Is it normally to discuss source code here? May I?

---------

And about the function DisplayMessage().

I remember, that I tried to change the function several years ago.

These messages look not easy!
But despite this I found where is font of DisplayMessage().
It was in 2020 (and in the earlier versions of Dune).

Here:
(Dune folder)/OpenRA.Mods.Common/Widgets/ChatDisplayWidget.cs

And NOW! It looks even more difficult.
Quite another code and files!

It looks like the font is one for all messages.

Here? Right?
(Dune folder)/mods/common/metrics.yaml

TextFont: Regular

I am trying to understand, where I can create individual font
(or use existing font) for DisplayMessage().

I don't want to write much. Đ¢hat's enough for now...
(Of course, I can add details in next messages, if it needed)
And I'm hoping for some kind of answer. :-)