Skip to content

VectorNyxMod

src.templates._cosmetic.VectorNyxMod

Bases: NyxMod, VectorTemplate

Modifier for vectorized 'Nyxtouched' supported templates.

Inherits
  • 'NyxMod'
Adds
  • 'background_group': Use 'Nyx' group if card is Nyxtouched.
Source code in src\templates\_cosmetic.py
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
class VectorNyxMod (NyxMod, VectorTemplate):
    """
    Modifier for vectorized 'Nyxtouched' supported templates.

    Inherits:
        - 'NyxMod'

    Adds:
        - 'background_group': Use 'Nyx' group if card is Nyxtouched.
    """

    @auto_prop_cached
    def background_group(self) -> Optional[LayerSet]:
        """Try finding a Nyx background group if the card is a 'Nyxtouched' frame."""
        if self.is_nyx:
            if layer := psd.getLayerSet(LAYERS.NYX):
                return layer
        return super().background_group

Functions

background_group() -> Optional[LayerSet]

Try finding a Nyx background group if the card is a 'Nyxtouched' frame.

Source code in src\templates\_cosmetic.py
137
138
139
140
141
142
143
@auto_prop_cached
def background_group(self) -> Optional[LayerSet]:
    """Try finding a Nyx background group if the card is a 'Nyxtouched' frame."""
    if self.is_nyx:
        if layer := psd.getLayerSet(LAYERS.NYX):
            return layer
    return super().background_group