Migrate to System.Lazy.
This commit is contained in:
3
OpenRA.Mods.Cnc/Widgets/ProductionPaletteWidget.cs
Executable file → Normal file
3
OpenRA.Mods.Cnc/Widgets/ProductionPaletteWidget.cs
Executable file → Normal file
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
@@ -65,7 +66,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
{
|
||||
this.World = world;
|
||||
this.worldRenderer = worldRenderer;
|
||||
tooltipContainer = Lazy.New(() =>
|
||||
tooltipContainer = Exts.Lazy(() =>
|
||||
Ui.Root.Get<TooltipContainerWidget>(TooltipContainer));
|
||||
|
||||
cantBuild = new Animation("clock");
|
||||
|
||||
Reference in New Issue
Block a user