Functions
src.layouts.assign_layout(filename: Path) -> Union[str, CardLayout]
Assign layout object to a card.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename | Path | Path to the art file, filename supports optional tags: | required |
Returns:
Type | Description |
---|---|
str | CardLayout | Layout object for this card. |
Source code in src\layouts.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
src.layouts.join_dual_card_layouts(layouts: list[Union[str, CardLayout]])
Join any layout objects that are dual sides of the same card, i.e. Split cards.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
layouts | list[str | CardLayout] | List of layout objects (or strings which are skipped). | required |
Returns:
Type | Description |
---|---|
List of layouts, with split layouts joined. |
Source code in src\layouts.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|