Allow swapping ArkhamDB importer to use AdamDB
This commit is contained in:
parent
7ff2e0e27b
commit
36080a8cb7
@ -20,7 +20,7 @@
|
|||||||
"HideWhenFaceDown": false,
|
"HideWhenFaceDown": false,
|
||||||
"IgnoreFoW": false,
|
"IgnoreFoW": false,
|
||||||
"LayoutGroupSortIndex": 0,
|
"LayoutGroupSortIndex": 0,
|
||||||
"Locked": true,
|
"Locked": false,
|
||||||
"LuaScript": "require(\"arkhamdb/Configuration\")",
|
"LuaScript": "require(\"arkhamdb/Configuration\")",
|
||||||
"LuaScriptState": "",
|
"LuaScriptState": "",
|
||||||
"MeasureMovement": false,
|
"MeasureMovement": false,
|
||||||
@ -33,9 +33,9 @@
|
|||||||
],
|
],
|
||||||
"Tooltip": true,
|
"Tooltip": true,
|
||||||
"Transform": {
|
"Transform": {
|
||||||
"posX": 78,
|
"posX": -8.44,
|
||||||
"posY": 1.395,
|
"posY": 2,
|
||||||
"posZ": 4.352,
|
"posZ": 77,
|
||||||
"rotX": 0,
|
"rotX": 0,
|
||||||
"rotY": 270,
|
"rotY": 270,
|
||||||
"rotZ": 180,
|
"rotZ": 180,
|
||||||
|
@ -7,3 +7,20 @@ configuration = {
|
|||||||
cards = "card",
|
cards = "card",
|
||||||
taboo = "taboos"
|
taboo = "taboos"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function onRotate(spin, flip, player_color, old_spin, old_flip)
|
||||||
|
local builder = getObjectFromGUID("a28140")
|
||||||
|
|
||||||
|
if flip == 0 then
|
||||||
|
configuration.api_uri = "https://arkhamdb.adamgoldsmith.name/api/public"
|
||||||
|
builder.UI.setXml('<Text fontSize="25" color="orange" position="17 -74 -11" rotation="0 0 180">Adam</Text>')
|
||||||
|
else
|
||||||
|
configuration.api_uri = "https://arkhamdb.com/api/public"
|
||||||
|
builder.UI.setXml('')
|
||||||
|
end
|
||||||
|
|
||||||
|
builder.call("arkhamdb_reinit", {})
|
||||||
|
|
||||||
|
print("Set URL to " .. configuration.api_uri)
|
||||||
|
end
|
||||||
|
@ -40,6 +40,10 @@ function onLoad(script_state)
|
|||||||
arkhamDb.initialize()
|
arkhamDb.initialize()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function arkhamdb_reinit()
|
||||||
|
arkhamDb.initialize()
|
||||||
|
end
|
||||||
|
|
||||||
function onSave() return JSON.encode(getUiState()) end
|
function onSave() return JSON.encode(getUiState()) end
|
||||||
|
|
||||||
-- Returns a table with the full state of the UI, including options and deck IDs.
|
-- Returns a table with the full state of the UI, including options and deck IDs.
|
||||||
|
Loading…
Reference in New Issue
Block a user