Merge pull request #40 from argonui/downloadboxes
using require for downloading standalones
This commit is contained in:
commit
089fac9018
@ -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",
|
||||
|
@ -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
|
@ -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",
|
||||
|
@ -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
|
@ -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",
|
||||
|
@ -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
|
@ -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",
|
||||
|
@ -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
|
@ -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",
|
||||
|
@ -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
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
17
src/core/DownloadBox.ttslua
Normal file
17
src/core/DownloadBox.ttslua
Normal 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
|
Loading…
Reference in New Issue
Block a user