Files
feuerwerk/todo-notes/done/texture-asset-to-sprite.md
T
rootandClaude Opus 5 9212e61c4c Create a sprite asset from a texture's context menu
The sprite takes the whole image at its pixel size and the texture's name,
numbered like any other clash. CreateAssetCommand now accepts starting
properties; they go through the schema in execute, so an unknown key or a
bad value is refused before the project is touched, and one undo removes
the asset.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 09:57:19 +02:00

583 B
Raw Blame History

rechtsklick auf texture asset => menüeintrag: create sprite from texture selbsterklärend oder? (es soll im prinzip ein sprite asset erstellt werden wo automatisch die ausgewählte textur zugewiesen ist)


Umgesetzt: das Sprite bekommt die Pixelgröße des Bildes (Wahl des Users) und heißt wie die Textur, nach der üblichen Regel durchnummeriert (pasted → pasted 2). Ist die Bildgröße noch nicht bekannt, bleibt es bei 100 × 100. Die Start-Werte gehen beim Ausführen durch das Schema wie jede andere Änderung; ein Undo nimmt das Asset in einem Schritt heraus.