// Token: 0x060011A5 RID: 4517 RVA: 0x00072A2C File Offset: 0x00070E2C public Sleek2InspectorList(Sleek2Inspector newRootInspector, ObjectInspectableInfo newParentInfo, IList newList, Type newListType, IInspectableList newInspectable) { this.rootInspector = newRootInspector; this.parentInfo = newParentInfo; this.list = newList; this.listType = newListType; this.inspectable = newInspectable; base.name = "List"; this.collapseFoldoutsByDefault = this.rootInspector.collapseFoldoutsByDefault; this.panel = new Sleek2Element(); this.panel.transform.reset(); this.addElement(this.panel); VerticalLayoutGroup verticalLayoutGroup = base.gameObject.AddComponent <VerticalLayoutGroup>(); verticalLayoutGroup.spacing = 5f; verticalLayoutGroup.childForceExpandWidth = true; verticalLayoutGroup.childForceExpandHeight = false; VerticalLayoutGroup verticalLayoutGroup2 = this.panel.gameObject.AddComponent <VerticalLayoutGroup>(); verticalLayoutGroup2.spacing = 5f; verticalLayoutGroup2.childForceExpandWidth = true; verticalLayoutGroup2.childForceExpandHeight = false; if (this.inspectable == null || this.inspectable.canInspectorAdd) { this.addButton = new Sleek2ImageLabelButton(); this.addButton.transform.anchorMin = new Vector2(0f, 0f); this.addButton.transform.anchorMax = new Vector2(0f, 0f); this.addButton.transform.sizeDelta = new Vector2(200f, 0f); this.addButton.clicked += this.handleAddButtonClicked; this.addButton.label.textComponent.text = "+"; this.addElement(this.addButton); LayoutElement layoutElement = this.addButton.gameObject.AddComponent <LayoutElement>(); layoutElement.minHeight = (float)Sleek2Config.bodyHeight; } if (this.inspectable != null) { this.inspectable.inspectorChanged += this.handleListChanged; } this.refresh(); }
public Sleek2InspectorArray(Sleek2Inspector newRootInspector, ObjectInspectableInfo newParentInfo, Array newArray, Type newArrayType) { this.rootInspector = newRootInspector; this.parentInfo = newParentInfo; this.array = newArray; this.arrayType = newArrayType; base.name = "Array"; this.panel = new Sleek2Element(); this.panel.transform.reset(); this.addElement(this.panel); VerticalLayoutGroup verticalLayoutGroup = base.gameObject.AddComponent <VerticalLayoutGroup>(); verticalLayoutGroup.spacing = 5f; verticalLayoutGroup.childForceExpandWidth = true; verticalLayoutGroup.childForceExpandHeight = false; VerticalLayoutGroup verticalLayoutGroup2 = this.panel.gameObject.AddComponent <VerticalLayoutGroup>(); verticalLayoutGroup2.spacing = 5f; verticalLayoutGroup2.childForceExpandWidth = true; verticalLayoutGroup2.childForceExpandHeight = false; this.refresh(); }