Rename TextRenderable to TextAnnotationRenderable.
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
var color = self.Owner.Color;
|
||||
var vec = exitCell - self.Location;
|
||||
var center = wr.World.Map.CenterOfCell(exitCell);
|
||||
yield return new TextRenderable(manager.Font, center, 0, color, vec.ToString());
|
||||
yield return new TextAnnotationRenderable(manager.Font, center, 0, color, vec.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
var vec = perimCell - self.Location;
|
||||
var center = wr.World.Map.CenterOfCell(perimCell);
|
||||
yield return new TextRenderable(manager.Font, center, 0, color, vec.ToString());
|
||||
yield return new TextAnnotationRenderable(manager.Font, center, 0, color, vec.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
continue;
|
||||
|
||||
var info = wr.World.Map.GetTerrainInfo(cell);
|
||||
yield return new TextRenderable(font, center, 0, info.Color, info.Type);
|
||||
yield return new TextAnnotationRenderable(font, center, 0, info.Color, info.Type);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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; } }
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
var spaceBuffer = (int)(10 / wr.Viewport.Zoom);
|
||||
var effectPos = wr.ProjectedPosition(new int2((bounds.Left + bounds.Right) / 2, bounds.Y - spaceBuffer));
|
||||
|
||||
yield return new TextRenderable(font, effectPos, 0, color, name);
|
||||
yield return new TextAnnotationRenderable(font, effectPos, 0, color, name);
|
||||
}
|
||||
|
||||
bool IRenderAnnotations.SpatiallyPartitionable { get { return false; } }
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
|
||||
var screenPos = boundsOffset + sizeOffset + info.ScreenOffset;
|
||||
|
||||
yield return new TextRenderable(font, wr.ProjectedPosition(screenPos), info.ZOffset, color, number);
|
||||
yield return new TextAnnotationRenderable(font, wr.ProjectedPosition(screenPos), info.ZOffset, color, number);
|
||||
}
|
||||
|
||||
void INotifyOwnerChanged.OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
sizeOffset -= new int2(halfSize.X, 0);
|
||||
}
|
||||
|
||||
return new IRenderable[] { new TextRenderable(font, wr.ProjectedPosition(boundsOffset + sizeOffset), Info.ZOffset, color, Info.Text) };
|
||||
return new IRenderable[] { new TextAnnotationRenderable(font, wr.ProjectedPosition(boundsOffset + sizeOffset), Info.ZOffset, color, Info.Text) };
|
||||
}
|
||||
|
||||
void INotifyOwnerChanged.OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
|
||||
|
||||
Reference in New Issue
Block a user