Expansion Symbol
EXPANSION SYMBOL HELPERS
format_expansion_symbol_dict(sym, rarity)
Returns a formatted symbol effects dictionary using a dictionary notation from the symbol library. @param sym: Symbol dictionary notation from symbol library. @param rarity: Rarity of the symbol. @return: Formatted layer effects dictionary.
Source code in src/helpers/expansion_symbol.py
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
format_symbol_fx_drop_shadow(fx)
Produces a correct dictionary for layer effects type: drop-shadow. @param fx: The drop shadow definition we were given by the user. @return: Formatted drop shadow definition for this effect.
Source code in src/helpers/expansion_symbol.py
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 |
|
format_symbol_fx_fill(fx, rarity)
Format background fill effect info. @param fx: Background fill details. @param rarity: Card rarity. @return: Formatted background fill details.
Source code in src/helpers/expansion_symbol.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
format_symbol_fx_gradient(rarity, gradient=None)
Produces a correct dictionary for layer effects type: gradient overlay. @param rarity: The rarity of this symbol. @param gradient: Gradient map to overwrite default gradient map. @return: Formatted gradient definition for this effect.
Source code in src/helpers/expansion_symbol.py
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 |
|
format_symbol_fx_stroke(fx, rarity)
Produces a correct dictionary for layer effects type: stroke. @param fx: The stroke definition we were given by the user. @param rarity: The rarity of this symbol. @return: Formatted stroke definition for this effect.
Source code in src/helpers/expansion_symbol.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|
get_default_gradient(rarity)
Return the gradient overlay layer effects dictionary for a given rarity. @param rarity: Rarity of the symbol. @return: Gradient Overlay FX dictionary.
Source code in src/helpers/expansion_symbol.py
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
|
get_default_stroke(rarity)
Return the symbol stroke layer effects dictionary for a given rarity. @param rarity: Rarity of the symbol. @return: Stroke FX dictionary.
Source code in src/helpers/expansion_symbol.py
281 282 283 284 285 286 287 288 289 290 291 292 293 |
|
get_default_symbol_dict(char, rarity)
Takes in a symbol character and rarity, returns a default configured symbol dict. @param char: Symbol character to use. @param rarity: Rarity to configure for. @return: Symbol info dictionary.
Source code in src/helpers/expansion_symbol.py
247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
|
process_expansion_symbol_info(symbol, rarity)
Takes in set code and returns information needed to build the expansion symbol. @param symbol: Symbol chosen by layout object. @param rarity: Rarity of the symbol. @return: List of dicts containing information about this symbol.
Source code in src/helpers/expansion_symbol.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|