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:
geckosoft
2010-11-11 08:53:26 +01:00
committed by Bob
parent 05f6958286
commit 17770631a2
5 changed files with 82 additions and 2 deletions

View File

@@ -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"; }
}
}
}