Skip to content

Commit

Permalink
Add a warning in sprites_light.tcl and sprites_dark.tcl that they…
Browse files Browse the repository at this point in the history
… are auto-generated.
  • Loading branch information
Valer100 committed Aug 25, 2024
1 parent 757afc4 commit 5032f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spritesheet_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for (const theme of ["dark", "light"]) {
fs.writeFileSync(`../sv_ttk/theme/spritesheet_${theme}.png`, packedImage);
fs.writeFileSync(
`../sv_ttk/theme/sprites_${theme}.tcl`,
`set ::spriteinfo [list \\\n ${packedBin.rects
`# This file was auto_generated by spritesheet_generator.js.\n# Do not modify this file by hand, because your changes will be lost after building the spritesheets again.\n\nset ::spriteinfo [list \\\n ${packedBin.rects
.map(
(e) =>
`${path.parse(e.imagePath).name} ${e.x} ${e.y} ${e.width} ${e.height}`
Expand Down

0 comments on commit 5032f9d

Please sign in to comment.