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-03 14:33:27 -04:00
|
|
|
local url = self.getGMNotes()
|
|
|
|
local player = Player[playerColor]
|
|
|
|
local replace = self.guid
|
|
|
|
GlobalApi.placeholderDownload(url, player, replace)
|
2023-01-08 13:42:45 -05:00
|
|
|
end
|