Add tooltip hook to SupportPowers; save some batches.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user