diff --git a/objects/Core.2585f4.json b/objects/Core.2585f4.json index 75ab948f..492c1a33 100644 --- a/objects/Core.2585f4.json +++ b/objects/Core.2585f4.json @@ -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", diff --git a/objects/Core.2585f4.ttslua b/objects/Core.2585f4.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/Core.2585f4.ttslua +++ /dev/null @@ -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 diff --git a/objects/CoreNightoftheZealot.64a613.json b/objects/CoreNightoftheZealot.64a613.json index b4ed2f1b..2edac00a 100644 --- a/objects/CoreNightoftheZealot.64a613.json +++ b/objects/CoreNightoftheZealot.64a613.json @@ -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", diff --git a/objects/CoreNightoftheZealot.64a613.ttslua b/objects/CoreNightoftheZealot.64a613.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/CoreNightoftheZealot.64a613.ttslua +++ /dev/null @@ -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 diff --git a/objects/EdgeoftheEarth.895eaa.json b/objects/EdgeoftheEarth.895eaa.json index f1750624..0e87d74c 100644 --- a/objects/EdgeoftheEarth.895eaa.json +++ b/objects/EdgeoftheEarth.895eaa.json @@ -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", diff --git a/objects/EdgeoftheEarth.895eaa.ttslua b/objects/EdgeoftheEarth.895eaa.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/EdgeoftheEarth.895eaa.ttslua +++ /dev/null @@ -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 diff --git a/objects/EdgeoftheEarthInvestigators.a32f43.json b/objects/EdgeoftheEarthInvestigators.a32f43.json index 97186af7..1de2fc4e 100644 --- a/objects/EdgeoftheEarthInvestigators.a32f43.json +++ b/objects/EdgeoftheEarthInvestigators.a32f43.json @@ -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", diff --git a/objects/EdgeoftheEarthInvestigators.a32f43.ttslua b/objects/EdgeoftheEarthInvestigators.a32f43.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/EdgeoftheEarthInvestigators.a32f43.ttslua +++ /dev/null @@ -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 diff --git a/objects/ReturntoTheCircleUndone.757324.json b/objects/ReturntoTheCircleUndone.757324.json index e00448eb..18a8a5a4 100644 --- a/objects/ReturntoTheCircleUndone.757324.json +++ b/objects/ReturntoTheCircleUndone.757324.json @@ -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", diff --git a/objects/ReturntoTheCircleUndone.757324.ttslua b/objects/ReturntoTheCircleUndone.757324.ttslua deleted file mode 100644 index edf3a027..00000000 --- a/objects/ReturntoTheCircleUndone.757324.ttslua +++ /dev/null @@ -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 diff --git a/objects/ReturntoTheDunwichLegacy.ce9130.json b/objects/ReturntoTheDunwichLegacy.ce9130.json index 2731ad1f..acc8c61a 100644 --- a/objects/ReturntoTheDunwichLegacy.ce9130.json +++ b/objects/ReturntoTheDunwichLegacy.ce9130.json @@ -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", diff --git a/objects/ReturntoTheDunwichLegacy.ce9130.ttslua b/objects/ReturntoTheDunwichLegacy.ce9130.ttslua deleted file mode 100644 index edf3a027..00000000 --- a/objects/ReturntoTheDunwichLegacy.ce9130.ttslua +++ /dev/null @@ -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 diff --git a/objects/ReturntoTheForgottenAge.479ff3.json b/objects/ReturntoTheForgottenAge.479ff3.json index 689e8f04..bdf385e6 100644 --- a/objects/ReturntoTheForgottenAge.479ff3.json +++ b/objects/ReturntoTheForgottenAge.479ff3.json @@ -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", diff --git a/objects/ReturntoTheForgottenAge.479ff3.ttslua b/objects/ReturntoTheForgottenAge.479ff3.ttslua deleted file mode 100644 index edf3a027..00000000 --- a/objects/ReturntoTheForgottenAge.479ff3.ttslua +++ /dev/null @@ -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 diff --git a/objects/ReturntoThePathtoCarcosa.e9889a.json b/objects/ReturntoThePathtoCarcosa.e9889a.json index 51207c74..42719a15 100644 --- a/objects/ReturntoThePathtoCarcosa.e9889a.json +++ b/objects/ReturntoThePathtoCarcosa.e9889a.json @@ -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", diff --git a/objects/ReturntoThePathtoCarcosa.e9889a.ttslua b/objects/ReturntoThePathtoCarcosa.e9889a.ttslua deleted file mode 100644 index edf3a027..00000000 --- a/objects/ReturntoThePathtoCarcosa.e9889a.ttslua +++ /dev/null @@ -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 diff --git a/objects/ReturntotheNightoftheZealot.56270d.json b/objects/ReturntotheNightoftheZealot.56270d.json index 170bb276..43d70322 100644 --- a/objects/ReturntotheNightoftheZealot.56270d.json +++ b/objects/ReturntotheNightoftheZealot.56270d.json @@ -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", diff --git a/objects/ReturntotheNightoftheZealot.56270d.ttslua b/objects/ReturntotheNightoftheZealot.56270d.ttslua deleted file mode 100644 index edf3a027..00000000 --- a/objects/ReturntotheNightoftheZealot.56270d.ttslua +++ /dev/null @@ -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 diff --git a/objects/StarterDeckInvestigators.35fb9c.json b/objects/StarterDeckInvestigators.35fb9c.json index 380f1fe9..0e0b8e51 100644 --- a/objects/StarterDeckInvestigators.35fb9c.json +++ b/objects/StarterDeckInvestigators.35fb9c.json @@ -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", diff --git a/objects/StarterDeckInvestigators.35fb9c.ttslua b/objects/StarterDeckInvestigators.35fb9c.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/StarterDeckInvestigators.35fb9c.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheCircleUndone.0dcbe8.json b/objects/TheCircleUndone.0dcbe8.json index f2306fb0..deda8c07 100644 --- a/objects/TheCircleUndone.0dcbe8.json +++ b/objects/TheCircleUndone.0dcbe8.json @@ -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", diff --git a/objects/TheCircleUndone.0dcbe8.ttslua b/objects/TheCircleUndone.0dcbe8.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/TheCircleUndone.0dcbe8.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheCircleUndone.63e097.json b/objects/TheCircleUndone.63e097.json index 4899e202..8ffe154c 100644 --- a/objects/TheCircleUndone.63e097.json +++ b/objects/TheCircleUndone.63e097.json @@ -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", diff --git a/objects/TheCircleUndone.63e097.ttslua b/objects/TheCircleUndone.63e097.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/TheCircleUndone.63e097.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheDream-Eaters.a16a1a.json b/objects/TheDream-Eaters.a16a1a.json index 78b221c0..b33cba37 100644 --- a/objects/TheDream-Eaters.a16a1a.json +++ b/objects/TheDream-Eaters.a16a1a.json @@ -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", diff --git a/objects/TheDream-Eaters.a16a1a.ttslua b/objects/TheDream-Eaters.a16a1a.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/TheDream-Eaters.a16a1a.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheDream-Eaters.a34f34.json b/objects/TheDream-Eaters.a34f34.json index 8be8bae2..b2a02b8d 100644 --- a/objects/TheDream-Eaters.a34f34.json +++ b/objects/TheDream-Eaters.a34f34.json @@ -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", diff --git a/objects/TheDream-Eaters.a34f34.ttslua b/objects/TheDream-Eaters.a34f34.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/TheDream-Eaters.a34f34.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheDunwichLegacy.2898f6.json b/objects/TheDunwichLegacy.2898f6.json index 450d3f3d..2d5dbaed 100644 --- a/objects/TheDunwichLegacy.2898f6.json +++ b/objects/TheDunwichLegacy.2898f6.json @@ -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", diff --git a/objects/TheDunwichLegacy.2898f6.ttslua b/objects/TheDunwichLegacy.2898f6.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/TheDunwichLegacy.2898f6.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheDunwichLegacy.5889dd.json b/objects/TheDunwichLegacy.5889dd.json index 7d0d5b42..17f828d0 100644 --- a/objects/TheDunwichLegacy.5889dd.json +++ b/objects/TheDunwichLegacy.5889dd.json @@ -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", diff --git a/objects/TheDunwichLegacy.5889dd.ttslua b/objects/TheDunwichLegacy.5889dd.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/TheDunwichLegacy.5889dd.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheForgottenAge.03b888.json b/objects/TheForgottenAge.03b888.json index 1424a3bf..61674160 100644 --- a/objects/TheForgottenAge.03b888.json +++ b/objects/TheForgottenAge.03b888.json @@ -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", diff --git a/objects/TheForgottenAge.03b888.ttslua b/objects/TheForgottenAge.03b888.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/TheForgottenAge.03b888.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheForgottenAge.0bcf19.json b/objects/TheForgottenAge.0bcf19.json index 98c585e2..73175bb6 100644 --- a/objects/TheForgottenAge.0bcf19.json +++ b/objects/TheForgottenAge.0bcf19.json @@ -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", diff --git a/objects/TheForgottenAge.0bcf19.ttslua b/objects/TheForgottenAge.0bcf19.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/TheForgottenAge.0bcf19.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheInnsmouthConspiracy.10bd18.json b/objects/TheInnsmouthConspiracy.10bd18.json index bbfdc88a..a015842a 100644 --- a/objects/TheInnsmouthConspiracy.10bd18.json +++ b/objects/TheInnsmouthConspiracy.10bd18.json @@ -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", diff --git a/objects/TheInnsmouthConspiracy.10bd18.ttslua b/objects/TheInnsmouthConspiracy.10bd18.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/TheInnsmouthConspiracy.10bd18.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheInnsmouthConspiracy.465aab.json b/objects/TheInnsmouthConspiracy.465aab.json index 829dc007..c922cb5b 100644 --- a/objects/TheInnsmouthConspiracy.465aab.json +++ b/objects/TheInnsmouthConspiracy.465aab.json @@ -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", diff --git a/objects/TheInnsmouthConspiracy.465aab.ttslua b/objects/TheInnsmouthConspiracy.465aab.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/TheInnsmouthConspiracy.465aab.ttslua +++ /dev/null @@ -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 diff --git a/objects/ThePathtoCarcosa.899c3a.json b/objects/ThePathtoCarcosa.899c3a.json index fec6fe9e..7b9cd346 100644 --- a/objects/ThePathtoCarcosa.899c3a.json +++ b/objects/ThePathtoCarcosa.899c3a.json @@ -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", diff --git a/objects/ThePathtoCarcosa.899c3a.ttslua b/objects/ThePathtoCarcosa.899c3a.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/ThePathtoCarcosa.899c3a.ttslua +++ /dev/null @@ -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 diff --git a/objects/ThePathtoCarcosa.aca04c.json b/objects/ThePathtoCarcosa.aca04c.json index f6d475ec..fd904f8f 100644 --- a/objects/ThePathtoCarcosa.aca04c.json +++ b/objects/ThePathtoCarcosa.aca04c.json @@ -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", diff --git a/objects/ThePathtoCarcosa.aca04c.ttslua b/objects/ThePathtoCarcosa.aca04c.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/ThePathtoCarcosa.aca04c.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheScarletKeys.300fcc.json b/objects/TheScarletKeys.300fcc.json index 63485b2d..4cce037a 100644 --- a/objects/TheScarletKeys.300fcc.json +++ b/objects/TheScarletKeys.300fcc.json @@ -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", diff --git a/objects/TheScarletKeys.300fcc.ttslua b/objects/TheScarletKeys.300fcc.ttslua deleted file mode 100644 index f775e516..00000000 --- a/objects/TheScarletKeys.300fcc.ttslua +++ /dev/null @@ -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 diff --git a/objects/TheScarletKeys.a4fd1b.json b/objects/TheScarletKeys.a4fd1b.json index f72d4928..bb578ad6 100644 --- a/objects/TheScarletKeys.a4fd1b.json +++ b/objects/TheScarletKeys.a4fd1b.json @@ -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", diff --git a/objects/TheScarletKeys.a4fd1b.ttslua b/objects/TheScarletKeys.a4fd1b.ttslua deleted file mode 100644 index e16ae19e..00000000 --- a/objects/TheScarletKeys.a4fd1b.ttslua +++ /dev/null @@ -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 diff --git a/src/core/DownloadBox.ttslua b/src/core/DownloadBox.ttslua index eceabbbb..350733e8 100644 --- a/src/core/DownloadBox.ttslua +++ b/src/core/DownloadBox.ttslua @@ -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