コード例 #1
0
ファイル: IContainerEditor.cs プロジェクト: code2X/dniPrints
 /// <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
ファイル: IContainerEditor.cs プロジェクト: code2X/dniPrints
 protected void NotifyContainerTypeChange(diContainer.EContainer eContainer)
 {
     OnContainerTypeChange?.Invoke(eContainer);
 }