forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
commit
70aa6eb003
26 changed files with 89 additions and 1083 deletions
|
@ -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}`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue