NormalLayout¶
src.layouts.NormalLayout
¶
Defines unified properties for all cards and serves as the layout for any M15 style typical card.
Source code in src\layouts.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 | |
Attributes¶
art_file: Path
¶
artist: str
¶
Card artist name, prioritizes user provided artist name. Controls for duplicate last names.
background: str
¶
Identity of the background.
card: dict
¶
Main card data object to pull most relevant data from.
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[str]
¶
Commander relevant color identity array, e.g. [W, U].
color_indicator: str
¶
Color indicator identity array, e.g. [W, U].
creator: str
¶
date: date
¶
display_name: str
¶
Card name, GUI appropriate representation.
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: str
¶
Card flavor text, alternate language version shares the same key.
frame: FrameDetails
¶
Dictionary containing calculated frame information.
frame_effects: list[str]
¶
Array of frame effects, e.g. nyxtouched, snow, etc.
identity: str
¶
Frame appropriate color identity of the card.
input_name: str
¶
Card name, version provided in art file name.
is_alt_lang: bool
¶
True if language selected isn't English.
is_artifact: bool
¶
True if card is an Artifact.
is_basic_land: bool
¶
True if card is a Basic Land.
is_colorless: bool
¶
True if card is colorless or devoid.
is_companion: bool
¶
True if card is a Companion.
is_creature: bool
¶
True if card is a Creature.
is_emblem: bool
¶
is_front: bool
¶
True if card is front face.
is_hybrid: bool
¶
True if card is a hybrid frame.
is_land: bool
¶
True if card is a Land.
is_legendary: bool
¶
True if card is Legendary.
is_miracle: bool
¶
True if card is a 'Miracle' card.
is_nyx: bool
¶
True if card has Nyx enchantment background texture.
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: Optional[str]
¶
Scryfall formatted card mana cost.
name: str
¶
Card name, supports alternate language source.
name_raw: str
¶
Card name, enforced English representation.
nickname: str
¶
Nickname, typically set inside template logic but can be passed in filename.
oracle_text: str
¶
Card rules text, supports alternate language source.
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: str
¶
Identity of the pinlines.
power: str
¶
Creature power, if provided.
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.
toughness: str
¶
Creature toughness, if provided.
transform_icon: str
¶
Transform icon if provided, data possibly deprecated in modern practice.
twins: str
¶
Identity of the name and title boxes.
type_line: str
¶
Card type line, supports alternate language source.
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: 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: Optional[str]
¶
Name of the card's watermark from raw Scryfall data, if provided.
watermark_svg: Optional[Path]
¶
Path to the watermark SVG file, if provided.