removal of outdated code
This commit is contained in:
parent
8f4dd58321
commit
34fa7ea7e8
@ -165,23 +165,6 @@ function tryObjectEnterContainer(container, object)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
-- gets all objects that match the provided matcolor
|
|
||||||
---@param matColor String Color of the playermat
|
|
||||||
---@return objList Table Table of type-object pairs
|
|
||||||
function getObjectsForMatColor(matColor)
|
|
||||||
local objList = {}
|
|
||||||
for _, obj in ipairs(getObjects()) do
|
|
||||||
local memo = obj.getMemo()
|
|
||||||
if memo and memo:sub(1, 1) == "{" then
|
|
||||||
local decoded = JSON.decode(memo) or {}
|
|
||||||
if decoded.matColor == matColor then
|
|
||||||
objList[decoded.type] = obj
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return objList
|
|
||||||
end
|
|
||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
-- chaos token drawing
|
-- chaos token drawing
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
@ -310,10 +293,8 @@ function handleStatTrackerClick(_, _, isRightClick)
|
|||||||
playerColor = "White"
|
playerColor = "White"
|
||||||
playerName = "Overall"
|
playerName = "Overall"
|
||||||
else
|
else
|
||||||
-- get mat color from memo
|
-- get mat color
|
||||||
local mat = getObjectFromGUID(key)
|
local matColor = playmatApi.getMatColorByPosition(getObjectFromGUID(key).getPosition())
|
||||||
local decoded = JSON.decode(mat.getMemo())
|
|
||||||
local matColor = decoded.matColor
|
|
||||||
playerColor = playmatApi.getPlayerColor(matColor)
|
playerColor = playmatApi.getPlayerColor(matColor)
|
||||||
playerName = Player[playerColor].steam_name or playerColor
|
playerName = Player[playerColor].steam_name or playerColor
|
||||||
|
|
||||||
@ -889,7 +870,8 @@ function applyOptionPanelChange(id, state)
|
|||||||
optionPanel[id] = state
|
optionPanel[id] = state
|
||||||
|
|
||||||
-- update master clue counter
|
-- update master clue counter
|
||||||
getObjectFromMemo({matColor = "Mythos", type = "MasterClueCounter"}).setVar("useClickableCounters", state)
|
local counter = guidHandler.call("getObjectByOwnerAndType", { owner = "Mythos", type = "MasterClueCounter" })
|
||||||
|
counter.setVar("useClickableCounters", state)
|
||||||
|
|
||||||
-- option: Play area snap tags
|
-- option: Play area snap tags
|
||||||
elseif id == "playAreaSnapTags" then
|
elseif id == "playAreaSnapTags" then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user