Page 1 of 1

Floating Text. Font size.

Posted: Thu Mar 26, 2020 2:53 pm
by Adrian
Some thanks.
You can omit this part :-)

I try new Dune 2000 mod. And I like how it looks in 2020! I mean OpenRa mod.
Thank you, developers!

I take interest in Map Editor of Dune 2000.
It is rather interesting to change original maps...

Slightly later, I start read about Lua API here:
https://github.com/OpenRA/OpenRA/wiki/Lua-API

-----------------------------------------------------------------------------

And question.

How to change font size of Floating Text?

I mean function FloatingText(). I would like to make font bigger.
The text looks difficult to read (for me, at least).

If it is possible, of course.
May be, it's easy. Somewhere in settings...

Re: Floating Text. Font size.

Posted: Sat Nov 16, 2024 8:18 pm
by Adrian
I will up this rather old topic.

Actually, it is answer.
Function FloatingText() is in file FloatingText.cs
here
(Dune folder)/OpenRA.Mods.Common/Effects/

Then we can change the code here.
It was font = Game.Renderer.Fonts["TinyBold"];

Code: Select all

   public FloatingText(WPos pos, Color color, string text, int duration)
    {
        font = Game.Renderer.Fonts["TinyBold"];

We can write here "Bold" or (bigger) "MediumBold".

After that, the program needs compiling.