Adding class library

This commit is contained in:
Openarl
2016-05-05 17:53:33 +10:00
parent 3b6700f259
commit 3f887d62a8
15 changed files with 875 additions and 827 deletions

View File

@@ -10,20 +10,20 @@ local vfs = require("vfs")
local listMode = { }
listMode.controls = {
common.newButton(2, 2, 60, 20, "New", function()
common.New("ButtonControl", 2, 2, 60, 20, "New", function()
listMode:New()
end),
common.newButton(66, 2, 60, 20, "Copy", function()
common.New("ButtonControl", 66, 2, 60, 20, "Copy", function()
listMode:CopySel()
end, function()
return listMode.sel ~= nil
end),
common.newButton(130, 2, 60, 20, "Rename", function()
common.New("ButtonControl", 130, 2, 60, 20, "Rename", function()
listMode:RenameSel()
end, function()
return listMode.sel ~= nil
end),
common.newButton(194, 2, 60, 20, "Delete", function()
common.New("ButtonControl", 194, 2, 60, 20, "Delete", function()
listMode:DeleteSel()
end, function()
return listMode.sel ~= nil