Fix building decks from AdamDB
This commit is contained in:
parent
8a31b00f81
commit
dabb509dd5
@ -56,14 +56,19 @@ configuration = {
|
||||
}
|
||||
|
||||
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"
|
||||
getObjectFromGUID("a28140").UI.setXml('<Text fontSize="25" color="orange" position="17 -74 -11" rotation="0 0 180">Adam</Text>')
|
||||
local builder = getObjectFromGUID("a28140")
|
||||
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"
|
||||
getObjectFromGUID("a28140").UI.setXml('')
|
||||
builder.UI.setXml('')
|
||||
end
|
||||
|
||||
builder.call("arkhamdb_reinit", {})
|
||||
|
||||
print("Set URL to " .. configuration.api_uri)
|
||||
end
|
||||
|
||||
|
@ -91,6 +91,10 @@ function onLoad(script_state)
|
||||
arkhamDb.initialize()
|
||||
end
|
||||
|
||||
function arkhamdb_reinit()
|
||||
arkhamDb.initialize()
|
||||
end
|
||||
|
||||
function onSave() return JSON.encode(getUiState()) end
|
||||
|
||||
-- Returns the zone name where the specified card should be placed, based on its metadata.
|
||||
|
Loading…
Reference in New Issue
Block a user