Draw GPS dots using the UI renderers.
This commit is contained in:
@@ -106,7 +106,8 @@ namespace OpenRA.Mods.Cnc.Effects
|
||||
actor.EffectiveOwner.Owner : actor.Owner;
|
||||
|
||||
var palette = wr.Palette(info.IndicatorPalettePrefix + effectiveOwner.InternalName);
|
||||
return anim.Render(actor.CenterPosition, palette);
|
||||
var screenPos = wr.Viewport.WorldToViewPx(wr.ScreenPxPosition(actor.CenterPosition));
|
||||
return anim.RenderUI(wr, screenPos, WVec.Zero, 0, palette, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user