added playermat hider to the option panel
This commit is contained in:
parent
5ea2fbb2b8
commit
6556918ce4
@ -23,7 +23,6 @@
|
|||||||
"CustomDataHelper.2547b3",
|
"CustomDataHelper.2547b3",
|
||||||
"UnderworldMarketHelper.3650ea",
|
"UnderworldMarketHelper.3650ea",
|
||||||
"Subject5U-21Helper.1335e8",
|
"Subject5U-21Helper.1335e8",
|
||||||
"PlayermatHider.a758b2",
|
|
||||||
"Auto-failCounter.a9a321",
|
"Auto-failCounter.a9a321",
|
||||||
"ElderSignCounter.e62cb5"
|
"ElderSignCounter.e62cb5"
|
||||||
],
|
],
|
||||||
|
@ -1 +1 @@
|
|||||||
{"acknowledgedUpgradeVersions":[],"optionPanel":{"cardLanguage":"en","playAreaSnapTags":true,"showAttachmentHelper":false,"showCleanUpHelper":false,"showCYOA":false,"showDisplacementTool":false,"showDrawButton":false,"showHandHelper":[],"showSearchAssistant":[],"showTitleSplash":true,"useClueClickers":false,"useResourceCounters":"disabled","useSnapTags":true}}
|
{"acknowledgedUpgradeVersions":[],"optionPanel":{"cardLanguage":"en","playAreaSnapTags":true,"showAttachmentHelper":false,"showCleanUpHelper":false,"showCYOA":false,"showDisplacementTool":false,"showDrawButton":false,"showHandHelper":[],"showPlayermatHider":false,"showSearchAssistant":[],"showTitleSplash":true,"useClueClickers":false,"useResourceCounters":"disabled","useSnapTags":true}}
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
"CYOACampaignGuides.e87ea2",
|
"CYOACampaignGuides.e87ea2",
|
||||||
"AttachmentHelper.7f4976",
|
"AttachmentHelper.7f4976",
|
||||||
"SearchAssistant.17aed0",
|
"SearchAssistant.17aed0",
|
||||||
|
"PlayermatHider.a758b2",
|
||||||
"HandHelper.450688",
|
"HandHelper.450688",
|
||||||
"DisplacementTool.0f1374",
|
"DisplacementTool.0f1374",
|
||||||
"CleanUpHelper.26cf4b"
|
"CleanUpHelper.26cf4b"
|
||||||
|
60
objects/OptionPanelSource.830bd0/PlayermatHider.a758b2.json
Normal file
60
objects/OptionPanelSource.830bd0/PlayermatHider.a758b2.json
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"AltLookAngle": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"Autoraise": true,
|
||||||
|
"ColorDiffuse": {
|
||||||
|
"b": 1,
|
||||||
|
"g": 1,
|
||||||
|
"r": 1
|
||||||
|
},
|
||||||
|
"CustomImage": {
|
||||||
|
"CustomTile": {
|
||||||
|
"Stackable": false,
|
||||||
|
"Stretch": true,
|
||||||
|
"Thickness": 0.1,
|
||||||
|
"Type": 3
|
||||||
|
},
|
||||||
|
"ImageScalar": 1,
|
||||||
|
"ImageSecondaryURL": "",
|
||||||
|
"ImageURL": "http://cloud-3.steamusercontent.com/ugc/2115061845796985108/F0ADB7094641DA966FFA3AF0CC6987D33D2D9591/",
|
||||||
|
"WidthScale": 0
|
||||||
|
},
|
||||||
|
"Description": "Use the buttons to show / hide a playermat.",
|
||||||
|
"DragSelectable": true,
|
||||||
|
"GMNotes": "",
|
||||||
|
"GUID": "a758b2",
|
||||||
|
"Grid": true,
|
||||||
|
"GridProjection": false,
|
||||||
|
"Hands": false,
|
||||||
|
"HideWhenFaceDown": false,
|
||||||
|
"IgnoreFoW": false,
|
||||||
|
"LayoutGroupSortIndex": 0,
|
||||||
|
"Locked": false,
|
||||||
|
"LuaScript": "require(\"accessories/PlayermatHider\")",
|
||||||
|
"LuaScriptState": "",
|
||||||
|
"MeasureMovement": false,
|
||||||
|
"Name": "Custom_Tile",
|
||||||
|
"Nickname": "Playermat Hider",
|
||||||
|
"Snap": true,
|
||||||
|
"Sticky": true,
|
||||||
|
"Tags": [
|
||||||
|
"CleanUpHelper_ignore"
|
||||||
|
],
|
||||||
|
"Tooltip": true,
|
||||||
|
"Transform": {
|
||||||
|
"posX": 0,
|
||||||
|
"posY": 2,
|
||||||
|
"posZ": 0,
|
||||||
|
"rotX": 0,
|
||||||
|
"rotY": 270,
|
||||||
|
"rotZ": 0,
|
||||||
|
"scaleX": 3,
|
||||||
|
"scaleY": 1,
|
||||||
|
"scaleZ": 3
|
||||||
|
},
|
||||||
|
"Value": 0,
|
||||||
|
"XmlUI": "\u003cInclude src=\"accessories/PlayermatHider.xml\"/\u003e"
|
||||||
|
}
|
@ -1242,6 +1242,10 @@ function applyOptionPanelChange(id, state)
|
|||||||
optionPanel[id][i] = spawnOrRemoveHelper(state, "Hand Helper", pos, rot)
|
optionPanel[id][i] = spawnOrRemoveHelper(state, "Hand Helper", pos, rot)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- option: Show playermat hider
|
||||||
|
elseif id == "showPlayermatHider" then
|
||||||
|
optionPanel[id] = spawnOrRemoveHelper(state, "Playermat Hider", {-48, 1.6, 46})
|
||||||
|
|
||||||
-- option: Show search assistant for each player
|
-- option: Show search assistant for each player
|
||||||
elseif id == "showSearchAssistant" then
|
elseif id == "showSearchAssistant" then
|
||||||
for i, color in ipairs(MAT_COLORS) do
|
for i, color in ipairs(MAT_COLORS) do
|
||||||
@ -1319,6 +1323,7 @@ function removeHelperObject(name)
|
|||||||
local referenceTable = {
|
local referenceTable = {
|
||||||
["Clean Up Helper"] = "showCleanUpHelper",
|
["Clean Up Helper"] = "showCleanUpHelper",
|
||||||
["Hand Helper"] = "showHandHelper",
|
["Hand Helper"] = "showHandHelper",
|
||||||
|
["Playermat Hider"] = "showPlayermatHider",
|
||||||
["Search Assistant"] = "showSearchAssistant",
|
["Search Assistant"] = "showSearchAssistant",
|
||||||
["Displacement Tool"] = "showDisplacementTool",
|
["Displacement Tool"] = "showDisplacementTool",
|
||||||
["Attachment Helper"] = "showAttachmentHelper",
|
["Attachment Helper"] = "showAttachmentHelper",
|
||||||
@ -1371,6 +1376,7 @@ function onClick_defaultSettings()
|
|||||||
showDisplacementTool = false,
|
showDisplacementTool = false,
|
||||||
showDrawButton = false,
|
showDrawButton = false,
|
||||||
showHandHelper = {},
|
showHandHelper = {},
|
||||||
|
showPlayermatHider = false,
|
||||||
showSearchAssistant = {},
|
showSearchAssistant = {},
|
||||||
showTitleSplash = true,
|
showTitleSplash = true,
|
||||||
useClueClickers = false,
|
useClueClickers = false,
|
||||||
|
@ -317,6 +317,20 @@
|
|||||||
</Cell>
|
</Cell>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
|
<!-- Option: show playermat hider -->
|
||||||
|
<Row class="option-text"
|
||||||
|
tooltip="Use this tool to hide unused playermats
for more table space.">
|
||||||
|
<Cell class="option-text">
|
||||||
|
<Panel class="option-wrapper">
|
||||||
|
<Text class="option-header">Playmat Hider</Text>
|
||||||
|
</Panel>
|
||||||
|
</Cell>
|
||||||
|
<Cell class="option-button">
|
||||||
|
<Toggle id="showPlayermatHider"
|
||||||
|
onValueChanged="onClick_toggleOption(showPlayermatHider)"/>
|
||||||
|
</Cell>
|
||||||
|
</Row>
|
||||||
|
|
||||||
<!-- Option: show search assistant -->
|
<!-- Option: show search assistant -->
|
||||||
<Row class="option-text"
|
<Row class="option-text"
|
||||||
tooltip="Quickly search 3, 6, 9 or the top X
cards of your deck!">
|
tooltip="Quickly search 3, 6, 9 or the top X
cards of your deck!">
|
||||||
|
Loading…
Reference in New Issue
Block a user