Skip to content

tobiasvl/love-imgui-filedialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileDialog for LOVE's imgui module

A fork of Daniel Power's imgui-filedialog.

This is just a simple file picker that allows you to browse your file system and select a file to open. It will then pass that file to your program using a callback function. This was written for the LÖVE imgui module, but may also work with other frameworks using the Lua bindings for imgui. I have not tested anything other than LÖVE.

Screenshot

Usage

Open the file picker

Filedialog = require('filedialog')
filedialog = Filedialog.new(path, fileCallback, cancelCallback)

Draw the file picker

if filedialog then
	filedialog = filedialog.draw()
end