Skip to content

sjoerdev/imgui-file-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description:

This is a file dialog imgui implementation for C# and modern dotnet.

Example Image:

filedialog

Simple Usage:

ImGui.Begin("Window");
ImGui.SetWindowSize(new Vector2(600, 300), ImGuiCond.Once);
if (ImGui.Button("Open file dialog")) fileDialogOpen = true;
if (!fileDialogOpen && !string.IsNullOrEmpty(selectedPath)) ImGui.Text($"Selected path: {selectedPath}");
else ImGui.Text("Selected path: ?");
if (fileDialogOpen) FileDialog.Show(ref fileDialogOpen, ref selectedPath, FileDialog.DialogType.OpenFile);
ImGui.End();

Building Example:

Download .NET 9: https://dotnet.microsoft.com/en-us/download

Building for Windows: dotnet publish -o ./build/windows --sc true -r win-x64 -c release

Building for Linux: dotnet publish -o ./build/linux --sc true -r linux-x64 -c release

About

this is a file dialog window in imgui

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages