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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user