コード例 #1
0
        public void OnLoad()
        {
            Viewport       = new Viewport(TimelineWindow);
            Outliner       = new Outliner();
            PropertyWindow = new PropertyWindow();

            Viewport.OnLoad();
            TimelineWindow.OnLoad();
        }
コード例 #2
0
        public void Render(int workspaceID)
        {
            var windowFlags = ImGuiWindowFlags.NoCollapse;

            if (Layout == WorkspaceLayout.Viewport)
            {
                LoadWindow(GetWindowName("Viewport", workspaceID), windowFlags | ImGuiWindowFlags.MenuBar, Viewport.Render);
                LoadWindow(GetWindowName("Timeline", workspaceID), windowFlags, TimelineWindow.Render);
            }

            LoadWindow(GetWindowName("Properties", workspaceID), windowFlags, () => PropertyWindow.Render(Viewport.Pipeline, Outliner, TimelineWindow));
            LoadWindow(GetWindowName("Outliner", workspaceID), windowFlags, () => Outliner.Render());
            LoadWindow(GetWindowName("Undo History", workspaceID), windowFlags, () => UndoWindow.Render());
        }