/// <summary> /// Draw container type such as [Value, Array, Set ...] /// </summary> protected void DrawContainerType(Array containerTypeArray, diContainer.EContainer eContainer, string label) { ImGuiEx.ComboView(label, () => { foreach (diContainer.EContainer type in containerTypeArray) { if (ImGui.Selectable(type.ToString()) && eContainer != type) { NotifyContainerTypeChange(type); } } }, "", ImGuiComboFlags.NoPreview); }
protected void NotifyContainerTypeChange(diContainer.EContainer eContainer) { OnContainerTypeChange?.Invoke(eContainer); }