Add tooltip hook to SupportPowers; save some batches.

This commit is contained in:
Paul Chote
2011-07-05 22:29:36 +12:00
parent ca77f20f19
commit 7c72c1564e
7 changed files with 85 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
{
[ObjectCreator.UseCtor]
public ProductionTooltipLogic([ObjectCreator.Param] Widget widget,
[ObjectCreator.Param] ProductionPaletteWidget palette)
[ObjectCreator.Param] ProductionPaletteWidget palette)
{
widget.IsVisible = () => palette.TooltipActor != null;
widget.GetWidget<LabelWidget>("NAME").GetText = () => palette.TooltipActor;