Class OrderedSectionGroup
Control that contains a list of OrderedSections and manages their lifecycle.
Namespace: VRLabs.SimpleShaderInspectors.Controls.Sections
Syntax
public class OrderedSectionGroup : SimpleControl, IControlContainer<OrderedSection>, IControlContainer
Remarks
The main purpose of this control is to manage multiple OrderedSection controls, reordering them when needed, and provide a button to enable disabled ones
In practice this control is what makes the entire ordered section system work, and that's the reason to why controls of type OrderedSection can only live inside this control.
Examples
Example usage:
OrderedSectionGroup group = this.AddOrderedSectionGroup("GroupAlias");
group.AddOrderedSection("_ActivateProperty1");
group.AddOrderedSection("_ActivateProperty2");
group.AddOrderedSection("_ActivateProperty3");
Constructors
| Name | Description |
|---|---|
| OrderedSectionGroup(String) | Default constructor of OrderedSectionGroup. |
Properties
| Name | Description |
|---|---|
| ButtonColor | Color of the add button. |
| ButtonStyle | Style for the add button. |
| Controls | List of available Ordered Sections. |
Methods
| Name | Description |
|---|---|
| AddControl(OrderedSection) | Implementation needed by IControlContainer<T> to add controls. All controls added are stored in Controls |
| ControlGUI(MaterialEditor) | Draws the group of sections. |
| GetControlList() | Implementation needed by IControlContainer<T> to get the object's controls list. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IControlContainer.AddControl(SimpleControl) | Implementation needed by IControlContainer to add controls. All controls added are stored in Controls only if the parameter is of type OrderedSection |
| IControlContainer.GetControlList() | Implementation needed by IControlContainer to get the object's controls list. |