fix(furni): generate scale 32 from bundles with .png frame keys
resolveNitroFrame now matches spritesheet frame keys that carry a .png suffix or namespaced naming, and isScale/scaleName preserve that suffix. Broken source sprites (missing frames or references to icon artwork) are skipped and reported instead of aborting the whole generation, and the studio UI surfaces the skipped count.
This commit is contained in:
1 parent
0842788a28
commit
4d720ee03c
5 files changed
+119
-29
No files matched your search
@@ -16,6 +16,7 @@ export function NitroScale32Generator({
|
||||
before: string;
|
||||
after: string;
|
||||
count: number;
|
||||
skipped?: number;
|
||||
} | null>(null),
|
||||
[undo, setUndo] = useState<{ hash: string; backupHash: string } | null>(
|
||||
null,
|
||||
@@ -78,6 +79,12 @@ export function NitroScale32Generator({
|
||||
{preview.count} sprite entries will be added. Check positioning and
|
||||
animations in the client after saving.
|
||||
</p>
|
||||
{preview.skipped ? (
|
||||
<p className="text-sm text-destructive" role="alert">
|
||||
{preview.skipped} sprite(s) were skipped because the source bundle
|
||||
has no usable artwork for them.
|
||||
</p>
|
||||
) : null}
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
{[
|
||||
["Original 64", preview.before],
|
||||
|
||||
Reference in new issue
Block a user