Ejemplo n.º 1
0
 private void ViewQuickStartClick()
 {
     UpmPackageDocs.ViewUrl(UpmPackageDocs.GetQuickStartUrl(m_Version, m_UpmCache), string.Empty, L10n.Tr("quick start documentation"), "viewQuickstart", m_Version, m_Package, m_Application);
 }
Ejemplo n.º 2
0
        private void RefreshQuickStart()
        {
            var showQuickStartButton = m_Package.Is(PackageType.Feature) && !string.IsNullOrEmpty(UpmPackageDocs.GetQuickStartUrl(m_Version, m_UpmCache));

            if (showQuickStartButton)
            {
                quickStart.Clear();
                quickStart.Add(new VisualElement {
                    classList = { "quickStartIcon" }
                });
                quickStart.Add(new TextElement {
                    text = L10n.Tr("QuickStart"), classList = { "quickStartText" }
                });
            }
            UIUtils.SetElementDisplay(quickStart, showQuickStartButton);
        }