mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add setting change event
This commit is contained in:
parent
024f9670eb
commit
837f49e736
1 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,12 @@ function tb_frame_tostring(frame)
|
|||
return s
|
||||
end
|
||||
|
||||
local core_set_setting = core.set_setting
|
||||
function core.set_setting(name, value, ...)
|
||||
core_set_setting(name, value, ...)
|
||||
events.emit("core:setting."..name..".set", value)
|
||||
end
|
||||
|
||||
local function complete_app_lib(app)
|
||||
app.sleep = sleep
|
||||
app.script = __VC_SCRIPT_NAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue