コード例 #1
0
        public ProjectEditorWindow(
            IAssetManager assetManager,
            IProjectManager projectManager)
        {
            _assetManager   = assetManager;
            _projectManager = projectManager;

            Title = "Project";
            Icon  = _assetManager.Get <TextureAsset>("texture.IconFolder");

            _projectListView    = new ListView();
            _projectContentView = new ListView();

            var scrollableProjectContainer = new ScrollableContainer();
            var scrollableContentContainer = new ScrollableContainer();

            scrollableProjectContainer.SetChild(_projectListView);
            scrollableContentContainer.SetChild(_projectContentView);

            var horizontalContainer = new HorizontalSpacedContainer();

            horizontalContainer.AddChild(scrollableProjectContainer, "350");
            horizontalContainer.AddChild(scrollableContentContainer, "*");

            var toolbarContainer = new ToolbarContainer();

            toolbarContainer.SetChild(horizontalContainer);

            SetChild(toolbarContainer);
        }
コード例 #2
0
        public ConsoleEditorWindow(
            IAssetManager assetManager,
            IConsole console)
        {
            _console = console;

            Title = "Console";
            Icon  = assetManager.Get <TextureAsset>("texture.IconTerminal");

            var consoleContainer = new ConsoleContainer {
                Console = console as EditorConsole
            };

            _scrollableContainer = new ScrollableContainer();
            _scrollableContainer.SetChild(consoleContainer);

            SetChild(_scrollableContainer);
        }
コード例 #3
0
        public HierarchyEditorWindow(
            IAssetManager assetManager,
            IProjectManager projectManager)
        {
            _assetManager   = assetManager;
            _projectManager = projectManager;

            Title = "Hierarchy";
            Icon  = _assetManager.Get <TextureAsset>("texture.IconHierarchy");

            _hierarchyTreeView = new TreeView();

            var scrollableHierarchyContainer = new ScrollableContainer();

            scrollableHierarchyContainer.SetChild(_hierarchyTreeView);

            var toolbarContainer = new ToolbarContainer();

            toolbarContainer.SetChild(scrollableHierarchyContainer);

            SetChild(toolbarContainer);
        }