Implemented an interface that allows traits to add custom information to tooltips.

This commit is contained in:
WolfGaming
2015-03-05 13:55:21 +00:00
parent 272086de76
commit bf3ddcfbf1
6 changed files with 52 additions and 1 deletions

View File

@@ -136,6 +136,12 @@ namespace OpenRA.Traits
bool IsOwnerRowVisible { get; }
}
public interface IProvideTooltipInfo
{
bool IsTooltipVisible(Player forPlayer);
string TooltipText { get; }
}
public interface IDisabledTrait { bool IsTraitDisabled { get; } }
public interface IDisable { bool Disabled { get; } }
public interface IExplodeModifier { bool ShouldExplode(Actor self); }