diff --git a/build/icon/4.new_transfer.js b/build/icon/4.new_transfer.js new file mode 100644 index 00000000..628de3fa --- /dev/null +++ b/build/icon/4.new_transfer.js @@ -0,0 +1,35 @@ +const fs = require('fs'); +const path = require('path'); + +// 定义路径 +const pngDir = 'E:\\HuiTask\\更好的原神\\2.资料\\图标处理\\matchedPng'; +const iconDir = 'E:\\HuiTask\\更好的原神\\2.资料\\图标处理\\matchedIco'; + +// 定义输出目录 +const outputDir = 'E:\\HuiTask\\更好的原神\\2.资料\\图标处理\\diffPng'; + +// 确保输出目录存在 +if (!fs.existsSync(outputDir)) { + fs.mkdirSync(outputDir, { recursive: true }); +} + +// 获取两个目录中的文件列表并去除扩展名 +const getPureFilenames = (dir) => { + return fs.readdirSync(dir).map(file => path.parse(file).name); +}; + +const pngFiles = getPureFilenames(pngDir); +const icoFiles = getPureFilenames(iconDir); + +// 找出在PNG目录存在但在ICO目录不存在的文件 +const unmatchedPng = pngFiles.filter(name => !icoFiles.includes(name)); + +// 复制不匹配的PNG文件到输出目录 +unmatchedPng.forEach(filename => { + const sourcePath = path.join(pngDir, `${filename}.png`); + const destPath = path.join(outputDir, `${filename}.png`); + fs.copyFileSync(sourcePath, destPath); +}); + +console.log(`找到并复制了 ${unmatchedPng.length} 个不匹配的 PNG 文件到: ${outputDir}`); + diff --git a/repo/pathing/劫波莲/desktop.ini b/repo/pathing/劫波莲/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/劫波莲/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/劫波莲/icon.ico b/repo/pathing/劫波莲/icon.ico new file mode 100644 index 00000000..e3ba6640 Binary files /dev/null and b/repo/pathing/劫波莲/icon.ico differ diff --git a/repo/pathing/圣金虫/desktop.ini b/repo/pathing/圣金虫/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/圣金虫/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/圣金虫/icon.ico b/repo/pathing/圣金虫/icon.ico new file mode 100644 index 00000000..5b01d6e3 Binary files /dev/null and b/repo/pathing/圣金虫/icon.ico differ diff --git a/repo/pathing/圣金虫/圣金虫_荼诃落谷西_3.json b/repo/pathing/圣金虫/圣金虫_荼诃落谷西_3.json index 9e2333d7..3cd2eb91 100644 --- a/repo/pathing/圣金虫/圣金虫_荼诃落谷西_3.json +++ b/repo/pathing/圣金虫/圣金虫_荼诃落谷西_3.json @@ -12,7 +12,7 @@ "id": 1, "x": 4790.89892578125, "y": -3182.685546875, - "type": "path", + "type": "teleport", "move_mode": "walk", "action": "" }, diff --git a/repo/pathing/塞西莉亚花/desktop.ini b/repo/pathing/塞西莉亚花/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/塞西莉亚花/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/塞西莉亚花/icon.ico b/repo/pathing/塞西莉亚花/icon.ico new file mode 100644 index 00000000..03eecfca Binary files /dev/null and b/repo/pathing/塞西莉亚花/icon.ico differ diff --git a/repo/pathing/墩墩桃/desktop.ini b/repo/pathing/墩墩桃/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/墩墩桃/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/墩墩桃/icon.ico b/repo/pathing/墩墩桃/icon.ico new file mode 100644 index 00000000..d9d53d64 Binary files /dev/null and b/repo/pathing/墩墩桃/icon.ico differ diff --git a/repo/pathing/天云草实/desktop.ini b/repo/pathing/天云草实/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/天云草实/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/天云草实/icon.ico b/repo/pathing/天云草实/icon.ico new file mode 100644 index 00000000..736943c5 Binary files /dev/null and b/repo/pathing/天云草实/icon.ico differ diff --git a/repo/pathing/帕蒂沙兰/desktop.ini b/repo/pathing/帕蒂沙兰/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/帕蒂沙兰/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/帕蒂沙兰/icon.ico b/repo/pathing/帕蒂沙兰/icon.ico new file mode 100644 index 00000000..b813fd36 Binary files /dev/null and b/repo/pathing/帕蒂沙兰/icon.ico differ diff --git a/repo/pathing/松果/desktop.ini b/repo/pathing/松果/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/松果/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/松果/icon.ico b/repo/pathing/松果/icon.ico new file mode 100644 index 00000000..71d1ff74 Binary files /dev/null and b/repo/pathing/松果/icon.ico differ diff --git a/repo/pathing/松茸/desktop.ini b/repo/pathing/松茸/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/松茸/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/松茸/icon.ico b/repo/pathing/松茸/icon.ico new file mode 100644 index 00000000..eeca6401 Binary files /dev/null and b/repo/pathing/松茸/icon.ico differ diff --git a/repo/pathing/松茸/松茸5.json b/repo/pathing/松茸/松茸5.json index 0c02830f..7c734d42 100644 --- a/repo/pathing/松茸/松茸5.json +++ b/repo/pathing/松茸/松茸5.json @@ -14,7 +14,7 @@ "y": 5091.79931640625, "action": "", "move_mode": "walk", - "type": "path" + "type": "teleport" }, { "id": 2, diff --git a/repo/pathing/枣椰/desktop.ini b/repo/pathing/枣椰/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/枣椰/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/枣椰/icon.ico b/repo/pathing/枣椰/icon.ico new file mode 100644 index 00000000..1d5fc630 Binary files /dev/null and b/repo/pathing/枣椰/icon.ico differ diff --git a/repo/pathing/树莓/desktop.ini b/repo/pathing/树莓/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/树莓/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/树莓/icon.ico b/repo/pathing/树莓/icon.ico new file mode 100644 index 00000000..9d02bba5 Binary files /dev/null and b/repo/pathing/树莓/icon.ico differ diff --git a/repo/pathing/泡泡桔/desktop.ini b/repo/pathing/泡泡桔/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/泡泡桔/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/泡泡桔/icon.ico b/repo/pathing/泡泡桔/icon.ico new file mode 100644 index 00000000..9f5ef54e Binary files /dev/null and b/repo/pathing/泡泡桔/icon.ico differ diff --git a/repo/pathing/海草/desktop.ini b/repo/pathing/海草/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/海草/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/海草/icon.ico b/repo/pathing/海草/icon.ico new file mode 100644 index 00000000..0ec65624 Binary files /dev/null and b/repo/pathing/海草/icon.ico differ diff --git a/repo/pathing/海露花/desktop.ini b/repo/pathing/海露花/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/海露花/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/海露花/icon.ico b/repo/pathing/海露花/icon.ico new file mode 100644 index 00000000..18b5f278 Binary files /dev/null and b/repo/pathing/海露花/icon.ico differ diff --git a/repo/pathing/莲蓬/desktop.ini b/repo/pathing/莲蓬/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/莲蓬/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/莲蓬/icon.ico b/repo/pathing/莲蓬/icon.ico new file mode 100644 index 00000000..0ac2b928 Binary files /dev/null and b/repo/pathing/莲蓬/icon.ico differ diff --git a/repo/pathing/赤念果/desktop.ini b/repo/pathing/赤念果/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/赤念果/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/赤念果/icon.ico b/repo/pathing/赤念果/icon.ico new file mode 100644 index 00000000..fb48c3dd Binary files /dev/null and b/repo/pathing/赤念果/icon.ico differ diff --git a/repo/pathing/香辛果/desktop.ini b/repo/pathing/香辛果/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/香辛果/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/香辛果/icon.ico b/repo/pathing/香辛果/icon.ico new file mode 100644 index 00000000..02874ed1 Binary files /dev/null and b/repo/pathing/香辛果/icon.ico differ diff --git a/repo/pathing/马尾/desktop.ini b/repo/pathing/马尾/desktop.ini new file mode 100644 index 00000000..e20f8ab7 --- /dev/null +++ b/repo/pathing/马尾/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +IconResource=icon.ico \ No newline at end of file diff --git a/repo/pathing/马尾/icon.ico b/repo/pathing/马尾/icon.ico new file mode 100644 index 00000000..94f7bc25 Binary files /dev/null and b/repo/pathing/马尾/icon.ico differ