added basic plugin changes

Signed-off-by: Ebbe <ebbe@ping-mee.de>
main
Ebbe Baß 2025-04-26 19:20:19 +02:00
parent aa4180e0b0
commit c0021241e1
4 changed files with 6030 additions and 0 deletions

5989
GMA3_APIdummy.lua 100644

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}