public void OnWindowCreated(WindowCreatedArgs args) { var viewReportText = L10n.Tr("View last report..."); // Test m_TestRunnerButton = args.window.AddPackageActionButton(); m_TestRunnerButton.text = L10n.Tr("Test"); m_TestRunnerButton.action = TestClicked; // Validate m_ValidateButton = args.window.AddPackageActionButton(); m_ValidateButton.text = L10n.Tr("Validate"); m_ValidateButton.action = ValidateClicked; m_ViewValidateReport = m_ValidateButton.AddDropdownItem(); m_ViewValidateReport.text = viewReportText; m_ViewValidateReport.action = ShowValidationReport; // Try-out m_TryoutButton = args.window.AddPackageActionButton(); m_TryoutButton.text = L10n.Tr("Try-out"); m_TryoutButton.action = TryoutClicked; m_ViewTryoutReport = m_TryoutButton.AddDropdownItem(); m_ViewTryoutReport.text = viewReportText; m_ViewTryoutReport.action = ShowTryoutReport; }
public void OnWindowCreated(WindowCreatedArgs args) { var configPath = Path.Combine(EditorApplication.applicationContentsPath, k_ServicesConfigPath); LoadServicesConfig(configPath); var pageManager = ServicesContainer.instance.Resolve <PageManager>(); pageManager.AddSubPage(PackageFilterTab.UnityRegistry, "services", L10n.Tr("Services"), L10n.Tr(k_PageContentType), k_ServicesPriority, FilterServicesPackage, GetServicesPackageGroupName, CompareGroup); pageManager.AddSubPage(PackageFilterTab.InProject, "services", L10n.Tr("Services"), L10n.Tr(k_PageContentType), k_ServicesPriority, FilterServicesPackage, GetServicesPackageGroupName, CompareGroup); m_ConfigureButton = args.window.AddPackageActionButton(); m_ConfigureButton.text = L10n.Tr("Configure"); m_ConfigureButton.action += OnConfigureClicked; }