Quantcast
Channel: OpenRA
Viewing all articles
Browse latest Browse all 147

Mapping and Modding • DisplayMessage(). Font style and size.

$
0
0
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. :-)

Statistics: Posted by Adrian — Tue Nov 26, 2024 6:37 pm — Replies 0 — Views 85



Viewing all articles
Browse latest Browse all 147

Trending Articles