Ejemplo n.º 1
0
        public void AddTab(string label, Displayable displayable)
        {
            int       index = tabs.Count;
            TabRecord tab   = new TabRecord(label, () => selectedTab = index, selectedTab == index);

            tabs.Add(new TabEntry {
                tab = tab, displayable = displayable
            });
        }
Ejemplo n.º 2
0
        // Token: 0x0600007F RID: 127 RVA: 0x000042F0 File Offset: 0x000024F0
        public void AddTab(string label, Displayable displayable)
        {
            var index = tabs.Count;
            var tab   = new TabRecord(label, delegate { selectedTab = index; }, selectedTab == index);

            tabs.Add(new TabEntry
            {
                tab         = tab,
                displayable = displayable
            });
        }
Ejemplo n.º 3
0
        public override void Draw(Rect inRect)
        {
            // We draw the top with tabs
            Rect tabsArea = inRect.TopPartPixels(TAB_HEIGHT);

            TabDrawer.DrawTabs(tabsArea, tabs.Select((e) => e.tab));

            // We draw the selected tab
            Rect        childArea           = inRect.BottomPartPixels(inRect.height - TAB_HEIGHT);
            Displayable selectedDisplayable = tabs[selectedTab].displayable;

            selectedDisplayable.Draw(childArea);
        }
Ejemplo n.º 4
0
 public WidthContainer(Displayable child, float width) : base(child, width, Displayable.FLUID)
 {
 }
Ejemplo n.º 5
0
 public void Add(Displayable display)
 {
     this.children.Add(display);
 }
Ejemplo n.º 6
0
 // Token: 0x0600007C RID: 124 RVA: 0x0000421A File Offset: 0x0000241A
 public ScrollContainer(Displayable child, Vector2 scrollPosition, Action <Vector2> onScroll)
 {
     this.scrollPosition = scrollPosition;
     this.child          = child;
     this.onScroll       = onScroll;
 }
Ejemplo n.º 7
0
 public HeightContainer(Displayable child, float height) : base(child, Displayable.FLUID, height)
 {
 }
Ejemplo n.º 8
0
 public Container(Displayable child, float width, float height)
 {
     this.child  = child;
     this.width  = width;
     this.height = height;
 }