elder sign button and rotation fix
This commit is contained in:
parent
13ed44058e
commit
f112849177
@ -33,7 +33,7 @@
|
||||
"IgnoreFoW": false,
|
||||
"LayoutGroupSortIndex": 0,
|
||||
"Locked": false,
|
||||
"LuaScriptState": "{\"Bless\":8,\"Curse\":0}",
|
||||
"LuaScriptState": "",
|
||||
"LuaScript_path": "Fan-MadeAccessories.aa8b38/ChaosBagManager.023240.ttslua",
|
||||
"MeasureMovement": false,
|
||||
"Name": "Custom_Token",
|
||||
@ -48,9 +48,9 @@
|
||||
"posX": 22.215,
|
||||
"posY": 5.651,
|
||||
"posZ": -34.811,
|
||||
"rotX": 4,
|
||||
"rotX": 0,
|
||||
"rotY": 270,
|
||||
"rotZ": 357,
|
||||
"rotZ": 0,
|
||||
"scaleX": 2.5,
|
||||
"scaleY": 1,
|
||||
"scaleZ": 2.5
|
||||
|
@ -48,7 +48,6 @@ local BUTTON_POSITION = {
|
||||
-- common button parameters
|
||||
local buttonParameters = {}
|
||||
buttonParameters.function_owner = self
|
||||
buttonParameters.color = { 0, 0, 0, 0 }
|
||||
buttonParameters.width = 300
|
||||
buttonParameters.height = 300
|
||||
|
||||
@ -62,7 +61,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 +69,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 +110,7 @@ function getChaosBag()
|
||||
end
|
||||
|
||||
-- click function for buttons
|
||||
function buttonClick(_, _, isRightClick, index)
|
||||
function buttonClick(index, isRightClick)
|
||||
chaosbag = getChaosBag()
|
||||
|
||||
-- error handling: chaos bag not found
|
||||
|
@ -823,7 +823,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
|
||||
@ -838,11 +838,11 @@ 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 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})
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user