tobiasvl / love-imgui-filedialog

A simple filepicker for LOVE's imgui module

Home Page:https://gitlab.com/DanielPower/imgui-filedialog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple filepicker for LOVE's imgui module

https://gitlab.com/DanielPower/imgui-filedialog

License:MIT License


Languages

Language:Lua 100.0%