Added: Rendering of 'SelectionColor'ed shapes at top left of the selection rectangle (using a simple format to define shapes)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA
|
||||
@@ -12,14 +14,18 @@ namespace OpenRA.Mods.RA
|
||||
/// <summary>
|
||||
/// Inherits the Return Fire damage handler!
|
||||
/// </summary>
|
||||
public class UnitStanceAggressive : UnitStance, INotifyDamage, ISelectionColorModifier
|
||||
public class UnitStanceAggressive : UnitStance, INotifyDamage
|
||||
{
|
||||
public UnitStanceAggressive(Actor self, UnitStanceAggressiveInfo info)
|
||||
: base(self, info)
|
||||
{
|
||||
RankAnim = new Animation("rank");
|
||||
RankAnim.PlayFetchIndex("rank", () => 3 - 1);
|
||||
|
||||
}
|
||||
|
||||
protected Animation RankAnim { get; set; }
|
||||
|
||||
public override string OrderString
|
||||
{
|
||||
get { return "StanceAggressive"; }
|
||||
@@ -57,5 +63,10 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
get { return Color.Red; }
|
||||
}
|
||||
|
||||
protected override string Shape
|
||||
{
|
||||
get { return "x x\n xx \n xx \nx x"; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user