/// <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); }
/// <summary> /// Draw ditype such as [Bool, Int, Float ...] /// </summary> protected virtual void DrawdiType(List <diType> ditypeList, Type curType, string label) { ImGui.SetNextItemWidth(100); ImGuiEx.ComboView(label, () => { foreach (diType type in ditypeList) { //Selected and type not equal if (ImGui.Selectable(type.ValueType.Name) && Equals(type.ValueType, curType) == false) { NotifyObjectTypeChange(type); } } }, curType.Name); }