moving spawnable objects to the new bag
This commit is contained in:
parent
96ef2cc5cf
commit
9b7cc02c3a
@ -14,22 +14,12 @@
|
|||||||
"r": 1
|
"r": 1
|
||||||
},
|
},
|
||||||
"ContainedObjects_order": [
|
"ContainedObjects_order": [
|
||||||
"ChaosBagManager.023240",
|
|
||||||
"TokenArranger.022907",
|
|
||||||
"CYOACampaignGuides.e87ea2",
|
|
||||||
"AttachmentHelper.7f4976",
|
|
||||||
"ArkhamFantasy-PixelArtMini-Cards.e17c9e",
|
"ArkhamFantasy-PixelArtMini-Cards.e17c9e",
|
||||||
"jaqenZannsNavigationOverlay.a8affa",
|
|
||||||
"DrawTokenButtonTooltipRenamer.cc77a8",
|
"DrawTokenButtonTooltipRenamer.cc77a8",
|
||||||
"WhimsicalsGenericDifficultySelector.05efb4",
|
"WhimsicalsGenericDifficultySelector.05efb4",
|
||||||
"SearchAssistant.17aed0",
|
|
||||||
"HandHelper.450688",
|
|
||||||
"DisplacementTool.0f1374",
|
|
||||||
"LuckyPenny.2ab443",
|
"LuckyPenny.2ab443",
|
||||||
"Double-SidedResource.bc81cb",
|
"Double-SidedResource.bc81cb",
|
||||||
"DescriptivePhaseTracker.b171c8",
|
"DescriptivePhaseTracker.b171c8",
|
||||||
"CleanUpHelper.26cf4b",
|
|
||||||
"CustomPlaymatImages.004fe7",
|
|
||||||
"CustomDataHelper.2547b3"
|
"CustomDataHelper.2547b3"
|
||||||
],
|
],
|
||||||
"ContainedObjects_path": "Fan-MadeAccessories.aa8b38",
|
"ContainedObjects_path": "Fan-MadeAccessories.aa8b38",
|
||||||
|
@ -13,6 +13,19 @@
|
|||||||
"g": 0.36652,
|
"g": 0.36652,
|
||||||
"r": 0.70588
|
"r": 0.70588
|
||||||
},
|
},
|
||||||
|
"ContainedObjects_order": [
|
||||||
|
"ChaosBagManager.023240",
|
||||||
|
"TokenArranger.022907",
|
||||||
|
"CYOACampaignGuides.e87ea2",
|
||||||
|
"AttachmentHelper.7f4976",
|
||||||
|
"jaqenZannsNavigationOverlay.a8affa",
|
||||||
|
"SearchAssistant.17aed0",
|
||||||
|
"HandHelper.450688",
|
||||||
|
"DisplacementTool.0f1374",
|
||||||
|
"CleanUpHelper.26cf4b",
|
||||||
|
"CustomPlaymatImages.004fe7"
|
||||||
|
],
|
||||||
|
"ContainedObjects_path": "OptionPanelSource.830bd0",
|
||||||
"Description": "Contains the objects that are spawnable via option panel",
|
"Description": "Contains the objects that are spawnable via option panel",
|
||||||
"DragSelectable": true,
|
"DragSelectable": true,
|
||||||
"GMNotes": "",
|
"GMNotes": "",
|
||||||
|
@ -63,8 +63,8 @@
|
|||||||
"IgnoreFoW": false,
|
"IgnoreFoW": false,
|
||||||
"LayoutGroupSortIndex": 0,
|
"LayoutGroupSortIndex": 0,
|
||||||
"Locked": false,
|
"Locked": false,
|
||||||
"LuaScriptState_path": "Fan-MadeAccessories.aa8b38/CYOACampaignGuides.e87ea2.luascriptstate",
|
"LuaScriptState_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.luascriptstate",
|
||||||
"LuaScript_path": "Fan-MadeAccessories.aa8b38/CYOACampaignGuides.e87ea2.ttslua",
|
"LuaScript_path": "OptionPanelSource.830bd0/CYOACampaignGuides.e87ea2.ttslua",
|
||||||
"MaterialIndex": -1,
|
"MaterialIndex": -1,
|
||||||
"MeasureMovement": false,
|
"MeasureMovement": false,
|
||||||
"MeshIndex": -1,
|
"MeshIndex": -1,
|
||||||
@ -86,4 +86,4 @@
|
|||||||
},
|
},
|
||||||
"Value": 0,
|
"Value": 0,
|
||||||
"XmlUI": ""
|
"XmlUI": ""
|
||||||
}
|
}
|
@ -73,5 +73,5 @@
|
|||||||
"scaleZ": 1.5
|
"scaleZ": 1.5
|
||||||
},
|
},
|
||||||
"Value": 0,
|
"Value": 0,
|
||||||
"XmlUI_path": "Fan-MadeAccessories.aa8b38/CleanUpHelper.26cf4b.xml"
|
"XmlUI_path": "OptionPanelSource.830bd0/CleanUpHelper.26cf4b.xml"
|
||||||
}
|
}
|
@ -34,7 +34,7 @@
|
|||||||
"LayoutGroupSortIndex": 0,
|
"LayoutGroupSortIndex": 0,
|
||||||
"Locked": false,
|
"Locked": false,
|
||||||
"LuaScript": "require(\"accessories/CustomPlaymatImages\")",
|
"LuaScript": "require(\"accessories/CustomPlaymatImages\")",
|
||||||
"LuaScriptState_path": "Fan-MadeAccessories.aa8b38/CustomPlaymatImages.004fe7.luascriptstate",
|
"LuaScriptState_path": "OptionPanelSource.830bd0/CustomPlaymatImages.004fe7.luascriptstate",
|
||||||
"MeasureMovement": false,
|
"MeasureMovement": false,
|
||||||
"Name": "Custom_Token",
|
"Name": "Custom_Token",
|
||||||
"Nickname": "Custom Playmat Images",
|
"Nickname": "Custom Playmat Images",
|
||||||
@ -54,4 +54,4 @@
|
|||||||
},
|
},
|
||||||
"Value": 0,
|
"Value": 0,
|
||||||
"XmlUI": ""
|
"XmlUI": ""
|
||||||
}
|
}
|
@ -29,7 +29,7 @@
|
|||||||
"LayoutGroupSortIndex": 0,
|
"LayoutGroupSortIndex": 0,
|
||||||
"Locked": false,
|
"Locked": false,
|
||||||
"LuaScriptState": "{\"distance\":15,\"pitch\":75}",
|
"LuaScriptState": "{\"distance\":15,\"pitch\":75}",
|
||||||
"LuaScript_path": "Fan-MadeAccessories.aa8b38/jaqenZannsNavigationOverlay.a8affa/Custom_Assetbundle.cecc3e.ttslua",
|
"LuaScript_path": "OptionPanelSource.830bd0/jaqenZannsNavigationOverlay.a8affa/Custom_Assetbundle.cecc3e.ttslua",
|
||||||
"MeasureMovement": false,
|
"MeasureMovement": false,
|
||||||
"Name": "Custom_Assetbundle",
|
"Name": "Custom_Assetbundle",
|
||||||
"Nickname": "",
|
"Nickname": "",
|
||||||
@ -49,4 +49,4 @@
|
|||||||
},
|
},
|
||||||
"Value": 0,
|
"Value": 0,
|
||||||
"XmlUI": ""
|
"XmlUI": ""
|
||||||
}
|
}
|
@ -33,8 +33,8 @@
|
|||||||
"IgnoreFoW": false,
|
"IgnoreFoW": false,
|
||||||
"LayoutGroupSortIndex": 0,
|
"LayoutGroupSortIndex": 0,
|
||||||
"Locked": false,
|
"Locked": false,
|
||||||
"LuaScriptState_path": "Fan-MadeAccessories.aa8b38/jaqenZannsNavigationOverlay.a8affa/jaqenZannsNavigationOverlayTile.0ffbc5.luascriptstate",
|
"LuaScriptState_path": "OptionPanelSource.830bd0/jaqenZannsNavigationOverlay.a8affa/jaqenZannsNavigationOverlayTile.0ffbc5.luascriptstate",
|
||||||
"LuaScript_path": "Fan-MadeAccessories.aa8b38/jaqenZannsNavigationOverlay.a8affa/jaqenZannsNavigationOverlayTile.0ffbc5.ttslua",
|
"LuaScript_path": "OptionPanelSource.830bd0/jaqenZannsNavigationOverlay.a8affa/jaqenZannsNavigationOverlayTile.0ffbc5.ttslua",
|
||||||
"MeasureMovement": false,
|
"MeasureMovement": false,
|
||||||
"Name": "Custom_Tile",
|
"Name": "Custom_Tile",
|
||||||
"Nickname": "jaqenZann's Navigation Overlay Tile",
|
"Nickname": "jaqenZann's Navigation Overlay Tile",
|
||||||
@ -54,4 +54,4 @@
|
|||||||
},
|
},
|
||||||
"Value": 0,
|
"Value": 0,
|
||||||
"XmlUI": ""
|
"XmlUI": ""
|
||||||
}
|
}
|
@ -11,9 +11,6 @@ optionPanel = {}
|
|||||||
-- GUID of data helper
|
-- GUID of data helper
|
||||||
DATA_HELPER_GUID = "708279"
|
DATA_HELPER_GUID = "708279"
|
||||||
|
|
||||||
-- GUID of fan-made accessories bag (also just called "barrel")
|
|
||||||
BARREL_GUID = "aa8b38"
|
|
||||||
|
|
||||||
-- GUIDs that will not be interactable (e.g. parts of the table)
|
-- GUIDs that will not be interactable (e.g. parts of the table)
|
||||||
local NOT_INTERACTABLE = {
|
local NOT_INTERACTABLE = {
|
||||||
"6161b4", -- Decoration-Map
|
"6161b4", -- Decoration-Map
|
||||||
@ -906,15 +903,16 @@ function spawnOrRemoveHelper(state, name, position, rotation)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- copies the specified tool (by name) from the barrel
|
-- copies the specified tool (by name) from the option panel source bag
|
||||||
---@param name String Name of the object that should be copied
|
---@param name String Name of the object that should be copied
|
||||||
---@param position Table Desired position of the object
|
---@param position Table Desired position of the object
|
||||||
function spawnHelperObject(name, position, rotation)
|
function spawnHelperObject(name, position, rotation)
|
||||||
local barrel = getObjectFromGUID(BARREL_GUID)
|
|
||||||
|
|
||||||
-- error handling for missing barrel
|
local sourceBag = getObjectFromGUID("830bd0")
|
||||||
if not barrel then
|
|
||||||
broadcastToAll("'Barrel' with fan-made accessories could not be found!", "Red")
|
-- error handling for missing sourceBag
|
||||||
|
if not sourceBag then
|
||||||
|
broadcastToAll("Option panel source bag could not be found!", "Red")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -925,7 +923,7 @@ function spawnHelperObject(name, position, rotation)
|
|||||||
spawnTable.rotation = rotation
|
spawnTable.rotation = rotation
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, obj in ipairs(barrel.getData().ContainedObjects) do
|
for _, obj in ipairs(sourceBag.getData().ContainedObjects) do
|
||||||
if obj["Nickname"] == name then
|
if obj["Nickname"] == name then
|
||||||
spawnTable.data = obj
|
spawnTable.data = obj
|
||||||
return spawnObjectData(spawnTable)
|
return spawnObjectData(spawnTable)
|
||||||
|
Loading…
Reference in New Issue
Block a user