added TDC button (position WIP)
This commit is contained in:
parent
4568cce5ec
commit
dd46cbf373
@ -375,6 +375,24 @@ function createXML(showOtherCardsButton)
|
||||
}
|
||||
}
|
||||
|
||||
-- add "The Drowned City" cycle button
|
||||
local TDCButtonXml = {
|
||||
tag = "Panel",
|
||||
attributes = {
|
||||
position = "44.25 65.5 -11",
|
||||
rotation = "0 0 180",
|
||||
height = "225",
|
||||
width = "225",
|
||||
scale = "0.1 0.1 1",
|
||||
onClick = "spawnTDC"
|
||||
},
|
||||
children = {
|
||||
tag = "Image",
|
||||
attributes = { image = "TheDrownedCity" }
|
||||
}
|
||||
}
|
||||
table.insert(xmlTable, TDCButtonXml)
|
||||
|
||||
-- add the "Additional Cards" button if cards without cycle were detected
|
||||
if showOtherCardsButton then
|
||||
local otherCardsButtonXml = {
|
||||
@ -403,6 +421,10 @@ function spawnOtherCards()
|
||||
spawnCycle("Other")
|
||||
end
|
||||
|
||||
function spawnTDC()
|
||||
spawnCycle("The Drowned City")
|
||||
end
|
||||
|
||||
function toggleHelp(_, playerColor, _)
|
||||
if helpVisibleToPlayers[playerColor] then
|
||||
helpVisibleToPlayers[playerColor] = nil
|
||||
|
Loading…
Reference in New Issue
Block a user