mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-13 16:18:22 +02:00
added --overwrite to image conversion
This commit is contained in:
parent
df44624807
commit
84debb7a1f
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,6 @@ def patch_ct_icon(self):
|
|||
for i, id in enumerate(files):
|
||||
if os.path.exists(f"./file/cup_icon/{id}.png"):
|
||||
cup_icon = Image.open(f"./file/cup_icon/{id}.png").resize((128, 128))
|
||||
ct_icon.paste(cup_icon, (0, i * 128))
|
||||
|
||||
else:
|
||||
cup_icon = Image.new("RGBA", (128, 128))
|
||||
|
@ -32,6 +31,7 @@ def patch_ct_icon(self):
|
|||
draw.text((5 + 2, 80 + 2), "%03i" % (i-10), (0, 0, 0), font=font)
|
||||
|
||||
draw.text((5, 80), "%03i" % (i-10), (255, 165, 0), font=font)
|
||||
|
||||
ct_icon.paste(cup_icon, (0, i * 128))
|
||||
|
||||
ct_icon.save("./file/ct_icons.tpl.png")
|
||||
|
|
|
@ -30,7 +30,7 @@ def patch_file(self):
|
|||
for i, file in enumerate(fc["img"]):
|
||||
self.Progress(statut=self.translate("Conversion des images")+f"\n({i + 1}/{len(fc['img'])}) {file}", add=1)
|
||||
if not (os.path.exists("./file/" + get_filename(file))):
|
||||
subprocess.call(["./tools/szs/wimgt", "ENCODE", "./file/" + file, "-x", fc["img"][file]]
|
||||
subprocess.call(["./tools/szs/wimgt", "ENCODE", "./file/" + file, "-x", fc["img"][file], "--overwrite"]
|
||||
, creationflags=CREATE_NO_WINDOW)
|
||||
|
||||
for file in glob.glob(self.path_mkwf+"/files/Scene/UI/MenuSingle_?.szs"):
|
||||
|
|
Loading…
Reference in a new issue