//public void RemoveEditorControlsFromList(ref List<MyGuiControlBase> removeFromControlsList)
 public void RemoveEditorControlsFromList(MyGuiControls removeFromControlsList)
 {
     if (removeFromControlsList != null)
     {
         foreach (MyGuiControlBase control in m_editorControls)
         {
             removeFromControlsList.Remove(control);
         }
     }
 }                
Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 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();
 }