Esempio n. 1
0
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)
Esempio n. 2
0
 def expand_udg(self, text, index):
     if self.handle_unsupported_macros:
         return skoolmacro.parse_udg(text, index)[0], ''
     raise UnsupportedMacroError()
Esempio n. 3
0
 def expand_udg(self, text, index):
     if self.handle_unsupported_macros:
         return skoolmacro.parse_udg(text, index)[0], ''
     raise skoolmacro.UnsupportedMacroError()
Esempio n. 4
0
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)