Merge pull request #145 from argonui/chaosbagmanager
Chaos Bag Manager: Elder sign button and rotation fix
This commit is contained in:
commit
aa2977a5de
@ -62,7 +62,7 @@ function onLoad()
|
|||||||
-- create buttons for tokens
|
-- create buttons for tokens
|
||||||
for i = 1, #BUTTON_POSITION do
|
for i = 1, #BUTTON_POSITION do
|
||||||
local funcName = "buttonClick" .. i
|
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.click_function = funcName
|
||||||
buttonParameters.tooltip = BUTTON_TOOLTIP[i]
|
buttonParameters.tooltip = BUTTON_TOOLTIP[i]
|
||||||
@ -70,8 +70,8 @@ function onLoad()
|
|||||||
|
|
||||||
if i < 7 then
|
if i < 7 then
|
||||||
buttonParameters.position.z = -0.778
|
buttonParameters.position.z = -0.778
|
||||||
elseif i > 12 then
|
elseif i > 11 then
|
||||||
buttonParameters.position.z = 0.75
|
buttonParameters.position.z = 0.755
|
||||||
end
|
end
|
||||||
|
|
||||||
self.createButton(buttonParameters)
|
self.createButton(buttonParameters)
|
||||||
@ -111,7 +111,7 @@ function getChaosBag()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- click function for buttons
|
-- click function for buttons
|
||||||
function buttonClick(_, _, isRightClick, index)
|
function buttonClick(index, isRightClick)
|
||||||
chaosbag = getChaosBag()
|
chaosbag = getChaosBag()
|
||||||
|
|
||||||
-- error handling: chaos bag not found
|
-- error handling: chaos bag not found
|
||||||
|
@ -828,7 +828,7 @@ function applyOptionPanelChange(id, state)
|
|||||||
-- delete previously pulled out tokens
|
-- delete previously pulled out tokens
|
||||||
for _, token in ipairs(getObjectsWithTag("to_be_deleted")) do token.destruct() end
|
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
|
-- option: Show clean up helper
|
||||||
elseif id == "showCleanUpHelper" then
|
elseif id == "showCleanUpHelper" then
|
||||||
@ -843,7 +843,7 @@ function applyOptionPanelChange(id, state)
|
|||||||
|
|
||||||
-- option: Show chaos bag manager
|
-- option: Show chaos bag manager
|
||||||
elseif id == "showChaosBagManager" then
|
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
|
-- option: Show attachment helper
|
||||||
elseif id == "showAttachmentHelper" then
|
elseif id == "showAttachmentHelper" then
|
||||||
@ -851,7 +851,7 @@ function applyOptionPanelChange(id, state)
|
|||||||
|
|
||||||
-- option: Show navigation overlay
|
-- option: Show navigation overlay
|
||||||
elseif id == "showNavigationOverlay" then
|
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
|
-- option: Show CYOA campaign guides
|
||||||
elseif id == "showCYOA" then
|
elseif id == "showCYOA" then
|
||||||
|
Loading…
Reference in New Issue
Block a user