Draw editor selection box using the UI renderers.
This commit is contained in:
@@ -112,12 +112,18 @@ namespace OpenRA.Mods.Common.Traits
|
||||
var highlight = worldRenderer.Palette("highlight");
|
||||
var overlay = items.Where(r => !r.IsDecoration)
|
||||
.Select(r => r.WithPalette(highlight));
|
||||
return items.Concat(overlay).Append(SelectionBox);
|
||||
return items.Concat(overlay);
|
||||
}
|
||||
|
||||
return items;
|
||||
}
|
||||
|
||||
public IEnumerable<IRenderable> RenderAnnotations()
|
||||
{
|
||||
if (Selected)
|
||||
yield return SelectionBox;
|
||||
}
|
||||
|
||||
public void ReplaceInit<T>(T init)
|
||||
{
|
||||
var original = Actor.InitDict.GetOrDefault<T>();
|
||||
|
||||
Reference in New Issue
Block a user