SplitLayout¶
src.layouts.SplitLayout
¶
Bases: NormalLayout
Split card layout, introduced in Invasion.
Source code in src\layouts.py
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 | |
Attributes¶
art_file: list[Path]
¶
list[Path]: Two image files, second is appended during render process.
artist: str
¶
Card artist name, use Scryfall raw data instead of 'card' data.
background: list[str]
¶
Both sides background identity.
card: list[dict]
¶
Both side objects.
card_count: Optional[int]
¶
int | None: Number of cards within the card's release set. Only required in 'Normal' Collector Mode.
collector_data: str
¶
collector_number: int
¶
collector_number_raw: Optional[str]
¶
str | None: Card number assigned within release set. Raw string representation, allows non-digits.
color_identity: list
¶
Color identity is shared by both halves, use raw Scryfall instead of 'card' data.
color_indicator: str
¶
Color indicator is shared by both halves, use raw Scryfall instead of 'card' data.
creator: str
¶
date: date
¶
display_name: str
¶
Both side names.
file: CardDetails
¶
Dictionary containing parsed art file details.
first_print: dict
¶
Card data fetched from Scryfall representing the first print of this card.
flavor_text: list[str]
¶
Both sides flavor text.
frame: list[FrameDetails]
¶
Both sides frame data.
frame_effects: list[str]
¶
Array of frame effects, e.g. nyxtouched, snow, etc.
identity: list[str]
¶
Both sides frame accurate color identity.
input_name: str
¶
Card name, version provided in art file name.
is_alt_lang: bool
¶
True if language selected isn't English.
is_colorless: list[bool]
¶
Both sides colorless check.
is_emblem: bool
¶
is_front: bool
¶
True if card is front face.
is_hybrid: list[bool]
¶
Both sides hybrid check.
is_miracle: bool
¶
True if card is a 'Miracle' card.
is_promo: bool
¶
True if card is a promotional print.
is_snow: bool
¶
True if card is a 'Snow' card.
is_token: bool
¶
is_vehicle: bool
¶
True if card is a Vehicle.
keywords: list[str]
¶
Array of keyword abilities, e.g. Flying, Haste, etc.
lang: str
¶
Card print language, uppercase enforced, falls back to settings defined value.
mana_cost: list[str]
¶
Both side mana costs.
name: list[str]
¶
Both side names.
name_raw: str
¶
Sanitized card name to use for rendered image file.
nickname: str
¶
Nickname, typically set inside template logic but can be passed in filename.
oracle_text: list[str]
¶
Both side oracle texts.
oracle_text_raw: str
¶
Card rules text, enforced English representation.
other_face: dict
¶
Card data from opposing face if provided.
other_face_frame: Union[FrameDetails, dict]
¶
Calculated frame information of opposing face, if provided.
other_face_left: Optional[str]
¶
Abridged type of the opposing side to display on bottom MDFC bar.
other_face_mana_cost: str
¶
Mana cost of opposing face.
other_face_oracle_text: str
¶
Rules text of opposing face.
other_face_oracle_text_raw: str
¶
Rules text of opposing face.
other_face_power: str
¶
Creature power of opposing face, if provided.
other_face_right: str
¶
Mana cost or mana ability of opposing side, depending on land or nonland.
other_face_toughness: str
¶
Creature toughness of opposing face, if provided.
other_face_twins: str
¶
Name and title box identity of opposing face.
other_face_type_line: str
¶
Type line of opposing face.
other_face_type_line_raw: str
¶
Type line of opposing face, English language enforced.
pinlines: list[str]
¶
Both sides pinlines identity.
promo_types: list[str]
¶
list[str]: Promo types this card matches, e.g. stamped, datestamped, etc.
rarity: str
¶
Card rarity, interprets 'special' rarities based on card data.
rarity_letter: str
¶
First letter of card rarity, uppercase enforced.
rarity_raw: str
¶
Card rarity, doesn't interpret 'special' rarities.
rules_text: str
¶
Utility definition comprised of rules and flavor text as available.
scryfall: dict
¶
Card data fetched from Scryfall.
scryfall_scan: str
¶
Scryfall large image scan, if available.
set: str
¶
Card set code, uppercase enforced, falls back to 'MTG' if missing.
set_data: dict
¶
Set data from the current hexproof.io data file.
set_type: str
¶
subtypes: list[str]
¶
Subtypes represented, e.g. Elf, Human, Goblin, etc.
supertypes: list[str]
¶
Supertypes represented, e.g. Basic, Legendary, Snow, etc.
symbol_code: str
¶
Code used to match a symbol to this card's set. Provided by hexproof.io.
symbol_svg: Optional[Path]
¶
SVG path definition for card's expansion symbol.
template_file: Path
¶
Template PSD file path, replaced before render process.
transform_icon: str
¶
Transform icon if provided, data possibly deprecated in modern practice.
twins: list[str]
¶
Both sides twins identity.
type_line: list[str]
¶
Both side type lines.
type_line_raw: str
¶
Card type line, enforced English representation.
types: list[str]
¶
Main cards types represented, e.g. Sorcery, Instant, Creature, etc.
types_raw: list[str]
¶
List of types extracted from the raw typeline.
watermark: list[Optional[str]]
¶
Name of the card's watermark file that is actually used, if provided.
watermark_basic: Optional[Path]
¶
Optional[Path]: Path to basic land watermark, if card is a Basic Land.
watermark_raw: list[Optional[str]]
¶
Name of the card's watermark from raw Scryfall data, if provided.
watermark_svg: list[Optional[Path]]
¶
Path to the watermark SVG file, if provided.