Migrate to System.Lazy.
This commit is contained in:
4
OpenRA.Mods.RA/Widgets/ResourceBarWidget.cs
Executable file → Normal file
4
OpenRA.Mods.RA/Widgets/ResourceBarWidget.cs
Executable file → Normal file
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
{
|
||||
public readonly string TooltipTemplate;
|
||||
public readonly string TooltipContainer;
|
||||
OpenRA.FileFormats.Lazy<TooltipContainerWidget> tooltipContainer;
|
||||
Lazy<TooltipContainerWidget> tooltipContainer;
|
||||
|
||||
public string TooltipFormat = "";
|
||||
public ResourceBarOrientation Orientation = ResourceBarOrientation.Vertical;
|
||||
@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
[ObjectCreator.UseCtor]
|
||||
public ResourceBarWidget(World world)
|
||||
{
|
||||
tooltipContainer = Lazy.New(() =>
|
||||
tooltipContainer = Exts.Lazy(() =>
|
||||
Ui.Root.Get<TooltipContainerWidget>(TooltipContainer));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user