I want to modify the existing Eco Overlay, where do I find it?

I have begun modifying a few UI mods I use to better match my poor eyesight, especially those small numbers telling you precisely how screwed your eco is are a problem for me.

I would also love to modify the normal Eco Overlay. Is there a list of all existing UI elements, or a good starting point to find things?

Hello Valki,

i am a bit old (51) and have also probems with the UI.
Did you know that you can resize the UI in FAF?
(Search for option UI-Tab -> UI Resize)

If you want to change the the mini score window (top left corner) then you need to edit the file economy_mini.lua
https://github.com/FAForever/fa/blob/deploy/fafdevelop/lua/ui/game/layouts/economy_mini.lua

Look at this folder for the other Ui elements:
https://github.com/FAForever/fa/tree/deploy/fafdevelop/lua/ui/game/layouts

@uveso Thanks a lot, that looks like what I needed 🙂 - I'll work on it and see if I manage, will let you/this topic know.

I already did the UI scaling, but Eco Overlay didn't respond to that, most mods neither.

You could talk to speed2, he should be able to help you with that (he did the work for the resizing) and normally he's quite helpful.

@Valki

This is the PR from Speed where he patched the UI Resize to the game:
https://github.com/FAForever/fa/pull/2994

Here you can easily see where the ui scales come from and how its used:

This line gets the size value:
https://github.com/FAForever/fa/pull/2994/files#diff-f09652486472504df9d483a2d6d1377cb1574b2a83db62c5c3a61a4d3cb0ec13R35

and here we use the new size in a UI element:
https://github.com/FAForever/fa/pull/2994/files#diff-f09652486472504df9d483a2d6d1377cb1574b2a83db62c5c3a61a4d3cb0ec13R86

This way you should be able to patch your mod with UI scaling function.

there is also scaled resource panel in the mod vault that works well at 1440 res.

@uveso said in I want to modify the existing Eco Overlay, where do I find it?:

@Valki

This is the PR from Speed where he patched the UI Resize to the game:
https://github.com/FAForever/fa/pull/2994

Here you can easily see where the ui scales come from and how its used:

This line gets the size value:
https://github.com/FAForever/fa/pull/2994/files#diff-f09652486472504df9d483a2d6d1377cb1574b2a83db62c5c3a61a4d3cb0ec13R35

and here we use the new size in a UI element:
https://github.com/FAForever/fa/pull/2994/files#diff-f09652486472504df9d483a2d6d1377cb1574b2a83db62c5c3a61a4d3cb0ec13R86

This way you should be able to patch your mod with UI scaling function.

Thanks a lot, getting to learn github and working to find the required element now.