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

    Advanced reclaim info with ui scaling?

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 4 Posters 479 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
      • Ctrl-KC Online
        Ctrl-K
        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 | Check new client

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

            @blackyps You must try OnScreenReclaimCounter

            Profile | Eternal MOD pack | Check new client

            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 @Ctrl-K
                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
                • Rodimus_PrimeR Offline
                  Rodimus_Prime
                  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
                  • Ctrl-KC Online
                    Ctrl-K
                    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
                    • First post
                      Last post