Rename TextRenderable to TextAnnotationRenderable.

This commit is contained in:
Paul Chote
2019-09-15 12:31:52 +01:00
committed by abcdefg30
parent 7937383bf4
commit 4ec0fa299d
8 changed files with 16 additions and 16 deletions

View File

@@ -75,12 +75,12 @@ namespace OpenRA.Mods.Common.Traits.Render
if (debugVis == null || !debugVis.ActorTags)
yield break;
yield return new TextRenderable(font, self.CenterPosition - offset, 0, color, tagString);
yield return new TextAnnotationRenderable(font, self.CenterPosition - offset, 0, color, tagString);
// Get the actor's activity.
var activity = self.CurrentActivity;
if (activity != null)
yield return new TextRenderable(font, self.CenterPosition, 0, color, activity.DebugLabelComponents().JoinWith("."));
yield return new TextAnnotationRenderable(font, self.CenterPosition, 0, color, activity.DebugLabelComponents().JoinWith("."));
// Get the AI squad that this actor belongs to.
if (!self.Owner.IsBot)
@@ -95,7 +95,7 @@ namespace OpenRA.Mods.Common.Traits.Render
yield break;
var aiSquadInfo = "{0}, {1}".F(squad.Type, squad.TargetActor);
yield return new TextRenderable(font, self.CenterPosition + offset, 0, color, aiSquadInfo);
yield return new TextAnnotationRenderable(font, self.CenterPosition + offset, 0, color, aiSquadInfo);
}
bool IRenderAnnotationsWhenSelected.SpatiallyPartitionable { get { return true; } }