move UIWindow to lua

This commit is contained in:
Eduardo Bart
2012-01-10 21:13:38 -02:00
parent a1374baee1
commit 8ad88c4070
23 changed files with 57 additions and 254 deletions

View File

@@ -99,6 +99,21 @@ function tonumber(v)
return oldtonumber(v)
end
function signalcall(param, ...)
if type(param) == 'function' then
return param(...)
elseif type(param) == 'table' then
for k,v in pairs(param) do
if param(...) then
return true
end
end
elseif func ~= nil then
error('attempt to call a non function value')
end
return false
end
function runscript(file)
g_lua.runScript(resolvepath(file, 2))
end