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 }); }
// 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 }); }
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); }
public WidthContainer(Displayable child, float width) : base(child, width, Displayable.FLUID) { }
public void Add(Displayable display) { this.children.Add(display); }
// 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; }
public HeightContainer(Displayable child, float height) : base(child, Displayable.FLUID, height) { }
public Container(Displayable child, float width, float height) { this.child = child; this.width = width; this.height = height; }