added instruction generator
This commit is contained in:
parent
402b3da06d
commit
079c8747a4
@ -173,6 +173,7 @@
|
||||
"TokenSource.124381",
|
||||
"GameData.3dbe47",
|
||||
"SCEDTour.0e5aa8",
|
||||
"InstructionGenerator.240522",
|
||||
"PlayerCards.2d30ee",
|
||||
"TokenRemover.39b175",
|
||||
"TokenRemover.2ba7a5",
|
||||
|
66
objects/InstructionGenerator.240522.json
Normal file
66
objects/InstructionGenerator.240522.json
Normal file
@ -0,0 +1,66 @@
|
||||
{
|
||||
"AltLookAngle": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"AttachedSnapPoints": [
|
||||
{
|
||||
"Position": {
|
||||
"x": 0,
|
||||
"y": 0.1,
|
||||
"z": 0.05
|
||||
}
|
||||
}
|
||||
],
|
||||
"Autoraise": true,
|
||||
"ColorDiffuse": {
|
||||
"b": 1,
|
||||
"g": 1,
|
||||
"r": 1
|
||||
},
|
||||
"CustomImage": {
|
||||
"CustomToken": {
|
||||
"MergeDistancePixels": 15,
|
||||
"Stackable": false,
|
||||
"StandUp": false,
|
||||
"Thickness": 0.1
|
||||
},
|
||||
"ImageScalar": 1,
|
||||
"ImageSecondaryURL": "",
|
||||
"ImageURL": "http://cloud-3.steamusercontent.com/ugc/2280574378890547614/63FE6CDF23322B6C4001514E2B8891BA998FAD71/",
|
||||
"WidthScale": 0
|
||||
},
|
||||
"Description": "This tool can generate an description for you deck on ArkhamDB that will instruct the deck importer to add the specified cards.",
|
||||
"DragSelectable": true,
|
||||
"GMNotes": "",
|
||||
"GUID": "240522",
|
||||
"Grid": true,
|
||||
"GridProjection": false,
|
||||
"Hands": false,
|
||||
"HideWhenFaceDown": false,
|
||||
"IgnoreFoW": false,
|
||||
"LayoutGroupSortIndex": 0,
|
||||
"Locked": true,
|
||||
"LuaScript": "require(\"arkhamdb/InstructionGenerator\")",
|
||||
"LuaScriptState": "",
|
||||
"MeasureMovement": false,
|
||||
"Name": "Custom_Token",
|
||||
"Nickname": "Instruction Generator",
|
||||
"Snap": true,
|
||||
"Sticky": true,
|
||||
"Tooltip": true,
|
||||
"Transform": {
|
||||
"posX": -17.5,
|
||||
"posY": 1.531,
|
||||
"posZ": 83,
|
||||
"rotX": 0,
|
||||
"rotY": 270,
|
||||
"rotZ": 0,
|
||||
"scaleX": 1.25,
|
||||
"scaleY": 1,
|
||||
"scaleZ": 1.35
|
||||
},
|
||||
"Value": 0,
|
||||
"XmlUI": ""
|
||||
}
|
27
src/arkhamdb/InstructionGenerator.ttslua
Normal file
27
src/arkhamdb/InstructionGenerator.ttslua
Normal file
@ -0,0 +1,27 @@
|
||||
local
|
||||
|
||||
function onLoad()
|
||||
local buttonParameters = {}
|
||||
buttonParameters.function_owner = self
|
||||
buttonParameters.height = 200
|
||||
buttonParameters.width = 1200
|
||||
buttonParameters.font_size = 75
|
||||
buttonParameters.click_function = "generate"
|
||||
buttonParameters.label = "Generate instructions!"
|
||||
buttonParameters.position = { 0, 0.06, 1.55 }
|
||||
self.createButton(buttonParameters)
|
||||
|
||||
local inputParameters = {}
|
||||
inputParameters.label = "Click button above"
|
||||
inputParameters.input_function = "input_func"
|
||||
inputParameters.function_owner = self
|
||||
inputParameters.position = { 0, 0.05, 1.95 }
|
||||
inputParameters.width = 1200
|
||||
inputParameters.height = 130
|
||||
inputParameters.font_size = 107
|
||||
self.createInput(inputParameters)
|
||||
end
|
||||
|
||||
function generate()
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user