From eda30c74380f4329a3d52de04357aa1c7d0d1f6f Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 10 Mar 2023 12:47:42 +0100 Subject: [PATCH] changing "playmatAPI" to "playmatApi" --- src/core/Global.ttslua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 08234c7c..bdf34087 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -31,7 +31,7 @@ local IS_RESHUFFLING = false local bagSearchers = {} local MAT_COLORS = {"White", "Orange", "Green", "Red"} local hideTitleSplashWaitFunctionId = nil -local playmatAPI = require("playermat/PlaymatApi") +local playmatApi = require("playermat/PlaymatApi") local tokenManager = require("core/token/TokenManager") local playAreaAPI = require("core/PlayAreaApi") @@ -812,17 +812,17 @@ end function applyOptionPanelChange(id, state) -- option: Snap tags if id == "useSnapTags" then - playmatAPI.setLimitSnapsByType(state, "All") + playmatApi.setLimitSnapsByType(state, "All") optionPanel[id] = state -- option: Draw 1 button elseif id == "showDrawButton" then - playmatAPI.showDrawButton(state, "All") + playmatApi.showDrawButton(state, "All") optionPanel[id] = state -- option: Clickable clue counters elseif id == "useClueClickers" then - playmatAPI.clickableClues(state, "All") + playmatApi.clickableClues(state, "All") optionPanel[id] = state -- update master clue counter @@ -852,16 +852,16 @@ function applyOptionPanelChange(id, state) -- option: Show hand helper for each player elseif id == "showHandHelper" then for i, color in ipairs(MAT_COLORS) do - local pos = playmatAPI.transformLocalPosition({0.05, 0, -1.182}, color) - local rot = playmatAPI.returnRotation(color) + local pos = playmatApi.transformLocalPosition({0.05, 0, -1.182}, color) + local rot = playmatApi.returnRotation(color) optionPanel[id][i] = spawnOrRemoveHelper(state, "Hand Helper", pos, rot) end -- option: Show search assistant for each player elseif id == "showSearchAssistant" then for i, color in ipairs(MAT_COLORS) do - local pos = playmatAPI.transformLocalPosition({-0.3, 0, -1.182}, color) - local rot = playmatAPI.returnRotation(color) + local pos = playmatApi.transformLocalPosition({-0.3, 0, -1.182}, color) + local rot = playmatApi.returnRotation(color) optionPanel[id][i] = spawnOrRemoveHelper(state, "Search Assistant", pos, rot) end