Display cost/power tooltip labels in red if there are insufficient funds/power. Fixes #1076.

This commit is contained in:
Paul Chote
2011-07-27 17:38:37 +12:00
parent 1c7a9ce08e
commit a4814b82c8
2 changed files with 34 additions and 25 deletions

View File

@@ -39,6 +39,8 @@ namespace OpenRA.Mods.Cnc.Widgets
public readonly string TooltipTemplate = "PRODUCTION_TOOLTIP";
public string TooltipActor { get; private set; }
public readonly World world;
Lazy<TooltipContainerWidget> tooltipContainer;
ProductionQueue currentQueue;
public ProductionQueue CurrentQueue
@@ -60,7 +62,6 @@ namespace OpenRA.Mods.Cnc.Widgets
Animation cantBuild, clock;
Rectangle eventBounds = Rectangle.Empty;
readonly WorldRenderer worldRenderer;
readonly World world;
readonly SpriteFont overlayFont;
readonly float2 holdOffset, readyOffset, timeOffset, queuedOffset;