mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
move UIWindow to lua
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user