Beispiel #1
0
        public void ShowBuildTab()
        {
            for (int i = 0; i < panelTabs.GetTabCount(); i++)
            {
                if (panelTabs.GetTabControl(i) == panelBuildsTab)
                {
                    panelTabs.CurrentTab = i;
                    GodotSharpEditor.Instance.MakeBottomPanelItemVisible(this);
                    return;
                }
            }

            GD.PushError("Builds tab not found");
        }
Beispiel #2
0
        private void _ViewLogPressed()
        {
            if (!buildTabsList.IsAnythingSelected())
            {
                return;
            }

            var selectedItems = buildTabsList.GetSelectedItems();

            if (selectedItems.Length != 1)
            {
                throw new InvalidOperationException($"Expected 1 selected item, got {selectedItems.Length}");
            }

            int selectedItem = selectedItems[0];

            var buildTab = (BuildTab)buildTabs.GetTabControl(selectedItem);

            OS.ShellOpen(Path.Combine(buildTab.BuildInfo.LogsDirPath, BuildManager.MsBuildLogFileName));
        }