예제 #1
0
        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;
        }
예제 #2
0
        public void OnWindowCreated(WindowCreatedArgs args)
        {
            m_DevelopMenu         = args.window.AddPackageActionMenu();
            m_DevelopMenu.text    = L10n.Tr("Develop");
            m_DevelopMenu.visible = false;

            m_EmbedDropdown        = m_DevelopMenu.AddDropdownItem();
            m_EmbedDropdown.text   = L10n.Tr("Copy to Packages folder");
            m_EmbedDropdown.action = EmbedClicked;

            m_CloneDropdown         = m_DevelopMenu.AddDropdownItem();
            m_CloneDropdown.text    = L10n.Tr("Clone from git repo");
            m_CloneDropdown.action  = CloneClicked;
            m_CloneDropdown.visible = Unsupported.IsDeveloperMode();
        }