//public void RemoveEditorControlsFromList(ref List<MyGuiControlBase> removeFromControlsList)
 public void RemoveEditorControlsFromList(MyGuiControls removeFromControlsList)
 {
     if (removeFromControlsList != null)
     {
         foreach (MyGuiControlBase control in m_editorControls)
         {
             removeFromControlsList.Remove(control);
         }
     }
 }                
Пример #2
0
 public MyGuiControlParent(IMyGuiControlsParent parent, Vector2 position, Vector2 size, Vector4?backgroundColor, StringBuilder toolTip, MyTexture2D controlTexture)
     : base(parent, position, size, backgroundColor, toolTip, controlTexture, null, null, true)
 {
     m_controls = new MyGuiControls();
 }
 //public void AddEditorControlsToList(ref List<MyGuiControlBase> addToControlsList)
 public void AddEditorControlsToList(MyGuiControls addToControlsList)
 {
     if (addToControlsList != null)
     {
         foreach (MyGuiControlBase control in m_editorControls)
         {
             addToControlsList.Add(control);
         }
     }
 }
Пример #4
0
 public MyGuiControlParent(IMyGuiControlsParent parent, Vector2 position, Vector2 size, Vector4? backgroundColor, StringBuilder toolTip, MyTexture2D controlTexture)
     : base(parent, position, size, backgroundColor, toolTip, controlTexture, null, null, true)
 {
     m_controls = new MyGuiControls();
 }