13 lines
302 B
Plaintext
13 lines
302 B
Plaintext
local GlobalApi = require("core/GlobalApi")
|
|
|
|
function onLoad()
|
|
self.addContextMenuItem("Download", download)
|
|
end
|
|
|
|
function download(playerColor)
|
|
local url = self.getGMNotes()
|
|
local player = Player[playerColor]
|
|
local replace = self.guid
|
|
GlobalApi.placeholderDownload(url, player, replace)
|
|
end
|