parent
b79f2e8700
commit
96a08aed38
|
@ -1,7 +1,7 @@
|
|||
debug = true
|
||||
local debug_mode = false
|
||||
|
||||
local function debug_print(message)
|
||||
if debug == true then
|
||||
if debug_mode == true then
|
||||
Printf(tostring(message))
|
||||
end
|
||||
end
|
||||
|
@ -18,7 +18,7 @@ local function split_first(inputstr, sep)
|
|||
return first, rest
|
||||
end
|
||||
|
||||
local function main(display_handle, args)
|
||||
local function notification(display_handle, args)
|
||||
if args then
|
||||
timeout = 5
|
||||
local timeoutStr, message = split_first(args, ";")
|
||||
|
@ -38,4 +38,4 @@ local function main(display_handle, args)
|
|||
end
|
||||
end
|
||||
|
||||
return main
|
||||
return notification
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GMA3 DataVersion="2.1.0.1">
|
||||
<UserPlugin Name="custom notifications" Guid="E3 1C 05 FC 18 8A 10 00 0D 45 18 A2 5E 43 E6 27" Version="1.0.0.0">
|
||||
<ComponentLua Name="custom notifications" Guid="37 F3 0C 07 C5 0C 10 02 B2 2C 1E 4D F2 1C 2D A1" FileName="custom notifications.lua" />
|
||||
<ComponentLua Name="custom notifications" Guid="37 F3 0C 07 C5 0C 10 02 B2 2C 1E 4D F2 1C 2D A1" FileName="custom_notify.lua" />
|
||||
</UserPlugin>
|
||||
</GMA3>
|
Loading…
Reference in New Issue