pcornier / lovepicker

A Löve file picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Löve file picker

Tested on Android and Linux.

video

Usage

local picker = require 'picker'

local selected_file
picker.open('/', function(selected)
  selected_file = selected
  picker.close()
end)

Options

picker.width -- default love.graphics.getWidth()
picker.height -- default love.graphics.getHeight()
picker.font_size
picker.spacing -- line spacing
picker.padding
picker.px -- default 0
picker.py -- default 0
picker.bg_color -- backgroud color
picker.border_color
picker.dir_color -- color for directories
picker.sym_color -- color for symlinks
picker.exe_color -- color for executables
picker.file_color -- color for standard files
picker.resolve -- callback that receives the selected file
picker.font

About

A Löve file picker


Languages

Language:Lua 100.0%