parent
aa4180e0b0
commit
c0021241e1
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
|||
debug = true
|
||||
|
||||
function debug_print(message)
|
||||
if debug == true then
|
||||
Printf(tostring(message))
|
||||
end
|
||||
end
|
||||
|
||||
function main(display_handle, args)
|
||||
if args then
|
||||
timeout = 5
|
||||
timeout, seperator, message = args.partition(";")
|
||||
local messageTable = {
|
||||
title = "Notification!",
|
||||
message = tostring(message),
|
||||
timeout = tonumber(timeout*1000),
|
||||
timeoutResultCancel = false,
|
||||
timeoutResultID = 99,
|
||||
}
|
||||
|
||||
local returnTable = MessageBox(messageTable)
|
||||
else
|
||||
Printf('You must atleast specify your notification message. You can do this by running the following command: Plugin "custom notifications" "5;Hello this is a notification!"\nThis will create a message with a duration of 5 seconds.')
|
||||
end
|
||||
end
|
||||
|
||||
return main
|
|
@ -0,0 +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" />
|
||||
</UserPlugin>
|
||||
</GMA3>
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
}
|
Loading…
Reference in New Issue