diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.json index 7eb1937e..2ff84190 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.json @@ -19,17 +19,20 @@ "06BTheWebofDreams.1bac4d", "05TheCircleUndone.20d53c", "ReturntoExpansions.2275ed", + "10TheFeastofHemlockVale.2e50cf", "02TheDunwichLegacy.38d1cd", "C1DarkMatter.3a08d9", "S2Stand-Alones2020-202.4c47d8", "01NightoftheZealot.56a91d", "P1ChallengeScenarios.8f7e04", + "UpdatingtoNewVersions.a1b358", "04TheForgottenAge.d5cd12", "S1Stand-Alones2016-2020.e227ad", "08EdgeoftheEarth.e32dc3", "C2AliceinWonderland.ed1d0c", "06ATheDream-Quest.f03c2d", - "07TheInnsmouthConspiracy.f5f3b5" + "07TheInnsmouthConspiracy.f5f3b5", + "C3CyclopeanFoundations.f72800" ], "ContainedObjects_path": "CYOACampaignGuides.e87ea2", "CustomMesh": { @@ -74,15 +77,15 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 21.012, - "posY": 3.161, - "posZ": -26.838, + "posX": 39.494, + "posY": 3.793, + "posZ": 41.744, "rotX": 0, "rotY": 270, "rotZ": 0, - "scaleX": 1, - "scaleY": 1, - "scaleZ": 1 + "scaleX": 1.25, + "scaleY": 1.25, + "scaleZ": 1.25 }, "Value": 0, "XmlUI": "" diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.luascriptstate b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.luascriptstate index 067ac090..1b44175c 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.luascriptstate +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.luascriptstate @@ -1 +1 @@ -{"ml":{"06a742":{"lock":false,"pos":{"x":65,"y":1.2494,"z":-31.3},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"11d148":{"lock":false,"pos":{"x":47,"y":1.2494,"z":-25.1},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"1bac4d":{"lock":false,"pos":{"x":56.0004,"y":1.2494,"z":-31.3},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"20d53c":{"lock":false,"pos":{"x":56,"y":1.2494,"z":-18.8953},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"2275ed":{"lock":false,"pos":{"x":56,"y":1.569,"z":-11},"rot":{"x":0,"y":90,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"38d1cd":{"lock":false,"pos":{"x":65,"y":1.2494,"z":-25.1},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"3a08d9":{"lock":false,"pos":{"x":38,"y":1.2494,"z":-25.1},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"4c47d8":{"lock":false,"pos":{"x":47,"y":1.2494,"z":-37.5},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"56a91d":{"lock":false,"pos":{"x":65,"y":1.2494,"z":-18.8955},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"8f7e04":{"lock":false,"pos":{"x":38,"y":1.2494,"z":-18.9},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"d5cd12":{"lock":false,"pos":{"x":65,"y":1.2494,"z":-37.5},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"e227ad":{"lock":false,"pos":{"x":47,"y":1.2494,"z":-31.3},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"e32dc3":{"lock":false,"pos":{"x":47,"y":1.2494,"z":-18.9},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"ed1d0c":{"lock":false,"pos":{"x":38,"y":1.2494,"z":-31.3},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"f03c2d":{"lock":false,"pos":{"x":56.0004,"y":1.2494,"z":-25.1},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"f5f3b5":{"lock":false,"pos":{"x":56.2742,"y":1.2494,"z":-37.5},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}}}} +{"ml":{"06a742":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":16.0398769378662},"rot":{"x":0,"y":269.9891,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"11d148":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":-25.9601230621338},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"1bac4d":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":-7.96012306213379},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"20d53c":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":4.03987693786621},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"2275ed":{"lock":false,"pos":{"x":41.8248138427734,"y":1.56903828582764,"z":-32.9601230621338},"rot":{"x":0,"y":90.0118,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"2e50cf":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":-31.9601230621338},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"38d1cd":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":22.0398769378662},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"3a08d9":{"lock":false,"pos":{"x":39.8248138427734,"y":1.24943828582764,"z":28.0398769378662},"rot":{"x":0,"y":270.0101,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"4c47d8":{"lock":false,"pos":{"x":48.3248138427734,"y":1.24943828582764,"z":22.0398769378662},"rot":{"x":0,"y":270.0195,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"56a91d":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":28.0398769378662},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"8f7e04":{"lock":false,"pos":{"x":48.3248138427734,"y":1.24943828582764,"z":4.03987693786621},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"a1b358":{"lock":false,"pos":{"x":35.8248138427734,"y":1.56903828582764,"z":-32.9601230621338},"rot":{"x":0,"y":89.9871,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"d5cd12":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":10.0398769378662},"rot":{"x":0,"y":270.0119,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"e227ad":{"lock":false,"pos":{"x":48.3248138427734,"y":1.24943828582764,"z":28.0398769378662},"rot":{"x":0,"y":269.9818,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"e32dc3":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":-19.9601230621338},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"ed1d0c":{"lock":false,"pos":{"x":39.8248138427734,"y":1.24943828582764,"z":22.0398769378662},"rot":{"x":0,"y":269.9964,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"f03c2d":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":-1.96012306213379},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"f5f3b5":{"lock":false,"pos":{"x":56.8248138427734,"y":1.24943828582764,"z":-13.9601230621338},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}},"f72800":{"lock":false,"pos":{"x":39.8248138427734,"y":1.24943828582764,"z":16.0398769378662},"rot":{"x":0,"y":270,"z":0},"tint":{"a":1,"b":1,"g":1,"r":1}}}} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d.json index 76f29c63..dfbf69bd 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d.json @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 32.969, - "posY": 1.048, - "posZ": -73.104, + "posX": 56.825, + "posY": 1.249, + "posZ": 28.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.json index 5b18e14c..fa3e6c25 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "Night of the Zealot", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -12.985, - "posY": 2.511, - "posZ": 19.133, + "posX": 66.463, + "posY": 3.037, + "posZ": 36.845, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/01NightoftheZealot.56a91d/NightoftheZealot.276907.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd.json index 74677825..cc3dc0da 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd.json @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 32.969, - "posY": 1.046, - "posZ": -79.104, + "posX": 56.825, + "posY": 1.249, + "posZ": 22.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.json index ca2f6cd0..6f002fa6 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "The Dunwich Legacy", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 12.25, - "posY": 3.029, - "posZ": 19.986, + "posX": 67.375, + "posY": 3.038, + "posZ": 30.123, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/02TheDunwichLegacy.38d1cd/TheDunwichLegacy.8df5fc.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742.json index 0bafb6c3..d20e4666 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742.json @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 32.969, - "posY": 1.044, - "posZ": -85.104, + "posX": 56.825, + "posY": 1.249, + "posZ": 16.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.json index d914d1e8..6b0cbadc 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 12.252, - "posY": 3.009, - "posZ": 11.986, + "posX": 64.825, + "posY": 3.038, + "posZ": 24.224, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/03ThePathtoCarcosa.06a742/Custom_PDF.df45c0.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12.json index 37ed8909..c2c21074 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12.json @@ -60,9 +60,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 32.969, - "posY": 1.043, - "posZ": -91.104, + "posX": 56.825, + "posY": 1.249, + "posZ": 10.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.json index 2982e67d..69c87a85 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "The Forgotten Age", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -8.236, - "posY": 2.511, - "posZ": -5.479, + "posX": 65.567, + "posY": 3.038, + "posZ": 18.74, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAge.20c2ad.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.json index 87b8f803..d3e4fa1d 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "The Forgotten Age (Return to)", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -8.079, - "posY": 2.511, - "posZ": -5.591, + "posX": 66.292, + "posY": 3.038, + "posZ": 17.746, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/04TheForgottenAge.d5cd12/TheForgottenAgeReturnto.908cbf.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c.json index 2a920618..91085f22 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c.json @@ -60,9 +60,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 24.969, - "posY": 1.045, - "posZ": -73.104, + "posX": 56.825, + "posY": 1.249, + "posZ": 4.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.json index 0bec6282..7b70bdb7 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "The Circle Undone", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 2.737, - "posY": 2.511, - "posZ": -7.436, + "posX": 67.989, + "posY": 3.038, + "posZ": 9.81, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndone.692219.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.json index d020efbd..33bc7b9c 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.json @@ -14,7 +14,7 @@ "PDFPage": 0, "PDFPageOffset": 0, "PDFPassword": "", - "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%2005%20The%20Circle%20Undone%20-%20Return%20To.pdf?raw=true" + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%2005%20The%20Circle%20Undone%20-%20Return%20to.pdf?raw=true" }, "Description": "", "DragSelectable": true, @@ -27,21 +27,24 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "The Circle Undone (Return to)", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 2.228, - "posY": 2.704, - "posZ": -9.378, - "rotX": 3, + "posX": 65.795, + "posY": 3.038, + "posZ": 11.853, + "rotX": 0, "rotY": 270, - "rotZ": 2, + "rotZ": 0, "scaleX": 1.76, "scaleY": 1, "scaleZ": 1.76 diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/05TheCircleUndone.20d53c/TheCircleUndoneReturnto.9e9944.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d.json index 1b2fdf4c..5c52626c 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d.json @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 24.969, - "posY": 1.043, - "posZ": -79.1, + "posX": 56.825, + "posY": 1.249, + "posZ": -1.96, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.json index 0b577a0b..7ef276b6 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "The Dream Quest (Campaign A)", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -21.449, - "posY": 2.511, - "posZ": 14.842, + "posX": 66.919, + "posY": 3.038, + "posZ": 4.633, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06ATheDream-Quest.f03c2d/TheDreamQuestCampaignA.47b9c1.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d.json index b4568cd8..4eea4d69 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d.json @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 24.969, - "posY": 1.041, - "posZ": -85.1, + "posX": 56.825, + "posY": 1.249, + "posZ": -7.96, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.json index 14aebf54..8e78d6e4 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "The Web of Dreams (Campaign B)", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -22.574, - "posY": 2.51, - "posZ": 5.1, + "posX": 65.358, + "posY": 3.038, + "posZ": -1.704, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/06BTheWebofDreams.1bac4d/TheWebofDreamsCampaignB.ae792e.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5.json index 55440533..6f4401ec 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5.json @@ -60,9 +60,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 24.969, - "posY": 1.04, - "posZ": -91.1, + "posX": 56.825, + "posY": 1.249, + "posZ": -13.96, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.json index c7c0ff51..2be59cbe 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "07 The Innsmouth Conspiracy - Chronological", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -3.487, - "posY": 2.511, - "posZ": -14.208, + "posX": 66.932, + "posY": 3.038, + "posZ": -8.659, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-Chronological.c50a3a.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.json index 305f47c5..26464c16 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "07 The Innsmouth Conspiracy - Play Order", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 0.847, - "posY": 2.818, - "posZ": 73.957, + "posX": 65.915, + "posY": 3.038, + "posZ": -7.148, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/07TheInnsmouthConspiracy.f5f3b5/07TheInnsmouthConspiracy-PlayOrder.f42179.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3.json index db2d608b..4092105b 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3.json @@ -14,7 +14,7 @@ "r": 1 }, "ContainedObjects_order": [ - "08EdgeoftheEarth.c50a3a" + "08EdgeoftheEarth.754904" ], "ContainedObjects_path": "08EdgeoftheEarth.e32dc3", "CustomMesh": { @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 16.97, - "posY": 1.063, - "posZ": -73.1, + "posX": 56.825, + "posY": 1.249, + "posZ": -19.96, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3/08EdgeoftheEarth.754904.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3/08EdgeoftheEarth.754904.json new file mode 100644 index 00000000..beedfb33 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3/08EdgeoftheEarth.754904.json @@ -0,0 +1,54 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%2008%20Edge%20of%20the%20Earth.pdf?raw=true" + }, + "Description": "", + "DragSelectable": true, + "GMNotes": "", + "GUID": "754904", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3/08EdgeoftheEarth.754904.ttslua", + "MeasureMovement": false, + "Name": "Custom_PDF", + "Nickname": "08 Edge of the Earth", + "Snap": true, + "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], + "Tooltip": true, + "Transform": { + "posX": 66.88, + "posY": 3.038, + "posZ": -13.447, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1.76, + "scaleY": 1, + "scaleZ": 1.76 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3/08EdgeoftheEarth.754904.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3/08EdgeoftheEarth.754904.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/08EdgeoftheEarth.e32dc3/08EdgeoftheEarth.754904.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148.json index bff652b3..94187e7d 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148.json @@ -14,7 +14,8 @@ "r": 1 }, "ContainedObjects_order": [ - "09TheScarletKeys.c50a3a" + "09TheScarletKeysScenariosCaseFiles.c6e8a0", + "09TheScarletKeysSetupandDossiers.abf457" ], "ContainedObjects_path": "09TheScarletKeys.11d148", "CustomMesh": { @@ -59,9 +60,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 16.969, - "posY": 1.062, - "posZ": -79.1, + "posX": 56.825, + "posY": 1.249, + "posZ": -25.96, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysScenariosCaseFiles.c6e8a0.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysScenariosCaseFiles.c6e8a0.json new file mode 100644 index 00000000..3e2541eb --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysScenariosCaseFiles.c6e8a0.json @@ -0,0 +1,54 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%2009%20The%20Scarlet%20Keys%202%20Scenarios%20and%20Case%20Files.pdf?raw=true" + }, + "Description": "", + "DragSelectable": true, + "GMNotes": "", + "GUID": "c6e8a0", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysScenariosCaseFiles.c6e8a0.ttslua", + "MeasureMovement": false, + "Name": "Custom_PDF", + "Nickname": "09 The Scarlet Keys: Scenarios \u0026 Case Files", + "Snap": true, + "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], + "Tooltip": true, + "Transform": { + "posX": 66.593, + "posY": 3.038, + "posZ": -20.295, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1.76, + "scaleY": 1, + "scaleZ": 1.76 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysScenariosCaseFiles.c6e8a0.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysScenariosCaseFiles.c6e8a0.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysScenariosCaseFiles.c6e8a0.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysSetupandDossiers.abf457.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysSetupandDossiers.abf457.json new file mode 100644 index 00000000..04e1be99 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysSetupandDossiers.abf457.json @@ -0,0 +1,54 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%2009%20The%20Scarlet%20Keys%201%20Setup%20and%20Dossiers.pdf?raw=true" + }, + "Description": "", + "DragSelectable": true, + "GMNotes": "", + "GUID": "abf457", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysSetupandDossiers.abf457.ttslua", + "MeasureMovement": false, + "Name": "Custom_PDF", + "Nickname": "09 The Scarlet Keys: Setup and Dossiers", + "Snap": true, + "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], + "Tooltip": true, + "Transform": { + "posX": 66.336, + "posY": 3.038, + "posZ": -20.774, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1.76, + "scaleY": 1, + "scaleZ": 1.76 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysSetupandDossiers.abf457.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysSetupandDossiers.abf457.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/09TheScarletKeys.11d148/09TheScarletKeysSetupandDossiers.abf457.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf.json new file mode 100644 index 00000000..5305e141 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf.json @@ -0,0 +1,74 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "Bag": { + "Order": 0 + }, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "ContainedObjects_order": [ + "10TheFeastofHemlockValePlaceholder.cecfc9" + ], + "ContainedObjects_path": "10TheFeastofHemlockVale.2e50cf", + "CustomMesh": { + "CastShadows": true, + "ColliderURL": "", + "Convex": true, + "CustomShader": { + "FresnelStrength": 0, + "SpecularColor": { + "b": 1, + "g": 1, + "r": 1 + }, + "SpecularIntensity": 0, + "SpecularSharpness": 2 + }, + "DiffuseURL": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/10%20The%20Feast%20of%20Hemlock%20Vale.jpg?raw=true", + "MaterialIndex": 3, + "MeshURL": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Book%20Model.obj?raw=true", + "NormalURL": "", + "TypeIndex": 6 + }, + "Description": "Not Released Yet", + "DragSelectable": true, + "GMNotes": "", + "GUID": "2e50cf", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScript": "", + "LuaScriptState": "", + "MaterialIndex": -1, + "MeasureMovement": false, + "MeshIndex": -1, + "Name": "Custom_Model_Bag", + "Nickname": "10 The Feast of Hemlock Vale", + "Snap": true, + "Sticky": true, + "Tooltip": true, + "Transform": { + "posX": 56.825, + "posY": 1.249, + "posZ": -31.96, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1, + "scaleY": 1, + "scaleZ": 1 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf/10TheFeastofHemlockValePlaceholder.cecfc9.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf/10TheFeastofHemlockValePlaceholder.cecfc9.json new file mode 100644 index 00000000..4b4213c9 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf/10TheFeastofHemlockValePlaceholder.cecfc9.json @@ -0,0 +1,54 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%2010%20The%20Feast%20of%20Hemlock%20Vale.pdf?raw=true" + }, + "Description": "", + "DragSelectable": true, + "GMNotes": "", + "GUID": "cecfc9", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf/10TheFeastofHemlockValePlaceholder.cecfc9.ttslua", + "MeasureMovement": false, + "Name": "Custom_PDF", + "Nickname": "10 The Feast of Hemlock Vale: Placeholder", + "Snap": true, + "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], + "Tooltip": true, + "Transform": { + "posX": 67.349, + "posY": 3.037, + "posZ": -26.971, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1.76, + "scaleY": 1, + "scaleZ": 1.76 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf/10TheFeastofHemlockValePlaceholder.cecfc9.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf/10TheFeastofHemlockValePlaceholder.cecfc9.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/10TheFeastofHemlockVale.2e50cf/10TheFeastofHemlockValePlaceholder.cecfc9.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9.json index 7beb59a3..0209d107 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9.json @@ -14,7 +14,7 @@ "r": 1 }, "ContainedObjects_order": [ - "C1DarkMatter.409b50" + "C1DarkMatter.602e48" ], "ContainedObjects_path": "C1DarkMatter.3a08d9", "CustomMesh": { @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 8.969, - "posY": 1.074, - "posZ": -79.1, + "posX": 39.825, + "posY": 1.249, + "posZ": 28.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9/C1DarkMatter.602e48.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9/C1DarkMatter.602e48.json new file mode 100644 index 00000000..5c2c21af --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9/C1DarkMatter.602e48.json @@ -0,0 +1,54 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%20C1%20Dark%20Matter.pdf?raw=true" + }, + "Description": "Designed by Axolotl", + "DragSelectable": true, + "GMNotes": "", + "GUID": "602e48", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9/C1DarkMatter.602e48.ttslua", + "MeasureMovement": false, + "Name": "Custom_PDF", + "Nickname": "C1 Dark Matter", + "Snap": true, + "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], + "Tooltip": true, + "Transform": { + "posX": 47.575, + "posY": 3.038, + "posZ": 36.067, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1.76, + "scaleY": 1, + "scaleZ": 1.76 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9/C1DarkMatter.602e48.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9/C1DarkMatter.602e48.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C1DarkMatter.3a08d9/C1DarkMatter.602e48.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c.json index 067af249..c34014d5 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c.json @@ -14,7 +14,7 @@ "r": 1 }, "ContainedObjects_order": [ - "C2AliceinWonderland.409b50" + "C2AliceinWonderland.4cf017" ], "ContainedObjects_path": "C2AliceinWonderland.ed1d0c", "CustomMesh": { @@ -59,9 +59,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 8.969, - "posY": 1.072, - "posZ": -85.1, + "posX": 39.825, + "posY": 1.249, + "posZ": 22.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c/C2AliceinWonderland.4cf017.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c/C2AliceinWonderland.4cf017.json new file mode 100644 index 00000000..a0fbaae2 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c/C2AliceinWonderland.4cf017.json @@ -0,0 +1,54 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%20C2%20Alice%20in%20Wonderland.pdf?raw=true" + }, + "Description": "Designed by Tyler Gotch", + "DragSelectable": true, + "GMNotes": "", + "GUID": "4cf017", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c/C2AliceinWonderland.4cf017.ttslua", + "MeasureMovement": false, + "Name": "Custom_PDF", + "Nickname": "C2 Alice in Wonderland", + "Snap": true, + "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], + "Tooltip": true, + "Transform": { + "posX": 48.535, + "posY": 3.038, + "posZ": 29.793, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1.76, + "scaleY": 1, + "scaleZ": 1.76 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c/C2AliceinWonderland.4cf017.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c/C2AliceinWonderland.4cf017.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C2AliceinWonderland.ed1d0c/C2AliceinWonderland.4cf017.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800.json new file mode 100644 index 00000000..e01a3fb3 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800.json @@ -0,0 +1,74 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "Bag": { + "Order": 0 + }, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "ContainedObjects_order": [ + "C3CyclopeanFoundations.0be2cd" + ], + "ContainedObjects_path": "C3CyclopeanFoundations.f72800", + "CustomMesh": { + "CastShadows": true, + "ColliderURL": "", + "Convex": true, + "CustomShader": { + "FresnelStrength": 0, + "SpecularColor": { + "b": 1, + "g": 1, + "r": 1 + }, + "SpecularIntensity": 0, + "SpecularSharpness": 2 + }, + "DiffuseURL": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/C3%20Cyclopean%20Foundations.jpg?raw=true", + "MaterialIndex": 3, + "MeshURL": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Book%20Model.obj?raw=true", + "NormalURL": "", + "TypeIndex": 6 + }, + "Description": "Designed by Tyler Gotch", + "DragSelectable": true, + "GMNotes": "", + "GUID": "f72800", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScript": "", + "LuaScriptState": "", + "MaterialIndex": -1, + "MeasureMovement": false, + "MeshIndex": -1, + "Name": "Custom_Model_Bag", + "Nickname": "C3 Cyclopean Foundations", + "Snap": true, + "Sticky": true, + "Tooltip": true, + "Transform": { + "posX": 43.493, + "posY": 3.182, + "posZ": -22.799, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1, + "scaleY": 1, + "scaleZ": 1 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800/C3CyclopeanFoundations.0be2cd.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800/C3CyclopeanFoundations.0be2cd.json new file mode 100644 index 00000000..a858f678 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800/C3CyclopeanFoundations.0be2cd.json @@ -0,0 +1,54 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Dual%20Pages%20C3%20Cyclopean%20Foundations.pdf?raw=true" + }, + "Description": "Designed by Tyler Gotch", + "DragSelectable": true, + "GMNotes": "", + "GUID": "0be2cd", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800/C3CyclopeanFoundations.0be2cd.ttslua", + "MeasureMovement": false, + "Name": "Custom_PDF", + "Nickname": "C3 Cyclopean Foundations", + "Snap": true, + "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], + "Tooltip": true, + "Transform": { + "posX": 48.615, + "posY": 3.038, + "posZ": 22.463, + "rotX": 0, + "rotY": 270, + "rotZ": 0, + "scaleX": 1.76, + "scaleY": 1, + "scaleZ": 1.76 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800/C3CyclopeanFoundations.0be2cd.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800/C3CyclopeanFoundations.0be2cd.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/C3CyclopeanFoundations.f72800/C3CyclopeanFoundations.0be2cd.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04.json index 5ef39c15..884f26b2 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04.json @@ -66,9 +66,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 8.971, - "posY": 1.076, - "posZ": -73.1, + "posX": 48.325, + "posY": 1.249, + "posZ": 4.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P101ReadorDie.8994ea.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P101ReadorDie.8994ea.json index 0ddc13d5..42275eff 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P101ReadorDie.8994ea.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P101ReadorDie.8994ea.json @@ -34,11 +34,14 @@ "Nickname": "P1 01 Read or Die", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 9.656, - "posY": 2.859, - "posZ": -72.195, + "posX": 56.895, + "posY": 3.038, + "posZ": 11.163, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P102AllorNothing.8950c7.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P102AllorNothing.8950c7.json index c5fd495e..cd489560 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P102AllorNothing.8950c7.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P102AllorNothing.8950c7.json @@ -34,11 +34,14 @@ "Nickname": "P1 02 All or Nothing", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 9.928, - "posY": 2.864, - "posZ": -71.817, + "posX": 56.42, + "posY": 3.038, + "posZ": 12.967, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P103BadBlood.b5fcf1.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P103BadBlood.b5fcf1.json index d720b549..79660447 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P103BadBlood.b5fcf1.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P103BadBlood.b5fcf1.json @@ -34,11 +34,14 @@ "Nickname": "P1 03 Bad Blood", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 9.889, - "posY": 2.863, - "posZ": -72.852, + "posX": 58.344, + "posY": 3.038, + "posZ": 11.89, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P104BytheBook.a37a83.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P104BytheBook.a37a83.json index f8a66553..eb83c06e 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P104BytheBook.a37a83.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P104BytheBook.a37a83.json @@ -34,11 +34,14 @@ "Nickname": "P1 04 By the Book", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 11.118, - "posY": 2.864, - "posZ": -72.564, + "posX": 58.036, + "posY": 3.038, + "posZ": 11.817, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P105RedTideRising.f053b0.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P105RedTideRising.f053b0.json index 48862565..69047380 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P105RedTideRising.f053b0.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P105RedTideRising.f053b0.json @@ -34,11 +34,14 @@ "Nickname": "P1 05 Red Tide Rising", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 8.563, - "posY": 2.859, - "posZ": -73.32, + "posX": 56.928, + "posY": 3.038, + "posZ": 10.527, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.json index b9528ce5..fa888955 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "P1 Challenge Scenarios", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 9.933, - "posY": 2.863, - "posZ": -70.772, + "posX": 55.947, + "posY": 3.038, + "posZ": 11.905, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1ChallengeScenarios.409b50.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCDeathItself.443855.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCDeathItself.443855.json index be0868b7..046a139f 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCDeathItself.443855.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCDeathItself.443855.json @@ -34,11 +34,14 @@ "Nickname": "P1 DC Death Itself", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 10.16, - "posY": 2.863, - "posZ": -72.672, + "posX": 57.255, + "posY": 3.038, + "posZ": 11.839, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCThenitMultiplied.d72c48.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCThenitMultiplied.d72c48.json index 15bb6d71..5e7e7080 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCThenitMultiplied.d72c48.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/P1ChallengeScenarios.8f7e04/P1DCThenitMultiplied.d72c48.json @@ -34,11 +34,14 @@ "Nickname": "P1 DC Then it Multiplied", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 8.449, - "posY": 2.859, - "posZ": -73.655, + "posX": 56.602, + "posY": 3.038, + "posZ": 10.863, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/ReturntoExpansions.2275ed.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/ReturntoExpansions.2275ed.json index 05e3d134..4aacb688 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/ReturntoExpansions.2275ed.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/ReturntoExpansions.2275ed.json @@ -30,9 +30,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 29.34, - "posY": 1.368, - "posZ": -65.808, + "posX": 41.825, + "posY": 1.569, + "posZ": -32.96, "rotX": 0, "rotY": 90, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad.json index 68e4e4f2..b4f910c4 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad.json @@ -65,9 +65,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 16.968, - "posY": 1.06, - "posZ": -85.1, + "posX": 48.325, + "posY": 1.249, + "posZ": 28.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S0102CarinvaleofHorrors.538f32.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S0102CarinvaleofHorrors.538f32.json index cbe71015..28108d6c 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S0102CarinvaleofHorrors.538f32.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S0102CarinvaleofHorrors.538f32.json @@ -34,11 +34,14 @@ "Nickname": "S01 02 Carinvale of Horrors", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 9.315, - "posY": 2.511, - "posZ": -1.398, + "posX": 58.336, + "posY": 3.038, + "posZ": 37.612, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S101CurseoftheRougarou.39bf7c.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S101CurseoftheRougarou.39bf7c.json index 4ad49fd3..85511c61 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S101CurseoftheRougarou.39bf7c.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S101CurseoftheRougarou.39bf7c.json @@ -34,12 +34,15 @@ "Nickname": "S1 01 Curse of the Rougarou", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 8.758, - "posY": 2.787, - "posZ": -0.99, - "rotX": 5, + "posX": 59.496, + "posY": 3.036, + "posZ": 38.605, + "rotX": 0, "rotY": 270, "rotZ": 0, "scaleX": 1.76, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S103TheLabyrinthsofLunacy.d014ce.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S103TheLabyrinthsofLunacy.d014ce.json index ce8a059d..d4429b72 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S103TheLabyrinthsofLunacy.d014ce.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S103TheLabyrinthsofLunacy.d014ce.json @@ -34,11 +34,14 @@ "Nickname": "S1 03 The Labyrinths of Lunacy", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 6.482, - "posY": 2.511, - "posZ": -0.145, + "posX": 58.243, + "posY": 3.038, + "posZ": 35.677, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S104GuardiansoftheAbyss.6611a9.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S104GuardiansoftheAbyss.6611a9.json index 27f55ecc..9eae9750 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S104GuardiansoftheAbyss.6611a9.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S104GuardiansoftheAbyss.6611a9.json @@ -34,12 +34,15 @@ "Nickname": "S1 04 Guardians of the Abyss", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 7.318, - "posY": 2.658, - "posZ": -1.465, - "rotX": 3, + "posX": 59.32, + "posY": 3.037, + "posZ": 38.128, + "rotX": 0, "rotY": 270, "rotZ": 0, "scaleX": 1.76, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S105MurderattheExcelsiorHotel.b13297.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S105MurderattheExcelsiorHotel.b13297.json index 2c89ccb5..be505cb9 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S105MurderattheExcelsiorHotel.b13297.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S105MurderattheExcelsiorHotel.b13297.json @@ -34,14 +34,17 @@ "Nickname": "S1 05 Murder at the Excelsior Hotel", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 8.414, - "posY": 2.587, - "posZ": -0.941, + "posX": 57.922, + "posY": 3.038, + "posZ": 37.362, "rotX": 0, "rotY": 270, - "rotZ": 1, + "rotZ": 0, "scaleX": 1.76, "scaleY": 1, "scaleZ": 1.76 diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S106TheBlobthatAteEverything.6ad284.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S106TheBlobthatAteEverything.6ad284.json index 2ed88f03..c5ce4ac5 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S106TheBlobthatAteEverything.6ad284.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S106TheBlobthatAteEverything.6ad284.json @@ -34,14 +34,17 @@ "Nickname": "S1 06 The Blob that Ate Everything", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 7.815, - "posY": 2.647, - "posZ": 0.798, + "posX": 56.811, + "posY": 3.037, + "posZ": 36.984, "rotX": 0, "rotY": 270, - "rotZ": 2, + "rotZ": 0, "scaleX": 1.76, "scaleY": 1, "scaleZ": 1.76 diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.json index ad9014cf..ea0be128 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.json @@ -27,18 +27,21 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", "LuaScriptState": "", + "LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.ttslua", "MeasureMovement": false, "Name": "Custom_PDF", "Nickname": "S1 Stand-Alone Scenarios 2016-2020", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 7.133, - "posY": 2.511, - "posZ": 0.024, + "posX": 57.747, + "posY": 3.038, + "posZ": 37.913, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.ttslua b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.ttslua new file mode 100644 index 00000000..e4bf980e --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S1Stand-Alones2016-2020.e227ad/S1Stand-AloneScenarios2016-2020.00a430.ttslua @@ -0,0 +1,53 @@ +function onLoad() + self.createInput({ + input_function = "jumpToPage", + function_owner = self, + label = "jump to page", + alignment = 3, + position = Vector(-1.6,0.1,-2.2), + rotation = Vector(0,0,0), + scale = Vector(0.5,0.5,0.5), + width = 2000, + height = 300, + font_size = 250, + font_color = {0.95,0.95,0.95,0.9}, + color = {0.3,0.3,0.3,0.6}, + tooltip = "Type which page you wish to jump to, then click off", + value = "", + validation = 1, + tab = 1, + }) +end + +function jumpToPage(_, _, inputValue, stillEditing) + if inputValue == "" or inputValue == nil then return end -- do nothing if input is empty + + if not stillEditing then -- jump to page if not selecting the textbox anymore + jump((tonumber(inputValue) + 2)/2) + return + elseif string.find(inputValue, "%\n") ~= nil then -- jump to page if enter is pressed + inputValue = inputValue.gsub(inputValue, "%\n", "") + jump((tonumber(inputValue) + 2)/2) + return + end + + if (tonumber(inputValue:sub(-1)) == nil) then -- check and remove non numeric character + Wait.time(function() + self.editInput({ + index = 0, + value = inputValue:sub(1,-2) + }) + end, 0.01) + return + end +end + +function jump(page) + self.Book.setPage(page - 1) -- offset since 0 index + Wait.time(function() -- clear page search + self.editInput({ + index = 0, + value = "", + }) + end, 0.01) +end diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8.json index 234a6112..550c65cb 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8.json @@ -62,9 +62,9 @@ "Sticky": true, "Tooltip": true, "Transform": { - "posX": 16.968, - "posY": 1.058, - "posZ": -91.1, + "posX": 48.325, + "posY": 1.249, + "posZ": 22.04, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S207BarkhamHorror.409b50.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S207BarkhamHorror.409b50.json index 3d9618ca..a65e807e 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S207BarkhamHorror.409b50.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S207BarkhamHorror.409b50.json @@ -34,11 +34,14 @@ "Nickname": "S2 07 Barkham Horror", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 16.576, - "posY": 2.846, - "posZ": -90.917, + "posX": 57.284, + "posY": 3.038, + "posZ": 27.325, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S208WaroftheOuterGods.bffa04.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S208WaroftheOuterGods.bffa04.json index bee90562..60b7134a 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S208WaroftheOuterGods.bffa04.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S208WaroftheOuterGods.bffa04.json @@ -34,11 +34,14 @@ "Nickname": "S2 08 War of the Outer Gods", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -15.976, - "posY": 2.511, - "posZ": -13.355, + "posX": 58.218, + "posY": 3.038, + "posZ": 27.814, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S209MachinationsThroughTime.f5dbf1.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S209MachinationsThroughTime.f5dbf1.json index b6a5b0cb..0bc79fc3 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S209MachinationsThroughTime.f5dbf1.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S209MachinationsThroughTime.f5dbf1.json @@ -34,11 +34,14 @@ "Nickname": "S2 09 Machinations Through Time", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": -15.355, - "posY": 2.511, - "posZ": -15.28, + "posX": 57.54, + "posY": 3.038, + "posZ": 27.504, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S210FortuneandFolly.e19e46.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S210FortuneandFolly.e19e46.json index 698a0594..a649d4e4 100644 --- a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S210FortuneandFolly.e19e46.json +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/S2Stand-Alones2020-202.4c47d8/S210FortuneandFolly.e19e46.json @@ -34,11 +34,14 @@ "Nickname": "S2 10 Fortune and Folly", "Snap": true, "Sticky": true, + "Tags": [ + "CleanUpHelper_ignore" + ], "Tooltip": true, "Transform": { - "posX": 17.318, - "posY": 2.845, - "posZ": -92.94, + "posX": 55.414, + "posY": 3.038, + "posZ": 27.01, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/UpdatingtoNewVersions.a1b358.json b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/UpdatingtoNewVersions.a1b358.json new file mode 100644 index 00000000..923f6338 --- /dev/null +++ b/objects/OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2/UpdatingtoNewVersions.a1b358.json @@ -0,0 +1,45 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 1, + "g": 1, + "r": 1 + }, + "Description": "To Update to the latest version of my campaign guides and their respective covers. On windows go to...\nC:\\Users\\[USERNAME]\\Documents\\My Games\\Tabletop Simulator\\Mods\nAnd search for ANTIMARKOVNIKOV.\nDelete all files find with that in the filename and reload the MOD.", + "DragSelectable": true, + "GMNotes": "", + "GUID": "a1b358", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScript": "", + "LuaScriptState": "", + "MeasureMovement": false, + "Name": "Notecard", + "Nickname": "Updating to New Versions", + "Snap": true, + "Sticky": true, + "Tooltip": true, + "Transform": { + "posX": 35.825, + "posY": 1.569, + "posZ": -32.96, + "rotX": 0, + "rotY": 90, + "rotZ": 0, + "scaleX": 1.25, + "scaleY": 1.25, + "scaleZ": 1.25 + }, + "Value": 0, + "XmlUI": "" +} diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 0ac0f349..6c1dc249 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -910,7 +910,7 @@ function applyOptionPanelChange(id, state) -- option: Show CYOA campaign guides elseif id == "showCYOA" then - optionPanel[id] = spawnOrRemoveHelper(state, "CYOA Campaign Guides", {65, 1.6, -11}) + optionPanel[id] = spawnOrRemoveHelper(state, "CYOA Campaign Guides", {39, 1.3, -20}) -- option: Show custom playmat images elseif id == "showCustomPlaymatImages" then