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