コード例 #1
0
        private void OpenBinderContentTab(Workspace workspace, WorkspaceChangeType changeType)
        {
            HideBinderContentTabs();

            switch (workspace)
            {
            case HomeWorkspace _:
                GetHomeContent().Show();
                break;

            case StudiaWorkspace _:
                GetStudiaContent().Show();
                break;

            case AtlasWorkspace _:
                GetAtlasContent().Show();
                break;

            case AetasWorkspace _:
                GetAetasContent().Show();
                break;

            case ConfigWorkspace _:
                GetConfigContent().Show();
                break;
            }
        }
コード例 #2
0
ファイル: MainMenu.cs プロジェクト: orgrinrt/Talesmith
        private void UpdatePressedButton(Workspace workspace, WorkspaceChangeType changeType)
        {
            UnpressAllMenuItems();

            switch (workspace)
            {
            case HomeWorkspace _:
                GetHomeButton().Pressed = changeType != WorkspaceChangeType.Click;
                break;

            case StudiaWorkspace _:
                GetStudiaButton().Pressed = changeType != WorkspaceChangeType.Click;
                break;

            case AtlasWorkspace _:
                GetAtlasButton().Pressed = changeType != WorkspaceChangeType.Click;
                break;

            case AetasWorkspace _:
                GetAetasButton().Pressed = changeType != WorkspaceChangeType.Click;
                break;

            case ConfigWorkspace _:
                GetConfigButton().Pressed = changeType != WorkspaceChangeType.Click;
                break;
            }
        }
コード例 #3
0
ファイル: Inspector.cs プロジェクト: orgrinrt/Talesmith
        public void OpenInspectorTabContent(Workspace workspace, WorkspaceChangeType changeType)
        {
            HideInspectorTabContents();

            switch (workspace)
            {
            case HomeWorkspace _:
                GetHomeContent().Show();
                break;

            case StudiaWorkspace _:
                GetStudiaContent().Show();
                break;

            case AtlasWorkspace _:
                GetAtlasContent().Show();
                foreach (Node node in GetDisabledTabs().GetChildren())
                {
                    if (node.Name == "Layers")
                    {
                        node.ReParent(GetTabContainer());
                    }
                }
                break;

            case AetasWorkspace _:
                GetAetasContent().Show();
                break;

            case ConfigWorkspace _:
                GetConfigContent().Show();
                break;
            }
        }
コード例 #4
0
 public void OnWorkspaceAboutToChange(Workspace workspace, WorkspaceChangeType changeType)
 {
     ChangeWorkspace(workspace);
 }