Merge pull request #145 from argonui/chaosbagmanager

Chaos Bag Manager: Elder sign button and rotation fix
This commit is contained in:
Chr1Z 2023-01-03 22:07:41 +01:00 committed by GitHub
commit aa2977a5de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -62,7 +62,7 @@ function onLoad()
-- create buttons for tokens
for i = 1, #BUTTON_POSITION do
local funcName = "buttonClick" .. i
self.setVar(funcName, function(_, _, isRightClick) buttonClick(_, _, isRightClick, i) end)
self.setVar(funcName, function(_, _, isRightClick) buttonClick(i, isRightClick) end)
buttonParameters.click_function = funcName
buttonParameters.tooltip = BUTTON_TOOLTIP[i]
@ -70,8 +70,8 @@ function onLoad()
if i < 7 then
buttonParameters.position.z = -0.778
elseif i > 12 then
buttonParameters.position.z = 0.75
elseif i > 11 then
buttonParameters.position.z = 0.755
end
self.createButton(buttonParameters)
@ -111,7 +111,7 @@ function getChaosBag()
end
-- click function for buttons
function buttonClick(_, _, isRightClick, index)
function buttonClick(index, isRightClick)
chaosbag = getChaosBag()
-- error handling: chaos bag not found

View File

@ -828,7 +828,7 @@ function applyOptionPanelChange(id, state)
-- delete previously pulled out tokens
for _, token in ipairs(getObjectsWithTag("to_be_deleted")) do token.destruct() end
optionPanel[id] = spawnOrRemoveHelper(state, "Token Arranger", {-42.3, 1.4, -46.5})
optionPanel[id] = spawnOrRemoveHelper(state, "Token Arranger", {-42.3, 1.6, -46.5})
-- option: Show clean up helper
elseif id == "showCleanUpHelper" then
@ -843,7 +843,7 @@ function applyOptionPanelChange(id, state)
-- option: Show chaos bag manager
elseif id == "showChaosBagManager" then
optionPanel[id] = spawnOrRemoveHelper(state, "Chaos Bag Manager", {-67.8, 1.4, -49.5})
optionPanel[id] = spawnOrRemoveHelper(state, "Chaos Bag Manager", {-67.8, 1.6, -49.5})
-- option: Show attachment helper
elseif id == "showAttachmentHelper" then
@ -851,7 +851,7 @@ function applyOptionPanelChange(id, state)
-- option: Show navigation overlay
elseif id == "showNavigationOverlay" then
optionPanel[id] = spawnOrRemoveHelper(state, "jaqenZann's Navigation Overlay", {-11.7, 1.4, -15})
optionPanel[id] = spawnOrRemoveHelper(state, "jaqenZann's Navigation Overlay", {-11.7, 1.6, -15})
-- option: Show CYOA campaign guides
elseif id == "showCYOA" then