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
|
-- add the "Additional Cards" button if cards without cycle were detected
|
||||||
if showOtherCardsButton then
|
if showOtherCardsButton then
|
||||||
local otherCardsButtonXml = {
|
local otherCardsButtonXml = {
|
||||||
@ -403,6 +421,10 @@ function spawnOtherCards()
|
|||||||
spawnCycle("Other")
|
spawnCycle("Other")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function spawnTDC()
|
||||||
|
spawnCycle("The Drowned City")
|
||||||
|
end
|
||||||
|
|
||||||
function toggleHelp(_, playerColor, _)
|
function toggleHelp(_, playerColor, _)
|
||||||
if helpVisibleToPlayers[playerColor] then
|
if helpVisibleToPlayers[playerColor] then
|
||||||
helpVisibleToPlayers[playerColor] = nil
|
helpVisibleToPlayers[playerColor] = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user