FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

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

    Scheduled Pinned Locked Moved Modding & Tools
    7 Posts 4 Posters 730 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ValkiV Offline
      Valki
      last edited by

      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?

      1 Reply Last reply Reply Quote 1
      • UvesoU Offline
        Uveso
        last edited by

        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

        ValkiV 1 Reply Last reply Reply Quote 0
        • ValkiV Offline
          Valki @Uveso
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • FemtoZettaF Offline
            FemtoZetta
            last edited by

            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.

            1 Reply Last reply Reply Quote 1
            • UvesoU Offline
              Uveso
              last edited by Uveso

              @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.

              ValkiV 1 Reply Last reply Reply Quote 2
              • P Offline
                PappyVanWinkle
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • ValkiV Offline
                  Valki @Uveso
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post