public UIElement( IConstArg arg ) : base( arg ) { thisSelectabilityEngine = new SelectabilityStateEngine( this ); thisUIEActivationStateEngine = new UIEActivationStateEngine( thisUISystemProcessFactory, this, arg.activationMode ); }
public UIElement(IUIElementConstArg arg) { thisUIM = arg.uim; thisProcessFactory = arg.processFactory; thisUIElementFactory = arg.uiElementFactory; thisUIA = arg.uia; thisImage = arg.image; thisSelectabilityEngine = new SelectabilityStateEngine( thisImage, thisUIM ); if (arg.activationMode == ActivationMode.Alpha) { thisUIA.SetUpCanvasGroupComponent(); } thisUIEActivationStateEngine = new UIEActivationStateEngine( thisProcessFactory, this, arg.activationMode ); /* move this to SetUpUIEReference */ thisProximateParentScroller = FindProximateParentScroller(); }