Merge branch 'main' into onload-improvements
This commit is contained in:
commit
771f3f07fa
@ -2,6 +2,7 @@
|
|||||||
"id": "09123",
|
"id": "09123",
|
||||||
"type": "Asset",
|
"type": "Asset",
|
||||||
"class": "Neutral",
|
"class": "Neutral",
|
||||||
|
"startsInPlay": true,
|
||||||
"level": 3,
|
"level": 3,
|
||||||
"traits": "Ritual.",
|
"traits": "Ritual.",
|
||||||
"permanent": true,
|
"permanent": true,
|
||||||
|
@ -2,6 +2,6 @@ function onLoad()
|
|||||||
self.addContextMenuItem("Download", download)
|
self.addContextMenuItem("Download", download)
|
||||||
end
|
end
|
||||||
|
|
||||||
function download()
|
function download(_, playerColor)
|
||||||
Global.call('placeholder_download', { url = self.getGMNotes(), replace = self.guid })
|
Global.call('placeholder_download', { url = self.getGMNotes(), player = Player[playerColor], replace = self.guid })
|
||||||
end
|
end
|
||||||
|
@ -37,5 +37,5 @@ function onLoad()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function buttonClick_download(_, playerColor)
|
function buttonClick_download(_, playerColor)
|
||||||
Global.call('placeholder_download', { url = self.getGMNotes(), player = Player[playerColor], replace = self.guid })
|
Global.call('placeholder_download', { url = self.getGMNotes(), player = playerColor and Player[playerColor] or nil, replace = self.guid })
|
||||||
end
|
end
|
||||||
|
@ -40,7 +40,7 @@ local bagSearchers = {}
|
|||||||
local hideTitleSplashWaitFunctionId = nil
|
local hideTitleSplashWaitFunctionId = nil
|
||||||
|
|
||||||
-- online functionality related variables
|
-- online functionality related variables
|
||||||
local MOD_VERSION = "3.6.0"
|
local MOD_VERSION = "3.7.0"
|
||||||
local SOURCE_REPO = 'https://raw.githubusercontent.com/chr1z93/loadable-objects/main'
|
local SOURCE_REPO = 'https://raw.githubusercontent.com/chr1z93/loadable-objects/main'
|
||||||
local library, requestObj, modMeta
|
local library, requestObj, modMeta
|
||||||
local acknowledgedUpgradeVersions = {}
|
local acknowledgedUpgradeVersions = {}
|
||||||
@ -783,7 +783,9 @@ function placeholder_download(params)
|
|||||||
UI.setAttribute('download_progress', 'active', false)
|
UI.setAttribute('download_progress', 'active', false)
|
||||||
|
|
||||||
-- hide download window
|
-- hide download window
|
||||||
|
if params.player then
|
||||||
changeWindowVisibilityForColor(params.player.color, "downloadWindow", false)
|
changeWindowVisibilityForColor(params.player.color, "downloadWindow", false)
|
||||||
|
end
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user