From 4568cce5ecf2d6dfd1701c4fac37870a33d4a996 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Sat, 14 Sep 2024 11:25:41 +0200 Subject: [PATCH] updated table layout --- config.json | 4 +- modsettings/TabStates.json | 4 +- objects/3DText.d628cc.json | 4 +- ...ew.8e22bb.json => BuyersGuide.b5ecc1.json} | 30 ++++------ objects/Fan-MadeExpansionOverview.de7cae.json | 57 ------------------- objects/Lovecrafter3077.b08d20.json | 4 +- objects/TheDrownedCity.938aab.json | 6 +- src/util/BuyersGuide.ttslua | 9 +++ 8 files changed, 31 insertions(+), 87 deletions(-) rename objects/{OfficialReleasesOverview.8e22bb.json => BuyersGuide.b5ecc1.json} (51%) delete mode 100644 objects/Fan-MadeExpansionOverview.de7cae.json create mode 100644 src/util/BuyersGuide.ttslua diff --git a/config.json b/config.json index e7bed66d..a8a5ceb8 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,6 @@ "ComponentTags_path": "ComponentTags.json", "CustomUIAssets_path": "CustomUIAssets.json", "DecalPallet_path": "DecalPallet.json", - "Decals": [], "GameComplexity": "", "GameMode": "Arkham Horror LCG - Super Complete Edition", "GameType": "", @@ -177,8 +176,7 @@ "Decoration-Ammo.b43845", "Decoration-Ammo.d35ee9", "VictoryDisplay.6ccd6d", - "OfficialReleasesOverview.8e22bb", - "Fan-MadeExpansionOverview.de7cae", + "BuyersGuide.b5ecc1", "OptionPanelSource.830bd0", "SoundCube.3c988f", "TokenSpawningReference.f8b3a7", diff --git a/modsettings/TabStates.json b/modsettings/TabStates.json index 3e83aeb7..4bc432d2 100644 --- a/modsettings/TabStates.json +++ b/modsettings/TabStates.json @@ -2,7 +2,7 @@ "0": { "body": "Welcome to Arkham Horror LCG - Super Complete Edition!\n\nMake sure to take the tour that can be started with the token in the middle of the main playarea. Some basic notes:\n\nDECKBUILDING\n- All currently existing investigators and player cards are accessible via the player card panel in the upper left corner of the table.\n\n- On the leftside underneath the Investigators, you will find the ArkhamDB Deckimporter. Insert your deck ID and it will build the deck automatically for you.\n\nSCENARIOS \u0026 SETUP\n- Arkham Horror LCG comes with a core campaign (Night of the Zealot) and several expansions. Within each box you will find all the cards required for each scenario setup, as well as a the official campaign guide PDF.\n\n2. Each scenario is setup differently, and while some of the work has been prepared beforehand (such as building encounter decks), you will have to refer to the Campaign Guide for specific instructions on how to set up each scenario.\n\nINVESTIGATOR PLAYMAT AND GAMEPLAY\n- Playermats are scripted to automate most of the gameplay for you.", "color": "Grey", - "id": 1, + "id": 0, "title": "Basic Intro", "visibleColor": { "b": 0.5, @@ -13,7 +13,7 @@ "1": { "body": "The server host can enable or disable cards in hands being hidden from other players by going to the menu at the top of the TTS screen, clicking options, and choosing Hands. The \"Disable\" setting reveals all player hands to all players, while the \"Default\" setting means that each player can only see the cards in their own hand.", "color": "Grey", - "id": 2, + "id": 1, "title": "How to Hide Hands", "visibleColor": { "b": 0.5, diff --git a/objects/3DText.d628cc.json b/objects/3DText.d628cc.json index d3f68dbf..e524ea93 100644 --- a/objects/3DText.d628cc.json +++ b/objects/3DText.d628cc.json @@ -39,9 +39,9 @@ }, "Tooltip": true, "Transform": { - "posX": -19.5, + "posX": -2.6, "posY": 1.697, - "posZ": -87, + "posZ": -52, "rotX": 90, "rotY": 90, "rotZ": 0, diff --git a/objects/OfficialReleasesOverview.8e22bb.json b/objects/BuyersGuide.b5ecc1.json similarity index 51% rename from objects/OfficialReleasesOverview.8e22bb.json rename to objects/BuyersGuide.b5ecc1.json index ed254b64..4dbac794 100644 --- a/objects/OfficialReleasesOverview.8e22bb.json +++ b/objects/BuyersGuide.b5ecc1.json @@ -10,22 +10,16 @@ "g": 0, "r": 0 }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 0 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "https://steamusercontent-a.akamaihd.net/ugc/2460726979851338290/FD3A124A45AFAACAB85E34060B09B52FE798E991/", - "ImageURL": "https://steamusercontent-a.akamaihd.net/ugc/2460726979851337461/C6A08EA4A71B37F9C27E2545037F557D65BBF521/", - "WidthScale": 0 + "CustomPDF": { + "PDFPage": 0, + "PDFPageOffset": 0, + "PDFPassword": "", + "PDFUrl": "https://steamusercontent-a.akamaihd.net/ugc/2369545214002116550/E767153EDE2129C09FA16ECB856C33D3C356C322/" }, "Description": "", "DragSelectable": true, "GMNotes": "", - "GUID": "8e22bb", + "GUID": "b5ecc1", "Grid": true, "GridProjection": false, "Hands": false, @@ -33,24 +27,24 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", + "LuaScript": "require(\"util/BuyersGuide\")", "LuaScriptState": "", "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Official Releases Overview", + "Name": "Custom_PDF", + "Nickname": "Buyer's Guide", "Snap": true, "Sticky": true, "Tooltip": true, "Transform": { "posX": -1.6, "posY": 1.481, - "posZ": -55, + "posZ": -71.5, "rotX": 0, "rotY": 270, "rotZ": 0, - "scaleX": 13, + "scaleX": 6.5, "scaleY": 1, - "scaleZ": 13 + "scaleZ": 6.5 }, "Value": 0, "XmlUI": "" diff --git a/objects/Fan-MadeExpansionOverview.de7cae.json b/objects/Fan-MadeExpansionOverview.de7cae.json deleted file mode 100644 index 53de7677..00000000 --- a/objects/Fan-MadeExpansionOverview.de7cae.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0, - "g": 0, - "r": 0 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 0 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "https://steamusercontent-a.akamaihd.net/ugc/2460726979851342612/65DEC18BEFEFB1117CFEAAE9AB15B442AE8B557B/", - "ImageURL": "https://steamusercontent-a.akamaihd.net/ugc/2460726979851342006/859CF14CE18A4F8C2AFDADA3E69E1B6864154696/", - "WidthScale": 0 - }, - "Description": "", - "DragSelectable": true, - "GMNotes": "", - "GUID": "de7cae", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Fan-Made Expansion Overview", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -1.6, - "posY": 1.481, - "posZ": -75, - "rotX": 0, - "rotY": 270, - "rotZ": 0, - "scaleX": 13, - "scaleY": 1, - "scaleZ": 13 - }, - "Value": 0, - "XmlUI": "" -} diff --git a/objects/Lovecrafter3077.b08d20.json b/objects/Lovecrafter3077.b08d20.json index 975a7ed3..b7c9e90d 100644 --- a/objects/Lovecrafter3077.b08d20.json +++ b/objects/Lovecrafter3077.b08d20.json @@ -44,9 +44,9 @@ ], "Tooltip": true, "Transform": { - "posX": -26, + "posX": -9, "posY": 1.481, - "posZ": -87, + "posZ": -52, "rotX": 0, "rotY": 270, "rotZ": 0, diff --git a/objects/TheDrownedCity.938aab.json b/objects/TheDrownedCity.938aab.json index 4022ea5b..dd8eaae2 100644 --- a/objects/TheDrownedCity.938aab.json +++ b/objects/TheDrownedCity.938aab.json @@ -54,9 +54,9 @@ ], "Tooltip": true, "Transform": { - "posX": 35.4, + "posX": 5.8, "posY": 1.481, - "posZ": -91, + "posZ": -52, "rotX": 0, "rotY": 270, "rotZ": 0, @@ -66,4 +66,4 @@ }, "Value": 0, "XmlUI": "" -} \ No newline at end of file +} diff --git a/src/util/BuyersGuide.ttslua b/src/util/BuyersGuide.ttslua new file mode 100644 index 00000000..6212f07c --- /dev/null +++ b/src/util/BuyersGuide.ttslua @@ -0,0 +1,9 @@ +function onPlayerAction(_, action, targets) + if action == Player.Action.FlipOver and #targets == 1 and targets[1] == self then + local page = self.Book.getPage() + self.Book.setPage((page + 1) % 4) + return false + end + + return true +end