MyGuiControlCombobox GetComboboxHandlingInputNow() { for (int i = 0; i < m_controlsVisible.Count; i++) { MyGuiControlBase control = m_controlsVisible[i]; if (control is MyGuiControlCombobox) { MyGuiControlCombobox tempCombobox = (MyGuiControlCombobox)control; if (tempCombobox.IsHandlingInputNow() == true) { foreach (MyGuiControlBase c in m_controlsAll) { if (c is MyGuiControlCombobox && c != control) { ((MyGuiControlCombobox)c).SetKeyboardActiveControl(false); } } return(tempCombobox); } } } // Not found return(null); }
public override void Draw() { base.Draw(); foreach (MyGuiControlBase control in Controls.GetList()) { if (control is MyGuiControlListboxDragAndDrop) { MyGuiControlListboxDragAndDrop tempDragAndDrop = (MyGuiControlListboxDragAndDrop)control; if (tempDragAndDrop.IsActive()) { continue; } } if (control is MyGuiControlCombobox) { MyGuiControlCombobox tempCombobox = (MyGuiControlCombobox)control; if (tempCombobox.IsHandlingInputNow() == true) { continue; } } if (control.Visible) { control.Draw(); } } }