move official content to require for downloadboxes

This commit is contained in:
Chr1Z93 2022-12-19 18:25:24 +01:00
parent 8529ee70eb
commit 2e4349bd49
49 changed files with 53 additions and 557 deletions

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "Core.2585f4.luascriptstate",
"LuaScript_path": "Core.2585f4.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Core",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState": "{\"ml\":[]}",
"LuaScript_path": "CoreNightoftheZealot.64a613.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Core/Night of the Zealot",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "EdgeoftheEarth.895eaa.luascriptstate",
"LuaScript_path": "EdgeoftheEarth.895eaa.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Edge of the Earth",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "EdgeoftheEarthInvestigators.a32f43.luascriptstate",
"LuaScript_path": "EdgeoftheEarthInvestigators.a32f43.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Edge of the Earth Investigators",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "ReturntoTheCircleUndone.757324.luascriptstate",
"LuaScript_path": "ReturntoTheCircleUndone.757324.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Return to The Circle Undone",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,1,-2}, rotation={0,0,0}, height=240, width=800,
font_size=150, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "ReturntoTheDunwichLegacy.ce9130.luascriptstate",
"LuaScript_path": "ReturntoTheDunwichLegacy.ce9130.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Return to The Dunwich Legacy",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,1,-2}, rotation={0,0,0}, height=240, width=800,
font_size=150, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "ReturntoTheForgottenAge.479ff3.luascriptstate",
"LuaScript_path": "ReturntoTheForgottenAge.479ff3.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Return to The Forgotten Age",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,1,-2}, rotation={0,0,0}, height=240, width=800,
font_size=150, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "ReturntoThePathtoCarcosa.e9889a.luascriptstate",
"LuaScript_path": "ReturntoThePathtoCarcosa.e9889a.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Return to The Path to Carcosa",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,1,-2}, rotation={0,0,0}, height=240, width=800,
font_size=150, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "ReturntotheNightoftheZealot.56270d.luascriptstate",
"LuaScript_path": "ReturntotheNightoftheZealot.56270d.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Return to the Night of the Zealot",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,1,-2}, rotation={0,0,0}, height=240, width=800,
font_size=150, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "StarterDeckInvestigators.35fb9c.luascriptstate",
"LuaScript_path": "StarterDeckInvestigators.35fb9c.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Starter Deck Investigators",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheCircleUndone.0dcbe8.luascriptstate",
"LuaScript_path": "TheCircleUndone.0dcbe8.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Circle Undone",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheCircleUndone.63e097.luascriptstate",
"LuaScript_path": "TheCircleUndone.63e097.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Circle Undone",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheDream-Eaters.a16a1a.luascriptstate",
"LuaScript_path": "TheDream-Eaters.a16a1a.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Dream-Eaters",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheDream-Eaters.a34f34.luascriptstate",
"LuaScript_path": "TheDream-Eaters.a34f34.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Dream-Eaters",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheDunwichLegacy.2898f6.luascriptstate",
"LuaScript_path": "TheDunwichLegacy.2898f6.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Dunwich Legacy",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheDunwichLegacy.5889dd.luascriptstate",
"LuaScript_path": "TheDunwichLegacy.5889dd.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Dunwich Legacy",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheForgottenAge.03b888.luascriptstate",
"LuaScript_path": "TheForgottenAge.03b888.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Forgotten Age",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheForgottenAge.0bcf19.luascriptstate",
"LuaScript_path": "TheForgottenAge.0bcf19.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Forgotten Age",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheInnsmouthConspiracy.10bd18.luascriptstate",
"LuaScript_path": "TheInnsmouthConspiracy.10bd18.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Innsmouth Conspiracy",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheInnsmouthConspiracy.465aab.luascriptstate",
"LuaScript_path": "TheInnsmouthConspiracy.465aab.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Innsmouth Conspiracy",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "ThePathtoCarcosa.899c3a.luascriptstate",
"LuaScript_path": "ThePathtoCarcosa.899c3a.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Path to Carcosa",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "ThePathtoCarcosa.aca04c.luascriptstate",
"LuaScript_path": "ThePathtoCarcosa.aca04c.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Path to Carcosa",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheScarletKeys.300fcc.luascriptstate",
"LuaScript_path": "TheScarletKeys.300fcc.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Scarlet Keys",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,6}, rotation={0,0,0}, height=500, width=1600,
font_size=350, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -43,7 +43,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "TheScarletKeys.a4fd1b.luascriptstate",
"LuaScript_path": "TheScarletKeys.a4fd1b.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Scarlet Keys",

View File

@ -1,22 +0,0 @@
function onload(saved_data)
createDownloadButton()
end
--Beginning Setup
--Make Download button
function createDownloadButton()
self.createButton({
label="Download", click_function="buttonClick_download", function_owner=self,
position={0,0.1,7}, rotation={0,0,0}, height=850, width=3300,
font_size=700, color={0,0,0}, font_color={1,1,1}
})
end
--Triggered by download button,
function buttonClick_download()
local params = { url = self.getGMNotes(), replace = self.guid }
Global.call('placeholder_download', params)
end

View File

@ -1,17 +1,41 @@
function onLoad()
self.createButton({
notes = self.getGMNotes()
-- default parameters (e.g. scenarios)
buttonParameters = {
label = "Download",
click_function = "buttonClick_download",
function_owner = self,
position = { 0, 0.1, 2.2 },
height = 240,
position = { x = 0, y = 0.1, z = 2.1 },
height = 250,
width = 800,
font_size = 150,
color = { 0, 0, 0 },
font_color = { 1, 1, 1 }
})
}
-- return to boxes
if string.match(notes, "................") == "campaigns/return" then
buttonParameters.position.z = -2
-- official campaign boxes
elseif string.match(notes, ".........") == "campaigns" then
buttonParameters.position.z = 6
buttonParameters.height = 500
buttonParameters.width = 1700
buttonParameters.font_size = 350
-- investigator boxes
elseif string.match(notes, ".............") == "investigators" then
buttonParameters.position.z = 7
buttonParameters.height = 850
buttonParameters.width = 3400
buttonParameters.font_size = 700
end
self.createButton(buttonParameters)
end
function buttonClick_download()
Global.call('placeholder_download', { url = self.getGMNotes(), replace = self.guid })
Global.call('placeholder_download', { url = notes, replace = self.guid })
end