InitStyles() public static méthode

public static InitStyles ( ) : void
Résultat void
Exemple #1
0
        public override void OnInspectorGUI()
        {
            AudioMixerDrawUtils.InitStyles();
            if (m_EffectView == null)
            {
                m_EffectView = new AudioMixerEffectView();
            }

            AudioMixerGroupController group = target as AudioMixerGroupController;

            m_EffectView.OnGUI(group);
        }
Exemple #2
0
        public void OnGUI()
        {
            Init();

            if (s_GuiContents == null)
            {
                s_GuiContents = new GUIContents();
            }
            AudioMixerDrawUtils.InitStyles();

            DetectControllerChange();

            m_GroupViews.OnEvent();
            m_SnapshotListView.OnEvent();

            DoToolbar();

            List <AudioMixerGroupController> allGroups;

            if (m_Controller != null)
            {
                allGroups = m_Controller.GetAllAudioGroupsSlow();
            }
            else
            {
                allGroups = new List <AudioMixerGroupController>();
            }

            var effectMap = GetEffectMap(allGroups);

            m_GroupTree.UseScrollView(m_LayoutMode == LayoutMode.Horizontal);

            if (m_LayoutMode == LayoutMode.Horizontal)
            {
                LayoutWithStripsOnTop(allGroups, effectMap);
            }
            else
            {
                LayoutWithStripsOnRightSideOneScrollBar(allGroups, effectMap);
            }

            // Ensure valid layout after maximizing window
            if (m_LastSize.x != position.width || m_LastSize.y != position.height)
            {
                m_RepaintCounter = 2;
                m_LastSize       = new Vector2(position.width, position.height);
            }

            RepaintIfNeeded();
        }
        public void OnGUI()
        {
            this.Init();
            if (AudioMixerWindow.s_GuiContents == null)
            {
                AudioMixerWindow.s_GuiContents = new AudioMixerWindow.GUIContents();
            }
            AudioMixerDrawUtils.InitStyles();
            this.DetectControllerChange();
            this.m_GroupViews.OnEvent();
            this.m_SnapshotListView.OnEvent();
            this.DoToolbar();
            List <AudioMixerGroupController> allGroups;

            if (this.m_Controller != null)
            {
                allGroups = this.m_Controller.GetAllAudioGroupsSlow();
            }
            else
            {
                allGroups = new List <AudioMixerGroupController>();
            }
            Dictionary <AudioMixerEffectController, AudioMixerGroupController> effectMap = this.GetEffectMap(allGroups);

            this.m_GroupTree.UseScrollView(this.m_LayoutMode == AudioMixerWindow.LayoutMode.Horizontal);
            if (this.m_LayoutMode == AudioMixerWindow.LayoutMode.Horizontal)
            {
                this.LayoutWithStripsOnTop(allGroups, effectMap);
            }
            else
            {
                this.LayoutWithStripsOnRightSideOneScrollBar(allGroups, effectMap);
            }
            if (this.m_LastSize.x != base.position.width || this.m_LastSize.y != base.position.height)
            {
                this.m_RepaintCounter = 2;
                this.m_LastSize       = new Vector2(base.position.width, base.position.height);
            }
            this.RepaintIfNeeded();
        }