Advanced reclaim info with ui scaling?
-
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?
-
-
how i am supposed to download it
-
@blackyps You must try OnScreenReclaimCounter
-
I don't really need the reclaim counter from OnScreenReclaimCounter. I need the functionality that big wrecks get bigger and redder labels
-
@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 } endwith
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) endand to import LazyVar at the beginning.
local LazyVar = import("/lua/lazyvar.lua") -
"Better Reclaim View", which is in the Vault (last time I checked). I play on a 4k with 150% scaling, works like a charm.
-
Stealing my code bruh :harold:
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