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 } 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")
-
"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: