public void PushModal(EditorModal modal) { if (_modal != null) { throw new Exception("Modal already opened!"); } _modal = modal; }
private void DrawModals() { if (_modal != null) { if (!_modal.Draw()) { _modal = null; } } }
public void PopModal(EditorModal modal) { _modal = null; }