Clean up SupportPowerTooltipLogic:

- Avoid creating unnecessary bindings
- Avoid duplicated text size calculations
- Relayout panel when (and only when) needed
- Color timer red when paused
This commit is contained in:
Paul Chote
2017-09-04 19:23:40 +00:00
committed by reaperrr
parent 458c913264
commit 1e4640dc0b
2 changed files with 33 additions and 27 deletions

View File

@@ -228,7 +228,7 @@ namespace OpenRA.Mods.Common.Widgets
return;
tooltipContainer.Value.SetTooltip(TooltipTemplate,
new WidgetArgs() { { "world", worldRenderer.World }, { "palette", this } });
new WidgetArgs() { { "world", worldRenderer.World }, { "player", spm.Self.Owner }, { "palette", this } });
}
public override void MouseExited()