2024-08-03 20:33:27 +02:00
|
|
|
local GlobalApi = require("core/GlobalApi")
|
|
|
|
|
2023-01-08 19:42:45 +01:00
|
|
|
function onLoad()
|
|
|
|
self.addContextMenuItem("Download", download)
|
|
|
|
end
|
|
|
|
|
2024-04-03 18:26:33 +02:00
|
|
|
function download(playerColor)
|
2024-08-11 19:06:43 +02:00
|
|
|
local filename = self.getGMNotes()
|
2024-08-03 20:33:27 +02:00
|
|
|
local player = Player[playerColor]
|
|
|
|
local replace = self.guid
|
2024-08-11 19:06:43 +02:00
|
|
|
GlobalApi.placeholderDownload(filename, player, replace)
|
2023-01-08 19:42:45 +01:00
|
|
|
end
|