def _parse_udg(snapshot, param_str): end, crop_rect, fname, frame, alt, params = skoolmacro.parse_udg(param_str) addr, attr, scale, step, inc, flip, rotate, mask, tindex, alpha, mask_addr, mask_step = params udgs = [[ build_udg(snapshot, addr, attr, step, inc, flip, rotate, mask, mask_addr, mask_step) ]] return Frame(udgs, scale, mask, *crop_rect, tindex=tindex, alpha=alpha)
def expand_udg(self, text, index): if self.handle_unsupported_macros: return skoolmacro.parse_udg(text, index)[0], '' raise UnsupportedMacroError()
def expand_udg(self, text, index): if self.handle_unsupported_macros: return skoolmacro.parse_udg(text, index)[0], '' raise skoolmacro.UnsupportedMacroError()
def _parse_udg(snapshot, param_str): end, crop_rect, fname, frame, alt, params = skoolmacro.parse_udg(param_str) addr, attr, scale, step, inc, flip, rotate, mask, mask_addr, mask_step = params udgs = [[build_udg(snapshot, addr, attr, step, inc, flip, rotate, mask, mask_addr, mask_step)]] return Frame(udgs, scale, mask, *crop_rect)