Bases: FullartMod
, NormalTemplate
Zendikar Rising Expedition template. Masks pinlines for legendary cards, has a single static background layer, doesn't support color indicator, companion, or nyx layers.
Source code in src\templates\normal.py
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 | class ExpeditionTemplate(FullartMod, NormalTemplate):
"""Zendikar Rising Expedition template. Masks pinlines for legendary cards, has a single static background layer,
doesn't support color indicator, companion, or nyx layers.
"""
template_suffix = 'Expedition'
# Static Properties
is_land = False
background_layer = None
"""
* Layers
"""
@auto_prop_cached
def text_layer_rules(self) -> Optional[ArtLayer]:
"""No separate creature text layer."""
return psd.getLayer(LAYERS.RULES_TEXT, self.text_group)
"""
* Text Layer Methods
"""
def rules_text_and_pt_layers(self) -> None:
"""Add rules and power/toughness text."""
# No Creature-specific rules text
self.text.append(
FormattedTextArea(
layer=self.text_layer_rules,
contents=self.layout.oracle_text,
flavor=self.layout.flavor_text,
reference=self.textbox_reference,
divider=self.divider_layer,
centered=self.is_centered))
# Add PT for Creature
if self.is_creature:
self.text.append(
TextField(
layer=self.text_layer_pt,
contents=f'{self.layout.power}/'
f'{self.layout.toughness}'))
"""
* Frame Layer Methods
"""
def enable_crown(self):
# No hollow crown
self.crown_layer.visible = True
psd.getLayer(LAYERS.NORMAL_BORDER, self.border_group).visible = False
psd.getLayer(LAYERS.LEGENDARY_BORDER, self.border_group).visible = True
# Enable legendary cutout on background and pinlines
psd.enable_mask(psd.getLayer('Background'))
psd.enable_mask(self.pinlines_layer.parent)
|
Attributes
Functions
rules_text_and_pt_layers() -> None
Add rules and power/toughness text.
Source code in src\templates\normal.py
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273 | def rules_text_and_pt_layers(self) -> None:
"""Add rules and power/toughness text."""
# No Creature-specific rules text
self.text.append(
FormattedTextArea(
layer=self.text_layer_rules,
contents=self.layout.oracle_text,
flavor=self.layout.flavor_text,
reference=self.textbox_reference,
divider=self.divider_layer,
centered=self.is_centered))
# Add PT for Creature
if self.is_creature:
self.text.append(
TextField(
layer=self.text_layer_pt,
contents=f'{self.layout.power}/'
f'{self.layout.toughness}'))
|
text_layer_rules() -> Optional[ArtLayer]
No separate creature text layer.
Source code in src\templates\normal.py
| @auto_prop_cached
def text_layer_rules(self) -> Optional[ArtLayer]:
"""No separate creature text layer."""
return psd.getLayer(LAYERS.RULES_TEXT, self.text_group)
|