SVG spritesheets: pack, merge, rasterize
Packing an SVG sheet makes a new SVG holding its drawing once (as a symbol), each region a clipped view of it at its new place; merging makes an SVG whenever any sheet is one, with PNG sheets embedded as images (the merged sheet's file name takes the matching extension). Both go through Image::compose, which also does the pixel versions, so merge_append is gone. Vector sheets save as their SVG (autosaves too, and images load as PNG or SVG by content), and their asset key includes the SVG. Rasterize in the Spritesheets menu turns selected SVG sheets into PNGs beside them, with a toast for each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bec89bf48f
commit
5f01e8065d
14 files changed
+316
-82
No files matched your search
@@ -307,6 +307,7 @@ namespace anm2ed
|
||||
X(LABEL_PROPERTY, "Property", "Propiedad", "Свойство", "属性", "속성") \
|
||||
X(LABEL_PURGE_DEFAULT_COLORS, "Purge Default Color Values", "Omitir Valores de Color por Defecto", "Убирать цвета по умолчанию", "清除默认颜色值", "기본 색상 값 제거") \
|
||||
X(LABEL_RANDOM, "Random", "Aleatorio", "Случайно", "随机", "무작위") \
|
||||
X(LABEL_RASTERIZE, "Rasterize", "Rasterizar", "Растеризовать", "栅格化", "래스터화") \
|
||||
X(LABEL_REMOVE_MARKERS, "Remove Markers", "Quitar Marcadores", "Удалить маркеры", "移除标记", "마커 제거") \
|
||||
X(LABEL_RESTART, "Restart", "Reiniciar", "Перезапуск", "重新开始", "다시 시작") \
|
||||
X(LABEL_SAVE_ANYWAY, "Save Anyway", "Guardar de Todos Modos", "Всё равно сохранить", "仍然保存", "그래도 저장") \
|
||||
@@ -708,6 +709,7 @@ namespace anm2ed
|
||||
X(TOOLTIP_ONLY_SELECTED_ITEM, "Only the selected item (root, layer or null) is onionskinned and shows its pivot path.", "Solo el elemento seleccionado (raíz, capa o null) usa papel cebolla y muestra la trayectoria de su pivote.", "Оньонскин и путь опорной точки показываются только для выбранного элемента (корень, слой или null).", "仅对选中的项目(根、图层或空节点)显示洋葱皮和枢轴路径。", "선택한 항목(루트, 레이어 또는 널)에만 전후 비교와 피벗 경로를 표시합니다.") \
|
||||
X(TOOLTIP_PIVOT_PATH, "Show the path each item's pivot travels through the animation, with a dot on every frame.", "Muestra la trayectoria que recorre el pivote de cada elemento durante la animación, con un punto en cada Frame.", "Показать путь опорной точки каждого элемента в анимации, с точкой на каждом кадре.", "显示每个项目的枢轴在动画中移动的路径,每帧一个点。", "애니메이션 동안 각 항목의 피벗이 지나는 경로를 프레임마다 점으로 표시합니다.") \
|
||||
X(TOOLTIP_PURGE_DEFAULT_COLORS, "Leave tints of 255 and color offsets of 0 out of saved frames; the game and the editor read missing ones as those defaults, so files get much smaller.", "Omite de los Frames guardados los tintes de 255 y los desplazamientos de color de 0; el juego y el editor leen los que faltan como esos valores, así que los archivos son mucho más pequeños.", "Не записывать в кадры оттенки 255 и смещения цвета 0; игра и редактор считают отсутствующие значения такими же, поэтому файлы становятся намного меньше.", "保存帧时省略为 255 的色调和为 0 的颜色偏移;游戏和编辑器会将缺失值读作这些默认值,因此文件会小得多。", "저장되는 프레임에서 255인 틴트와 0인 색상 오프셋을 생략합니다. 게임과 에디터는 빠진 값을 기본값으로 읽으므로 파일이 훨씬 작아집니다.") \
|
||||
X(TOOLTIP_RASTERIZE_SPRITESHEETS, "Turn the selected SVG spritesheets into PNGs beside them (same name), drawn at 100%.", "Convierte los spritesheets SVG seleccionados en PNG junto a ellos (mismo nombre), dibujados al 100%.", "Превратить выбранные SVG спрайт-листы в PNG рядом с ними (с тем же именем), отрисованные в масштабе 100%.", "将所选 SVG 图集转换为旁边的同名 PNG,按 100% 绘制。", "선택한 SVG 스프라이트 시트를 옆에 같은 이름의 PNG로 바꿉니다(100%로 그림).") \
|
||||
X(TOOLTIP_REGION, "Set the spritesheet region the frame will use.", "Establece la región del spritesheet que usará el frame.", "Установить регион спрайт-листа, который будет использовать кадр.", "设置帧将使用的图集区域.", "프레임이 사용할 스프라이트 시트 영역을 설정합니다.") \
|
||||
X(TOOLTIP_FRAME_SHADER, "Set the shader this frame uses. None uses the default shader.", "Set the shader this frame uses. None uses the default shader.", "Set the shader this frame uses. None uses the default shader.", "Set the shader this frame uses. None uses the default shader.", "Set the shader this frame uses. None uses the default shader.") \
|
||||
X(TOOLTIP_REGION_PROPERTIES_ORIGIN, "Use a preset origin for the region.", "Usa un origen predefinido para la región.", "Использовать предустановленную точку отсчета для региона.", "为区域使用预设原点。", "영역에 사전 설정된 원점을 사용합니다.") \
|
||||
|
||||
Reference in new issue
Block a user