/// <summary> /// Initializes the player /// </summary> /// <param name="rootWidget">root widget for the scanner</param> /// <param name="interpreter">the interpreter object</param> /// <param name="variables">variables and their values</param> public AnimationPlayer(Widget rootWidget, Interpret interpreter, Variables variables) { Log.Debug("CTOR(" + rootWidget.Name + ")"); if (rootWidget.UIControl is IPanel) { _syncObj = ((IPanel) rootWidget.UIControl).SyncObj; } _transitionSync = _syncObj; _interpreter = interpreter; _timer = new System.Timers.Timer(); _timer.Elapsed += timer_Elapsed; _highlightedWidget = null; _currentAnimation = null; _rootWidget = rootWidget; _playerState = PlayerState.Stopped; _variables = variables; _inTimer = false; IsSwitchActive = false; }
/// <summary> /// Initializes the AnimationManager class /// </summary> public AnimationManager() { _interpreter = new Interpret(); _animationsCollection = new AnimationsCollection(); _soundPlayer = null; _currentPanel = null; _player = null; IsSwitchActive = false; _variables = new Variables(); resetSwitchEventStates(); }
/// <summary> /// Initializes the AnimationManager class /// </summary> public AnimationManager() { _interpreter = new Interpret(); _animationsCollection = new AnimationsCollection(); _soundPlayer = null; _currentScreen = null; _player = null; _variables = new Variables(); }