-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_springmon_loader.lua
More file actions
38 lines (35 loc) · 1.1 KB
/
Copy pathapi_springmon_loader.lua
File metadata and controls
38 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-- Copy this file to the luaui/widgets and luarules/gadgets folders
-- Set this line to the springmon installation folder
SPRINGMON_DIR = "libs/springmon/"
-- Do NOT modify the following lines
local addon
if Script.GetName() == "LuaUI" then
addon = widget
elseif Script.GetName() == "LuaRules" then
addon = gadget
end
function addon:GetInfo()
local getInfo = {
name = "springmon",
desc = "Spring file monitor and autoreloader",
author = "gajop",
license = "MIT",
layer = -999,
enabled = true,
api = true,
hidden = true,
handler = true,
}
-- gadget unsynced
if gadgetHandler and not Script.GetSynced() then
getInfo.handler = false
end
return getInfo
end
if Script.GetName() == "LuaUI" then
VFS.Include(SPRINGMON_DIR .. "luaui/widgets/api_springmon.lua", nil, VFS.DEF_MODE)
elseif Script.GetName() == "LuaRules" then
VFS.Include(SPRINGMON_DIR .. "luarules/gadgets/api_springmon.lua", nil, VFS.DEF_MODE)
end