FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login
    The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

    Advanced reclaim info with ui scaling?

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 4 Posters 491 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.
    • BlackYpsB Offline
      BlackYps
      last edited by

      The very nice mod Advanced Reclaim Info doesn't account for ui scaling, so all the labels are at the wrong place. Is there a similar mod that takes ui scaling into account?

      Eternal-E 1 Reply Last reply Reply Quote 0
      • nullptrN Offline
        nullptr
        last edited by

        My mod does, but it is not in vault

        “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
        — Steve Jobs.
        My UI Mods
        Support me

        BlackYpsB 1 Reply Last reply Reply Quote 0
        • Eternal-E Offline
          Eternal-
          last edited by

          how i am supposed to download it

          Profile | Eternal MOD pack

          1 Reply Last reply Reply Quote 0
          • Eternal-E Offline
            Eternal- @BlackYps
            last edited by

            @blackyps You must try OnScreenReclaimCounter

            Profile | Eternal MOD pack

            1 Reply Last reply Reply Quote 0
            • BlackYpsB Offline
              BlackYps
              last edited by

              I don't really need the reclaim counter from OnScreenReclaimCounter. I need the functionality that big wrecks get bigger and redder labels

              1 Reply Last reply Reply Quote 0
              • BlackYpsB Offline
                BlackYps @nullptr
                last edited by

                @genos I managed to get it to work by looking at the code of your mod. The trick was to replace

                label.Update = function(self)
                    local view = self.parent.view
                    local proj = view:Project(self.position)
                    LayoutHelpers.AtLeftTopIn(self, self.parent, proj.x - self.Width() / 2, proj.y - self.Height() / 2 + 1)
                    self.proj = {x=proj.x, y=proj.y }
                
                end
                

                with

                label.PosX = LazyVar.Create()
                label.PosY = LazyVar.Create()
                label.Left:Set(function()
                    return view.Left() + label.PosX() - label.Width() / 2
                end)
                label.Top:Set(function()
                    return view.Top() + label.PosY() - label.Height() / 2 + 1
                end)
                
                label.Update = function(self)
                    local proj = self.parent.view:Project(self.position)
                	self.PosX:Set(proj.x)
                    self.PosY:Set(proj.y)
                end
                

                and to import LazyVar at the beginning. local LazyVar = import("/lua/lazyvar.lua")

                1 Reply Last reply Reply Quote 1
                • True_GuesserT Offline
                  True_Guesser
                  last edited by

                  "Better Reclaim View", which is in the Vault (last time I checked). I play on a 4k with 150% scaling, works like a charm.

                  1 Reply Last reply Reply Quote 2
                  • nullptrN Offline
                    nullptr
                    last edited by

                    Stealing my code bruh :harold:

                    “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
                    — Steve Jobs.
                    My UI Mods
                    Support me

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post