Merge pull request #40 from argonui/downloadboxes

using require for downloading standalones
This commit is contained in:
Chr1Z 2022-11-16 01:00:42 +01:00 committed by GitHub
commit 089fac9018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 31 additions and 340 deletions

View File

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/AllorNothing.72ab92.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/AllorNothing.72ab92.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "All or Nothing",

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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/BadBlood.451eaa.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/BadBlood.451eaa.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Bad Blood",

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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/BytheBook.cc7eb3.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/BytheBook.cc7eb3.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "By the Book",

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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/ReadorDie.9e73fa.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/ReadorDie.9e73fa.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Read or Die",

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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/RedTideRising.5302f2.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/ChallengeScenarios.9f6801/RedTideRising.5302f2.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Red Tide Rising",

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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/CarnevaleofHorrors.23dd51.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/CarnevaleofHorrors.23dd51.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Carnevale of Horrors",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/CurseoftheRougarou.db7039.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/CurseoftheRougarou.db7039.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Curse of the Rougarou",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/FortuneandFolly.0dce91.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/FortuneandFolly.0dce91.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Fortune and Folly",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/GuardiansoftheAbyss.ee987d.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/GuardiansoftheAbyss.ee987d.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Guardians of the Abyss",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/MachinationsThroughTime.3c4f3c.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/MachinationsThroughTime.3c4f3c.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Machinations Through Time",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/MurderattheExcelsiorHotel.01d780.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/MurderattheExcelsiorHotel.01d780.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "Murder at the Excelsior Hotel",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/TheBlobthatAteEverything.4dee5a.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/TheBlobthatAteEverything.4dee5a.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Blob that Ate Everything",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/TheLabyrinthsofLunacy.4c173f.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/TheLabyrinthsofLunacy.4c173f.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "The Labyrinths of Lunacy",

View File

@ -1,24 +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,2.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

@ -63,7 +63,7 @@
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/WaroftheOuterGods.fc7674.luascriptstate",
"LuaScript_path": "OfficialStandaloneChallengeScenarios.0ef5c8/StandaloneScenarios.77a5f9/WaroftheOuterGods.fc7674.ttslua",
"LuaScript": "require(\"core/DownloadBox\")",
"MeasureMovement": false,
"Name": "Custom_Model",
"Nickname": "War of the Outer Gods",

View File

@ -1,24 +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,2.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

@ -0,0 +1,17 @@
function onLoad()
self.createButton({
label = "Download",
click_function = "buttonClick_download",
function_owner = self,
position = { 0, 0.1, 2.2 },
height = 240,
width = 800,
font_size = 150,
color = { 0, 0, 0 },
font_color = { 1, 1, 1 }
})
end
function buttonClick_download()
Global.call('placeholder_download', { url = self.getGMNotes(), replace = self.guid })
end