/// <summary> /// Constructor, which creates all elements /// </summary> public FullscreenWindow() { _fullscreenWindow = GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO) as GUIVideoFullscreen; if (_fullscreenWindow != null) { _controlList = _fullscreenWindow.controlList; GenerateElements(); _cacheElements = new List<BaseElement>(); _imageCacheElements = new List<BaseElement>(); foreach (var element in _controlList) { GUIControl temp = element; if (temp != null) { if (temp.GetType() == typeof(GUIGroup)) { var help = temp as GUIGroup; if (help != null) foreach (var uiElement in help.Children) { GUIControl temp2 = uiElement; if (temp2 != null) { CheckElement(temp2); } } } CheckElement(temp); } } if (_background == null) { _background = _background2; } if (_background == null) { _background = _background3; } } }
/// <summary> /// Performs a base uinut if the window. This includes the following tasks /// - Setting the reference to the window in MP /// - Setting the reference to the control list of the MP window /// </summary> protected override void BaseInit() { _fullscreenWindow = GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO) as GUIVideoFullscreen; _baseWindow = _fullscreenWindow; if (_fullscreenWindow != null) { _controlList = _fullscreenWindow.controlList; } }
/// <summary> /// Performs a base uinut if the window. This includes the following tasks /// - Setting the reference to the window in MP /// - Setting the reference to the control list of the MP window /// </summary> protected override void BaseInit() { //_fullscreenWindow = GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO) as GUIVideoFullscreen; _fullscreenWindow = GUIWindowManager.GetWindow(HeadWeb.GUIOnlineVideoFullscreen.WINDOW_FULLSCREEN_ONLINEVIDEO) as GUIVideoFullscreen; if (_fullscreenWindow != null) _controlList = _fullscreenWindow.controlList; }