Merge develop

This commit is contained in:
Pieter Vander Vennet 2021-12-22 01:09:33 +01:00
commit 70aa6eb003
26 changed files with 89 additions and 1083 deletions

View file

@ -31,10 +31,15 @@ function genImages(dryrun = false) {
svg = "xxx"
}
let rawName = name;
if(dryrun){
rawName = "add";
}
module += ` public static ${name} = "${svg}"\n`
module += ` public static ${name}_img = Img.AsImageElement(Svg.${name})\n`
module += ` public static ${name}_svg() { return new Img(Svg.${name}, true);}\n`
module += ` public static ${name}_ui() { return new FixedUiElement(Svg.${name}_img);}\n\n`
module += ` public static ${name}_img = Img.AsImageElement(Svg.${rawName})\n`
module += ` public static ${name}_svg() { return new Img(Svg.${rawName}, true);}\n`
module += ` public static ${name}_ui() { return new FixedUiElement(Svg.${rawName}_img);}\n\n`
if (!dryrun) {
allNames.push(`"${path}": Svg.${name}`)
}