Exemplo n.º 1
0
        public UiGameFilePreview()
        {
            #region Construct

            Header = Lang.Dockable.GameFilePreview.Header;

            _grid = UiGridFactory.Create(1, 1);

            _textureViewer = new UiDxTextureViewer();
            _sound = new UiAudioPlayback();
            _ykd = new UiGameFilePreviewYkd();
            _ztr = new UiGameFilePreviewZtr();
            HideControls();

            _grid.AddUiElement(_textureViewer, 0, 0);
            _grid.AddUiElement(_sound, 0, 0);
            _grid.AddUiElement(_ykd, 0, 0);
            _grid.AddUiElement(_ztr, 0, 0);

            Content = _grid;

            #endregion

            InteractionService.SelectedLeafChanged += OnSelectedLeafChanged;
        }
Exemplo n.º 2
0
        public UiGameFilePreview()
        {
            #region Construct

            Header = Lang.Dockable.GameFilePreview.Header;

            _grid = UiGridFactory.Create(1, 1);

            _textureViewer = new UiDxTextureViewer();
            _sound         = new UiAudioPlayback();
            _ykd           = new UiGameFilePreviewYkd();
            _ztr           = new UiGameFilePreviewZtr();
            HideControls();

            _grid.AddUiElement(_textureViewer, 0, 0);
            _grid.AddUiElement(_sound, 0, 0);
            _grid.AddUiElement(_ykd, 0, 0);
            _grid.AddUiElement(_ztr, 0, 0);

            Content = _grid;

            #endregion

            InteractionService.SelectedLeafChanged += OnSelectedLeafChanged;
        }