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; } }
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; } }
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; } }
public void OnWorkspaceAboutToChange(Workspace workspace, WorkspaceChangeType changeType) { ChangeWorkspace(workspace); }