void Awake()
 {
     this.m_strip = GetComponentInChildren <UITabstrip>();
     this.m_strip.relativePosition   = new Vector3(13, -25);
     this.m_strip.startSelectedIndex = 0;
     this.m_atlas = UIUtils.LoadThumbnailsTextureAtlas("UIThumbnails");
     UIUtils.SetThumbnails("TabBg", sm_thumbnailCoords["TabBackgrounds"], this.m_atlas, sm_thumbnailStates);
     this.m_objectIndex = 0;
 }
Ejemplo n.º 2
0
        private void Awake()
        {
            this.m_atlas           = UIUtils.LoadThumbnailsTextureAtlas("UIThumbnails");
            this.m_scrollablePanel = GetComponentInChildren <UIScrollablePanel>();
            this.m_scrollablePanel.autoLayoutStart = LayoutStart.TopLeft;
            UIScrollbar scrollbar = this.GetComponentInChildren <UIScrollbar>();

            if (scrollbar != null)
            {
                scrollbar.incrementAmount = 109;
            }
            this.m_objectIndex = m_selectedIndex = 0;
            this.m_panelType   = Panel.Unset;
        }