changing "playmatAPI" to "playmatApi"
This commit is contained in:
parent
62b3c29bda
commit
eda30c7438
@ -31,7 +31,7 @@ local IS_RESHUFFLING = false
|
|||||||
local bagSearchers = {}
|
local bagSearchers = {}
|
||||||
local MAT_COLORS = {"White", "Orange", "Green", "Red"}
|
local MAT_COLORS = {"White", "Orange", "Green", "Red"}
|
||||||
local hideTitleSplashWaitFunctionId = nil
|
local hideTitleSplashWaitFunctionId = nil
|
||||||
local playmatAPI = require("playermat/PlaymatApi")
|
local playmatApi = require("playermat/PlaymatApi")
|
||||||
local tokenManager = require("core/token/TokenManager")
|
local tokenManager = require("core/token/TokenManager")
|
||||||
local playAreaAPI = require("core/PlayAreaApi")
|
local playAreaAPI = require("core/PlayAreaApi")
|
||||||
|
|
||||||
@ -812,17 +812,17 @@ end
|
|||||||
function applyOptionPanelChange(id, state)
|
function applyOptionPanelChange(id, state)
|
||||||
-- option: Snap tags
|
-- option: Snap tags
|
||||||
if id == "useSnapTags" then
|
if id == "useSnapTags" then
|
||||||
playmatAPI.setLimitSnapsByType(state, "All")
|
playmatApi.setLimitSnapsByType(state, "All")
|
||||||
optionPanel[id] = state
|
optionPanel[id] = state
|
||||||
|
|
||||||
-- option: Draw 1 button
|
-- option: Draw 1 button
|
||||||
elseif id == "showDrawButton" then
|
elseif id == "showDrawButton" then
|
||||||
playmatAPI.showDrawButton(state, "All")
|
playmatApi.showDrawButton(state, "All")
|
||||||
optionPanel[id] = state
|
optionPanel[id] = state
|
||||||
|
|
||||||
-- option: Clickable clue counters
|
-- option: Clickable clue counters
|
||||||
elseif id == "useClueClickers" then
|
elseif id == "useClueClickers" then
|
||||||
playmatAPI.clickableClues(state, "All")
|
playmatApi.clickableClues(state, "All")
|
||||||
optionPanel[id] = state
|
optionPanel[id] = state
|
||||||
|
|
||||||
-- update master clue counter
|
-- update master clue counter
|
||||||
@ -852,16 +852,16 @@ function applyOptionPanelChange(id, state)
|
|||||||
-- option: Show hand helper for each player
|
-- option: Show hand helper for each player
|
||||||
elseif id == "showHandHelper" then
|
elseif id == "showHandHelper" then
|
||||||
for i, color in ipairs(MAT_COLORS) do
|
for i, color in ipairs(MAT_COLORS) do
|
||||||
local pos = playmatAPI.transformLocalPosition({0.05, 0, -1.182}, color)
|
local pos = playmatApi.transformLocalPosition({0.05, 0, -1.182}, color)
|
||||||
local rot = playmatAPI.returnRotation(color)
|
local rot = playmatApi.returnRotation(color)
|
||||||
optionPanel[id][i] = spawnOrRemoveHelper(state, "Hand Helper", pos, rot)
|
optionPanel[id][i] = spawnOrRemoveHelper(state, "Hand Helper", pos, rot)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- option: Show search assistant for each player
|
-- option: Show search assistant for each player
|
||||||
elseif id == "showSearchAssistant" then
|
elseif id == "showSearchAssistant" then
|
||||||
for i, color in ipairs(MAT_COLORS) do
|
for i, color in ipairs(MAT_COLORS) do
|
||||||
local pos = playmatAPI.transformLocalPosition({-0.3, 0, -1.182}, color)
|
local pos = playmatApi.transformLocalPosition({-0.3, 0, -1.182}, color)
|
||||||
local rot = playmatAPI.returnRotation(color)
|
local rot = playmatApi.returnRotation(color)
|
||||||
optionPanel[id][i] = spawnOrRemoveHelper(state, "Search Assistant", pos, rot)
|
optionPanel[id][i] = spawnOrRemoveHelper(state, "Search Assistant", pos, rot)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user