From d983f9bf35448a72422593a1d91441a6c218a452 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 16 Feb 2024 17:07:35 +0100 Subject: [PATCH] updated featured content (and made small fix to placeholder spawning) --- config.json | 2 +- modsettings/SnapPoints.json | 7 ++++++ ...bd.json => TheMatterofBritain.194cc5.json} | 22 +++++++++++-------- src/core/Global.ttslua | 4 ++++ 4 files changed, 25 insertions(+), 10 deletions(-) rename objects/{BaldursGateIII.695abd.json => TheMatterofBritain.194cc5.json} (70%) diff --git a/config.json b/config.json index 10637d92..9e1ac5a2 100644 --- a/config.json +++ b/config.json @@ -203,7 +203,7 @@ "TokenArranger.022907", "ChaosBagManager.023240", "PlaceholderBoxDummy.a93466", - "BaldursGateIII.695abd", + "TheMatterofBritain.194cc5", "Tokencache_1.a15273", "Tokencache_0.0a8592", "Tokencache_-1.b644d2", diff --git a/modsettings/SnapPoints.json b/modsettings/SnapPoints.json index 41cfcf49..82272961 100644 --- a/modsettings/SnapPoints.json +++ b/modsettings/SnapPoints.json @@ -417,5 +417,12 @@ "y": 1.481, "z": -91 } + }, + { + "Position": { + "x": -26, + "y": 1.481, + "z": -87 + } } ] diff --git a/objects/BaldursGateIII.695abd.json b/objects/TheMatterofBritain.194cc5.json similarity index 70% rename from objects/BaldursGateIII.695abd.json rename to objects/TheMatterofBritain.194cc5.json index 22c5c6cb..11ebdef9 100644 --- a/objects/BaldursGateIII.695abd.json +++ b/objects/TheMatterofBritain.194cc5.json @@ -15,16 +15,16 @@ "CastShadows": true, "ColliderURL": "", "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/2117314083163063648/B404BC484394C1B241A97479C3A1FDC8D33ADE2F/", + "DiffuseURL": "https://i.ibb.co/1GLSncs/title.jpg", "MaterialIndex": 3, - "MeshURL": "https://raw.githubusercontent.com/RobMayer/TTSLibrary/master/advboxes/tuckbox_h_MSH.obj", + "MeshURL": "https://raw.githubusercontent.com/RobMayer/TTSLibrary/master/advboxes/core_h_MSH.obj", "NormalURL": "", "TypeIndex": 0 }, - "Description": "by Mint Tea Fan", + "Description": "by Frying Tonight", "DragSelectable": true, - "GMNotes": "fancreations/investigators_baldurs_gate_3.json", - "GUID": "695abd", + "GMNotes": "fancreations/campaign_the_matter_of_britain.json", + "GUID": "194cc5", "Grid": true, "GridProjection": false, "Hands": false, @@ -36,9 +36,13 @@ "LuaScriptState": "", "MeasureMovement": false, "Name": "Custom_Model", - "Nickname": " Baldur's Gate III", + "Nickname": " The Matter of Britain", "Snap": true, "Sticky": true, + "Tags": [ + "CampaignBox", + "LargeBox" + ], "Tooltip": true, "Transform": { "posX": -26, @@ -47,9 +51,9 @@ "rotX": 0, "rotY": 270, "rotZ": 0, - "scaleX": 2.21, - "scaleY": 0.46, - "scaleZ": 2.42 + "scaleX": 1, + "scaleY": 0.14, + "scaleZ": 1 }, "Value": 0, "XmlUI": "" diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 45fd07e5..5066d23c 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -914,6 +914,10 @@ function onClick_spawnPlaceholder() material = 3 }) + if item.boxsize == "big" then + placeholder.addTag("LargeBox") + end + placeholder.setColorTint({1, 1, 1, 71/255}) placeholder.setName(item.name) placeholder.setDescription("by " .. (item.author or "Unknown"))