DisplayMessage(). Font style and size.

Dune2000, Dune 2000, d2k

Information and discussion for custom maps and mods.
Post Reply
Adrian
Posts: 89
Joined: Wed Feb 12, 2020 5:44 pm

DisplayMessage(). Font style and size.

Post 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. :-)

Post Reply