Fix SA1316
This commit is contained in:
committed by
Pavel Penev
parent
062dc2bd40
commit
a167f9680f
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
public Func<string> GetTooltipText;
|
||||
|
||||
readonly CachedTransform<(string, string), Sprite> getImageCache = new(
|
||||
((string collection, string image) args) => ChromeProvider.GetImage(args.collection, args.image));
|
||||
((string Collection, string Image) args) => ChromeProvider.GetImage(args.Collection, args.Image));
|
||||
|
||||
public ImageWidget()
|
||||
{
|
||||
|
||||
@@ -37,11 +37,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
power.GetColor = () => powerManager.ExcessPower < 0 ? Color.Red : Color.White;
|
||||
power.GetText = () => developerMode.UnlimitedPower ? unlimitedCapacity : powerManager.ExcessPower.ToString();
|
||||
|
||||
var tooltipTextCached = new CachedTransform<(string, string), string>(((string usage, string capacity) args) =>
|
||||
var tooltipTextCached = new CachedTransform<(string, string), string>(((string Usage, string Capacity) args) =>
|
||||
{
|
||||
return modData.Translation.GetString(
|
||||
PowerUsage,
|
||||
Translation.Arguments("usage", args.usage, "capacity", args.capacity));
|
||||
Translation.Arguments("usage", args.Usage, "capacity", args.Capacity));
|
||||
});
|
||||
|
||||
power.GetTooltipText = () =>
|
||||
|
||||
Reference in New Issue
Block a user