Fix and enable SA1133, SA1134 style rules.

This commit is contained in:
Paul Chote
2019-05-23 18:43:21 +00:00
committed by abcdefg30
parent fbf9461890
commit 78a70be0d4
214 changed files with 1012 additions and 432 deletions

View File

@@ -25,7 +25,8 @@ namespace OpenRA.Mods.Common.Widgets
public bool DisableKeyRepeat = false;
public bool DisableKeySound = false;
[Translate] public string Text = "";
[Translate]
public string Text = "";
public TextAlign Align = TextAlign.Center;
public int LeftMargin = 5;
public int RightMargin = 5;
@@ -55,9 +56,13 @@ namespace OpenRA.Mods.Common.Widgets
public Action<MouseInput> OnMouseUp = _ => { };
protected Lazy<TooltipContainerWidget> tooltipContainer;
[Translate] public string TooltipText;
[Translate]
public string TooltipText;
public Func<string> GetTooltipText;
[Translate] public string TooltipDesc;
[Translate]
public string TooltipDesc;
public Func<string> GetTooltipDesc;
// Equivalent to OnMouseUp, but without an input arg