more inbuilt
This commit is contained in:
@@ -100,6 +100,8 @@ class PluginLoader(Window):
|
||||
sandbox.print = self.log #self.lua_runtime.globals().print
|
||||
sandbox.math = self.lua_runtime.globals().math
|
||||
sandbox.string = self.lua_runtime.globals().string
|
||||
sandbox.tostring = self.lua_runtime.globals().tostring
|
||||
sandbox.tonumber = self.lua_runtime.globals().tonumber
|
||||
sandbox.berry = lua_runtime_stuff
|
||||
|
||||
setfenv(0, sandbox)
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
local plugin = {}
|
||||
|
||||
function plugin.init()
|
||||
berry.ui.notify(tostring(math.random(10)))
|
||||
berry.ui.notify(tostring(math.random(1,10)))
|
||||
end
|
||||
|
||||
return plugin
|
||||
123
|
||||
Reference in New Issue
Block a user