changing "playmatAPI" to "playmatApi"
This commit is contained in:
parent
62b3c29bda
commit
eda30c7438
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user