public MyPlanetsDebugInputComponent() { m_components = new MyDebugComponent[] { new ShapeComponent(this), new InfoComponent(this), new SectorsComponent(this), new MiscComponent(this) }; }
protected MyGuiControlCheckbox AddCheckBox(String text, MyDebugComponent component, List <MyGuiControlBase> controlGroup = null, Vector4?color = null, Vector2?checkBoxOffset = null) { MyGuiControlCheckbox checkBox = AddCheckBox(text, true, controlGroup, color, checkBoxOffset); checkBox.IsChecked = component.Enabled; checkBox.IsCheckedChanged = delegate(MyGuiControlCheckbox sender) { component.Enabled = sender.IsChecked; }; return(checkBox); }
protected void AddGroupInput(String text, MyDebugComponent component, List <MyGuiControlBase> controlGroup = null) { MyGuiControlCheckbox checkBox = AddCheckBox(text, component, controlGroup); s_inputList.Add(checkBox); }