From 568d28ac1b7637412af37ea53d5ecd59f0d3e1a0 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 4 Jan 2023 00:45:48 +0100 Subject: [PATCH] enable play area snaps by default --- objects/LuaScriptState.luascriptstate | 2 +- objects/Playarea.721ba2.json | 407 ++++++++++++++++++++------ src/core/Global.ttslua | 2 +- 3 files changed, 327 insertions(+), 84 deletions(-) diff --git a/objects/LuaScriptState.luascriptstate b/objects/LuaScriptState.luascriptstate index 080f8272..7ab578b2 100644 --- a/objects/LuaScriptState.luascriptstate +++ b/objects/LuaScriptState.luascriptstate @@ -1 +1 @@ -{"optionPanel":{"showChaosBagManager":false,"showCleanUpHelper":false,"showDrawButton":false,"showHandHelper":[],"showNavigationOverlay":false,"showTokenArranger":false,"useClueClickers":false,"useSnapTags":true,"showTitleSplash":true}} +{"optionPanel":{"playAreaSnapTags":true,"showChaosBagManager":false,"showCleanUpHelper":false,"showDrawButton":false,"showHandHelper":[],"showNavigationOverlay":false,"showTitleSplash":true,"showTokenArranger":false,"useClueClickers":false,"useSnapTags":true}} diff --git a/objects/Playarea.721ba2.json b/objects/Playarea.721ba2.json index 2ce861e3..2b316818 100644 --- a/objects/Playarea.721ba2.json +++ b/objects/Playarea.721ba2.json @@ -15,14 +15,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.53, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -34,14 +40,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.53, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -53,14 +65,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.53, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -72,14 +90,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.53, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -91,70 +115,100 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": -1.09 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": -0.43 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": 0.23 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": 0.89 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 1.148, "y": 0.1, "z": 1.55 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -166,14 +220,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.765, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -185,14 +245,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.765, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -204,14 +270,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.765, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -223,14 +295,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.765, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -242,70 +320,100 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": -1.09 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": -0.43 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": 0.23 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": 0.89 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0.383, "y": 0.1, "z": 1.55 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -317,14 +425,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -336,14 +450,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -355,14 +475,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -374,14 +500,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": 0, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -393,70 +525,100 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": -1.09 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": -0.43 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": 0.23 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": 0.89 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.383, "y": 0.1, "z": 1.55 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -468,14 +630,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.765, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -487,14 +655,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.765, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -506,14 +680,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.765, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -525,14 +705,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -0.765, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -544,70 +730,100 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": -1.09 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": -0.43 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": 0.23 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": 0.89 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.148, "y": 0.1, "z": 1.55 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -619,14 +835,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.53, "y": 0.1, "z": -0.76 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -638,14 +860,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.53, "y": 0.1, "z": -0.1 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -657,14 +885,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.53, "y": 0.1, "z": 0.56 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -676,14 +910,20 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { "x": -1.53, "y": 0.1, "z": 1.22 - } + }, + "Tags": [ + "Location" + ] }, { "Position": { @@ -695,7 +935,10 @@ "x": 0, "y": 0, "z": 0 - } + }, + "Tags": [ + "Location" + ] } ], "Autoraise": true, @@ -728,7 +971,7 @@ "LayoutGroupSortIndex": 0, "Locked": true, "LuaScript": "require(\"core/PlayArea\")", - "LuaScriptState": "[]", + "LuaScriptState": "{\"trackedLocations\":[]}", "MeasureMovement": false, "Name": "Custom_Token", "Nickname": "Playarea", diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index c14db1ae..77e0975d 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -951,7 +951,7 @@ function onClick_defaultSettings() -- clean reset of variable optionPanel = { useSnapTags = true, - playAreaSnapTags = false, + playAreaSnapTags = true, showDrawButton = false, useClueClickers = false, showTitleSplash = true,