#2051 fixed -- Widget.Get() throws by default
This commit is contained in:
@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
this.worldRenderer = worldRenderer;
|
||||
spm = world.LocalPlayer.PlayerActor.Trait<SupportPowerManager>();
|
||||
tooltipContainer = Lazy.New(() =>
|
||||
Ui.Root.GetWidget<TooltipContainerWidget>(TooltipContainer));
|
||||
Ui.Root.Get<TooltipContainerWidget>(TooltipContainer));
|
||||
|
||||
iconSprites = Rules.Info.Values.SelectMany( u => u.Traits.WithInterface<SupportPowerInfo>() )
|
||||
.Select(u => u.Image).Distinct()
|
||||
|
||||
Reference in New Issue
Block a user