Rename Fluent *GetString methods to GetMessage.
This commit is contained in:
@@ -69,7 +69,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
return;
|
||||
|
||||
var tooltip = actor.TraitInfos<TooltipInfo>().FirstOrDefault(info => info.EnabledByDefault);
|
||||
var name = tooltip != null ? FluentProvider.GetString(tooltip.Name) : actor.Name;
|
||||
var name = tooltip != null ? FluentProvider.GetMessage(tooltip.Name) : actor.Name;
|
||||
var buildable = actor.TraitInfo<BuildableInfo>();
|
||||
|
||||
var cost = 0;
|
||||
@@ -105,7 +105,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
var requiresSize = int2.Zero;
|
||||
if (prereqs.Count > 0)
|
||||
{
|
||||
var requiresText = FluentProvider.GetString(Requires, "prerequisites", prereqs.JoinWith(", "));
|
||||
var requiresText = FluentProvider.GetMessage(Requires, "prerequisites", prereqs.JoinWith(", "));
|
||||
requiresLabel.GetText = () => requiresText;
|
||||
requiresSize = requiresFont.Measure(requiresText);
|
||||
requiresLabel.Visible = true;
|
||||
@@ -146,7 +146,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
costLabel.GetColor = () => pr.GetCashAndResources() >= cost ? Color.White : Color.Red;
|
||||
var costSize = font.Measure(costText);
|
||||
|
||||
var desc = string.IsNullOrEmpty(buildable.Description) ? "" : FluentProvider.GetString(buildable.Description);
|
||||
var desc = string.IsNullOrEmpty(buildable.Description) ? "" : FluentProvider.GetMessage(buildable.Description);
|
||||
descLabel.GetText = () => desc;
|
||||
var descSize = descFont.Measure(desc);
|
||||
descLabel.Bounds.Width = descSize.X;
|
||||
@@ -180,7 +180,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
var actorTooltip = ai.TraitInfos<TooltipInfo>().FirstOrDefault(info => info.EnabledByDefault);
|
||||
if (actorTooltip != null)
|
||||
return FluentProvider.GetString(actorTooltip.Name);
|
||||
return FluentProvider.GetMessage(actorTooltip.Name);
|
||||
}
|
||||
|
||||
return a;
|
||||
|
||||
Reference in New Issue
Block a user