示例#1
0
 /// <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);
 }
示例#2
0
 protected void NotifyContainerTypeChange(diContainer.EContainer eContainer)
 {
     OnContainerTypeChange?.Invoke(eContainer);
 }