static VisualElement MakeLabel()
        {
            var label = SettingsUIUtils.CloneUIFromTemplate(UIResourceUtils.labelUxmlPath);

            label.AddToClassList(k_TagClass);
            return(label);
        }
Ejemplo n.º 2
0
        VisualElement SetupConfigBlock()
        {
            m_ConfigurationBlock = SettingsUIUtils.CloneUIFromTemplate(UIResourceUtils.appleConfigUxmlPath);

            m_ObfuscatorSection.SetupObfuscatorBlock(m_ConfigurationBlock);
            SetupStyleSheets();

            return(m_ConfigurationBlock);
        }
        VisualElement SetupConfigBlock()
        {
            m_NoticeBlock = SettingsUIUtils.CloneUIFromTemplate(UIResourceUtils.analyticsNoticeUxmlPath);

            SetupNoticeBlock();
            SetupStyleSheets();

            return(m_NoticeBlock);
        }
        VisualElement SetupObfuscatorBlock()
        {
            m_CatalogBlock = SettingsUIUtils.CloneUIFromTemplate(UIResourceUtils.catalogUxmlPath);

            SetupStyleSheets();
            PopulateConfigBlock();

            return(m_CatalogBlock);
        }
        VisualElement SetupPlatformAndStoresBlock()
        {
            var rootElement = SettingsUIUtils.CloneUIFromTemplate(UIResourceUtils.platformSupportUxmlPath);

            currentStoreSection = rootElement.Q(k_CurrentStoreSectionName);

            SetupStyleSheets(rootElement);
            PopulateSections(rootElement);

            return(rootElement);
        }
Ejemplo n.º 6
0
        void RefreshDetailUI()
        {
            rootVisualElement.Clear();

            var clonedContainer = SettingsUIUtils.CloneUIFromTemplate(UIResourceUtils.purchasingServicesRootUxmlPath);

            rootVisualElement.Add(clonedContainer);

            var uiState = (BasePurchasingState)m_StateMachine.currentState;

            foreach (var uiStateElement in uiState.GetStateUI())
            {
                rootVisualElement.Add(uiStateElement);
            }
        }