@nice2dev/ui-graphics 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +142 -0
- package/dist/cjs/animation/AnimatedPerson.js +3 -1
- package/dist/cjs/animation/Audience.js +3 -1
- package/dist/cjs/animation/rig/RigPlayer.js +1 -1
- package/dist/cjs/animation/rig/presets.js +67 -55
- package/dist/cjs/animation/shapes/headwear.js +4 -1
- package/dist/cjs/core/NiceBrushEngine.js +8 -5
- package/dist/cjs/core/collaboration.js +11 -6
- package/dist/cjs/core/editorAsk.js +48 -0
- package/dist/cjs/core/i18n.js +7 -3
- package/dist/cjs/core/minimap.js +21 -20
- package/dist/cjs/core/plugins.js +1 -1
- package/dist/cjs/core/rtl.js +1 -1
- package/dist/cjs/core/theme.js +1 -1
- package/dist/cjs/font/NiceFontEditor.js +14 -12
- package/dist/cjs/game/GameAsset2dEditor.js +75 -44
- package/dist/cjs/nice2dev-ui-graphics.css +1 -1
- package/dist/cjs/photo/FilterThumb.js +3 -3
- package/dist/cjs/photo/NiceAITools.js +6 -4
- package/dist/cjs/photo/PhotoEditor.js +3 -1
- package/dist/cjs/photo/PhotoEditorCanvas.js +8 -6
- package/dist/cjs/photo/PhotoEditorLeftPanel.js +29 -29
- package/dist/cjs/photo/PhotoEditorToolbar.js +4 -4
- package/dist/cjs/photo/photoFilters.js +1 -0
- package/dist/cjs/pixel/PixelEditor.js +6 -3
- package/dist/cjs/pixel/PixelEditorCanvas.js +10 -6
- package/dist/cjs/pixel/PixelEditorMenuBar.js +95 -30
- package/dist/cjs/pixel/PixelEditorRightPanel.js +32 -24
- package/dist/cjs/pixel/PixelEditorStatusBar.js +12 -4
- package/dist/cjs/pixel/PixelEditorTimeline.js +15 -2
- package/dist/cjs/pixel/PixelEditorToolbar.js +12 -6
- package/dist/cjs/pixel/SpriteGeneratorPanel.js +28 -17
- package/dist/cjs/pixel/animalGeneratorPresets.js +31 -31
- package/dist/cjs/pixel/buildingGeneratorPresets.js +24 -24
- package/dist/cjs/pixel/characterGeneratorPresets.js +25 -25
- package/dist/cjs/pixel/usePixelEditor.js +13 -10
- package/dist/cjs/texture/Nice3DTexturePainter.js +16 -10
- package/dist/cjs/ui/NiceUIDesigner.js +17 -13
- package/dist/cjs/vector/NiceSvgToCode.js +7 -5
- package/dist/cjs/vector/VectorEditor.js +3 -2
- package/dist/cjs/vector/VectorEditorMenuBar.js +7 -1
- package/dist/cjs/vector/VectorEditorRightPanel.js +1 -1
- package/dist/cjs/vector/VectorEditorShapeRenderer.js +3 -1
- package/dist/cjs/vector/useVectorEditor.js +38 -29
- package/dist/cjs/vector/vectorEditorImport.js +1 -0
- package/dist/cjs/vector/vectorIconImport.js +1 -0
- package/dist/esm/animation/AnimatedPerson.js +3 -1
- package/dist/esm/animation/Audience.js +3 -1
- package/dist/esm/animation/rig/RigPlayer.js +1 -1
- package/dist/esm/animation/rig/presets.js +68 -56
- package/dist/esm/animation/shapes/headwear.js +4 -1
- package/dist/esm/animation/spineExport.js +1 -1
- package/dist/esm/core/NiceBrushEngine.js +8 -5
- package/dist/esm/core/collaboration.js +11 -6
- package/dist/esm/core/editorAsk.js +45 -0
- package/dist/esm/core/i18n.js +8 -4
- package/dist/esm/core/minimap.js +21 -20
- package/dist/esm/core/plugins.js +1 -1
- package/dist/esm/core/rtl.js +1 -1
- package/dist/esm/core/theme.js +1 -1
- package/dist/esm/font/NiceFontEditor.js +14 -12
- package/dist/esm/game/GameAsset2dEditor.js +75 -44
- package/dist/esm/nice2dev-ui-graphics.css +1 -1
- package/dist/esm/photo/FilterThumb.js +3 -3
- package/dist/esm/photo/NiceAITools.js +6 -4
- package/dist/esm/photo/PhotoEditor.js +3 -1
- package/dist/esm/photo/PhotoEditorCanvas.js +8 -6
- package/dist/esm/photo/PhotoEditorLeftPanel.js +29 -29
- package/dist/esm/photo/PhotoEditorToolbar.js +4 -4
- package/dist/esm/photo/photoFilters.js +1 -0
- package/dist/esm/pixel/PixelEditor.js +6 -3
- package/dist/esm/pixel/PixelEditorCanvas.js +10 -6
- package/dist/esm/pixel/PixelEditorMenuBar.js +95 -30
- package/dist/esm/pixel/PixelEditorRightPanel.js +32 -24
- package/dist/esm/pixel/PixelEditorStatusBar.js +12 -4
- package/dist/esm/pixel/PixelEditorTimeline.js +15 -2
- package/dist/esm/pixel/PixelEditorToolbar.js +12 -6
- package/dist/esm/pixel/SpriteGeneratorPanel.js +28 -17
- package/dist/esm/pixel/animalGeneratorPresets.js +32 -32
- package/dist/esm/pixel/buildingGeneratorPresets.js +25 -25
- package/dist/esm/pixel/characterGeneratorPresets.js +26 -26
- package/dist/esm/pixel/usePixelEditor.js +13 -10
- package/dist/esm/texture/Nice3DTexturePainter.js +16 -10
- package/dist/esm/ui/NiceUIDesigner.js +17 -13
- package/dist/esm/vector/NiceSvgToCode.js +7 -5
- package/dist/esm/vector/VectorEditor.js +3 -2
- package/dist/esm/vector/VectorEditorMenuBar.js +7 -1
- package/dist/esm/vector/VectorEditorRightPanel.js +1 -1
- package/dist/esm/vector/VectorEditorShapeRenderer.js +3 -1
- package/dist/esm/vector/useVectorEditor.js +38 -29
- package/dist/esm/vector/vectorEditorImport.js +1 -0
- package/dist/esm/vector/vectorIconImport.js +1 -0
- package/dist/types/core/LocalUI.d.ts +1 -2
- package/dist/types/core/editorAsk.d.ts +26 -0
- package/dist/types/core/i18n.d.ts +1 -17
- package/dist/types/pixel/usePixelEditor.d.ts +3 -0
- package/dist/types/vector/useVectorEditor.d.ts +2 -0
- package/package.json +5 -5
|
@@ -4,36 +4,44 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var ui = require('@nice2dev/ui');
|
|
5
5
|
var uiCore = require('@nice2dev/ui-core');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var i18n = require('../core/i18n.js');
|
|
7
8
|
var HSVPicker = require('./HSVPicker.js');
|
|
8
9
|
var PixelEditor_module = require('./PixelEditor.module.css.js');
|
|
9
10
|
var pixelEditorTypes = require('./pixelEditorTypes.js');
|
|
10
11
|
|
|
11
12
|
/** A collapsible section header: rotating chevron + title. */
|
|
12
13
|
const sectionTrigger = (title) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", { className: PixelEditor_module.collapseChevron, children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "chevron-right", size: 12 }) }), jsxRuntime.jsx("span", { children: title })] }));
|
|
13
|
-
const PixelEditorRightPanel =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
const PixelEditorRightPanel = /* @__PURE__ */ Object.assign(
|
|
15
|
+
/* @__PURE__ */ React.memo(({ api }) => {
|
|
16
|
+
const { t } = i18n.useNiceTranslation();
|
|
17
|
+
return (jsxRuntime.jsxs("div", { className: PixelEditor_module.rightPanel, children: [jsxRuntime.jsxs(ui.NiceCollapse, { className: PixelEditor_module.panelSection, defaultExpanded: true, trigger: sectionTrigger('Brush'), children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.brushSlider, children: [jsxRuntime.jsx("label", { children: t('pixelEditorRightPanel.size', 'Size') }), jsxRuntime.jsx(ui.NiceSlider, { min: 1, max: 64, value: api.brush.size, onChange: (val) => api.setBrush((b) => ({ ...b, size: val })), "aria-label": t('pixelEditorRightPanel.brushSize', 'Brush size') }), jsxRuntime.jsx("span", { children: api.brush.size })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.brushSlider, children: [jsxRuntime.jsx("label", { children: t('pixelEditorRightPanel.opacity', 'Opacity') }), jsxRuntime.jsx(ui.NiceSlider, { min: 1, max: 100, value: api.brush.opacity, onChange: (val) => api.setBrush((b) => ({ ...b, opacity: val })), "aria-label": t('pixelEditorRightPanel.brushOpacity', 'Brush opacity') }), jsxRuntime.jsxs("span", { children: [api.brush.opacity, "%"] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.brushSlider, children: [jsxRuntime.jsx("label", { children: t('pixelEditorRightPanel.flow', 'Flow') }), jsxRuntime.jsx(ui.NiceSlider, { min: 1, max: 100, value: api.brush.flow, onChange: (val) => api.setBrush((b) => ({ ...b, flow: val })), "aria-label": t('pixelEditorRightPanel.brushFlow', 'Brush flow') }), jsxRuntime.jsxs("span", { children: [api.brush.flow, "%"] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.brushSlider, children: [jsxRuntime.jsx("label", { children: t('pixelEditorRightPanel.hard', 'Hard') }), jsxRuntime.jsx(ui.NiceSlider, { min: 0, max: 100, value: api.brush.hardness, onChange: (val) => api.setBrush((b) => ({ ...b, hardness: val })), "aria-label": t('pixelEditorRightPanel.brushHardness', 'Brush hardness') }), jsxRuntime.jsxs("span", { children: [api.brush.hardness, "%"] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.brushSlider, children: [jsxRuntime.jsx("label", { children: t('pixelEditorRightPanel.space', 'Space') }), jsxRuntime.jsx(ui.NiceSlider, { min: 1, max: 100, value: api.brush.spacing, onChange: (val) => api.setBrush((b) => ({ ...b, spacing: val })), "aria-label": t('pixelEditorRightPanel.brushSpacing', 'Brush spacing') }), jsxRuntime.jsxs("span", { children: [api.brush.spacing, "%"] })] }), jsxRuntime.jsx("div", { className: PixelEditor_module.brushShapes, children: pixelEditorTypes.BRUSH_SHAPES.map((s) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${api.brush.shape === s.id ? PixelEditor_module.miniBtnActive : ''}`, variant: api.brush.shape === s.id ? 'primary' : 'ghost', size: "sm", onClick: () => api.setBrush((b) => ({ ...b, shape: s.id })), title: s.label, "aria-label": s.label, children: jsxRuntime.jsx(uiCore.NiceIcon, { name: s.icon, size: 16 }) }, s.id))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.pressureToggles, children: [jsxRuntime.jsx(ui.NiceCheckbox, { checked: api.brush.pressureSize, onChange: (checked) => api.setBrush((b) => ({ ...b, pressureSize: checked })), label: t('pixelEditorRightPanel.pressureSize', 'Pressure→Size'), className: PixelEditor_module.checkLabel }), jsxRuntime.jsx(ui.NiceCheckbox, { checked: api.brush.pressureOpacity, onChange: (checked) => api.setBrush((b) => ({ ...b, pressureOpacity: checked })), label: t('pixelEditorRightPanel.pressureOpacity', 'Pressure→Opacity'), className: PixelEditor_module.checkLabel })] })] }), jsxRuntime.jsx(ui.NiceCollapse, { className: PixelEditor_module.panelSection, defaultExpanded: true, trigger: sectionTrigger('Colour'), children: jsxRuntime.jsx(HSVPicker.HSVPicker, { color: api.col1, onChange: api.setCol1 }) }), jsxRuntime.jsxs(ui.NiceCollapse, { className: PixelEditor_module.panelSection, defaultExpanded: true, trigger: sectionTrigger('Layers'), children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.layerActions, children: [jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.addLayer, title: t('pixelEditorRightPanel.addLayer', 'Add Layer'), "aria-label": t('pixelEditorRightPanel.addLayer', 'Add Layer'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "plus", size: 16 }) }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.dupLayer, title: t('pixelEditorRightPanel.duplicateLayer', 'Duplicate Layer'), "aria-label": t('pixelEditorRightPanel.duplicateLayer', 'Duplicate Layer'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "copy", size: 16 }) }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.rmLayer, title: t('pixelEditorRightPanel.removeLayer', 'Remove Layer'), "aria-label": t('pixelEditorRightPanel.removeLayer', 'Remove Layer'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "minus", size: 16 }) }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.mergeDown, title: t('pixelEditorRightPanel.mergeDown', 'Merge Down'), "aria-label": t('pixelEditorRightPanel.mergeDown', 'Merge Down'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "arrow-down", size: 16 }) }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.moveLayerUp, title: t('pixelEditorRightPanel.moveUp', 'Move Up'), "aria-label": t('pixelEditorRightPanel.moveUp', 'Move Up'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "arrow-up", size: 16 }) }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.moveLayerDown, title: t('pixelEditorRightPanel.moveDown', 'Move Down'), "aria-label": t('pixelEditorRightPanel.moveDown', 'Move Down'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "arrow-down", size: 16 }) })] }), [...api.layers]
|
|
18
|
+
.map((l, i) => ({ l, i }))
|
|
19
|
+
.reverse()
|
|
20
|
+
.map(({ l, i }) => (jsxRuntime.jsxs("div", { className: `${PixelEditor_module.layerItem} ${i === api.aLi ? PixelEditor_module.layerItemActive : ''}`, onClick: () => api.setALi(i), children: [jsxRuntime.jsx("span", { className: PixelEditor_module.layerVis, onClick: (e) => {
|
|
21
|
+
e.stopPropagation();
|
|
22
|
+
api.toggleVis(i);
|
|
23
|
+
}, title: l.visible
|
|
24
|
+
? t('pixelEditorRightPanel.visible', 'Visible')
|
|
25
|
+
: t('pixelEditorRightPanel.hidden', 'Hidden'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: l.visible ? 'eye' : 'eye-off', size: 14 }) }), jsxRuntime.jsx("span", { className: PixelEditor_module.layerLock, onClick: (e) => {
|
|
26
|
+
e.stopPropagation();
|
|
27
|
+
api.toggleLock(i);
|
|
28
|
+
}, title: l.locked
|
|
29
|
+
? t('pixelEditorRightPanel.locked', 'Locked')
|
|
30
|
+
: t('pixelEditorRightPanel.unlocked', 'Unlocked'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "lock", size: 14 }) }), api.editingLayerName === l.id ? (jsxRuntime.jsx(ui.NiceTextInput, { className: PixelEditor_module.layerNameInput, value: l.name, onChange: (val) => api.renameLayer(i, val), onBlur: () => api.setEditingLayerName(null), onKeyDown: (e) => {
|
|
31
|
+
if (e.key === 'Enter') {
|
|
32
|
+
api.setEditingLayerName(null);
|
|
33
|
+
}
|
|
34
|
+
}, autoFocus: true, "aria-label": t('pixelEditorRightPanel.layerName', 'Layer name') })) : (jsxRuntime.jsx("span", { className: PixelEditor_module.layerName, onDoubleClick: (e) => {
|
|
35
|
+
e.stopPropagation();
|
|
36
|
+
api.setEditingLayerName(l.id);
|
|
37
|
+
}, children: l.name })), jsxRuntime.jsxs("span", { className: PixelEditor_module.layerOpacity, children: [Math.round((l.opacity / 255) * 100), "%"] })] }, l.id))), api.layers[api.aLi] && (jsxRuntime.jsxs("div", { className: PixelEditor_module.layerControls, children: [jsxRuntime.jsx(ui.NiceSelect, { value: api.layers[api.aLi].blendMode, onChange: (val) => api.setLayerBlendMode(api.aLi, val), className: PixelEditor_module.blendSelect, "aria-label": t('pixelEditorRightPanel.blendMode', 'Blend mode'), options: pixelEditorTypes.BLEND_MODES.map((m) => ({ value: m, label: m })) }), jsxRuntime.jsx(ui.NiceSlider, { min: 0, max: 255, value: api.layers[api.aLi].opacity, onChange: (val) => api.setLayerOpacity(api.aLi, val), className: PixelEditor_module.layerOpSlider, title: t('pixelEditorRightPanel.opacity2', 'Opacity: {opacity}%').replace('{opacity}', String(Math.round((api.layers[api.aLi].opacity / 255) * 100))) })] }))] }), jsxRuntime.jsxs(ui.NiceCollapse, { className: PixelEditor_module.panelSection, defaultExpanded: true, trigger: sectionTrigger('Palette'), children: [jsxRuntime.jsx("div", { className: PixelEditor_module.layerActions, children: jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: () => {
|
|
38
|
+
if (!api.pal.includes(api.col1)) {
|
|
39
|
+
api.setPal((p) => [...p, api.col1]);
|
|
25
40
|
}
|
|
26
|
-
},
|
|
27
|
-
e.
|
|
28
|
-
api.
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
api.setPal((p) => [...p, api.col1]);
|
|
32
|
-
}
|
|
33
|
-
}, title: "Add current colour", "aria-label": "Add current colour", children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "plus", size: 16 }) }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.paletteGrid, children: api.pal.map((c, i) => (jsxRuntime.jsx("div", { className: `${PixelEditor_module.paletteSwatch} ${c === api.col1 ? PixelEditor_module.paletteSwatchActive : ''}`, style: { backgroundColor: c }, onClick: () => api.setCol1(c), onContextMenu: (e) => {
|
|
34
|
-
e.preventDefault();
|
|
35
|
-
api.setCol2(c);
|
|
36
|
-
}, title: c }, i))) })] })] })));
|
|
37
|
-
PixelEditorRightPanel.displayName = 'PixelEditorRightPanel';
|
|
41
|
+
}, title: t('pixelEditorRightPanel.addCurrentColour', 'Add current colour'), "aria-label": t('pixelEditorRightPanel.addCurrentColour', 'Add current colour'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "plus", size: 16 }) }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.paletteGrid, children: api.pal.map((c, i) => (jsxRuntime.jsx("div", { className: `${PixelEditor_module.paletteSwatch} ${c === api.col1 ? PixelEditor_module.paletteSwatchActive : ''}`, style: { backgroundColor: c }, onClick: () => api.setCol1(c), onContextMenu: (e) => {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
api.setCol2(c);
|
|
44
|
+
}, title: c }, i))) })] })] }));
|
|
45
|
+
}), { displayName: 'PixelEditorRightPanel' });
|
|
38
46
|
|
|
39
47
|
module.exports = PixelEditorRightPanel;
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var i18n = require('../core/i18n.js');
|
|
5
6
|
var PixelEditor_module = require('./PixelEditor.module.css.js');
|
|
6
7
|
var pixelEditorTypes = require('./pixelEditorTypes.js');
|
|
7
8
|
|
|
8
|
-
const PixelEditorStatusBar =
|
|
9
|
+
const PixelEditorStatusBar = /* @__PURE__ */ Object.assign(
|
|
10
|
+
/* @__PURE__ */ React.memo(({ api }) => {
|
|
9
11
|
var _a;
|
|
10
|
-
|
|
11
|
-
})
|
|
12
|
-
|
|
12
|
+
const { t } = i18n.useNiceTranslation();
|
|
13
|
+
return (jsxRuntime.jsxs("div", { className: PixelEditor_module.statusBar, children: [jsxRuntime.jsxs("span", { children: [api.dw, "\u00D7", api.dh] }), jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.zoom', 'Zoom {zoom}%').replace('{zoom}', String(Math.round(api.zoom * 100))) }), api.cursor && pixelEditorTypes.inB(api.cursor.x, api.cursor.y, api.dw, api.dh) && (jsxRuntime.jsxs("span", { children: ["(", api.cursor.x, ", ", api.cursor.y, ")"] })), jsxRuntime.jsx("span", { children: api.tool }), jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.brushPx', 'Brush: {size}px {shape}')
|
|
14
|
+
.replace('{size}', String(api.brush.size))
|
|
15
|
+
.replace('{shape}', String(api.brush.shape)) }), jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.pressure', 'Pressure: {pressure}%').replace('{pressure}', String(Math.round(api.pressure * 100))) }), jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.layer', 'Layer: {name}').replace('{name}', String((_a = api.layers[api.aLi]) === null || _a === void 0 ? void 0 : _a.name)) }), jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.frame', 'Frame {current}/{total}')
|
|
16
|
+
.replace('{current}', String(api.afi + 1))
|
|
17
|
+
.replace('{total}', String(api.fc)) }), api.symmetry !== 'none' && (jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.sym', 'Sym: {symmetry}').replace('{symmetry}', String(api.symmetry)) })), api.shapeFilled && jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.filled', 'Filled') }), api.sel && (jsxRuntime.jsx("span", { children: t('pixelEditorStatusBar.sel', 'Sel: {w}×{h}')
|
|
18
|
+
.replace('{w}', String(api.sel.w))
|
|
19
|
+
.replace('{h}', String(api.sel.h)) }))] }));
|
|
20
|
+
}), { displayName: 'PixelEditorStatusBar' });
|
|
13
21
|
|
|
14
22
|
module.exports = PixelEditorStatusBar;
|
|
@@ -4,9 +4,22 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var ui = require('@nice2dev/ui');
|
|
5
5
|
var uiCore = require('@nice2dev/ui-core');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var i18n = require('../core/i18n.js');
|
|
7
8
|
var PixelEditor_module = require('./PixelEditor.module.css.js');
|
|
8
9
|
|
|
9
|
-
const PixelEditorTimeline =
|
|
10
|
-
|
|
10
|
+
const PixelEditorTimeline = /* @__PURE__ */ Object.assign(
|
|
11
|
+
/* @__PURE__ */ React.memo(({ api }) => {
|
|
12
|
+
const { t } = i18n.useNiceTranslation();
|
|
13
|
+
return (jsxRuntime.jsxs("div", { className: PixelEditor_module.bottomPanel, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.timelineControls, children: [jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.addFrame, children: t('pixelEditorTimeline.frame', '+ Frame') }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.dupFrame, "aria-label": t('pixelEditorTimeline.duplicateFrame', 'Duplicate frame'), children: t('pixelEditorTimeline.dup', 'Dup') }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: api.rmFrame, "aria-label": t('pixelEditorTimeline.removeFrame', 'Remove frame'), children: t('pixelEditorTimeline.frame2', '− Frame') }), jsxRuntime.jsx("div", { className: PixelEditor_module.menuSep }), jsxRuntime.jsx(ui.NiceButton, { variant: "ghost", size: "sm", onClick: () => api.setPlaying((p) => !p), "aria-label": api.playing
|
|
14
|
+
? t('pixelEditorTimeline.pause', 'Pause')
|
|
15
|
+
: t('pixelEditorTimeline.play', 'Play'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: api.playing ? 'pause' : 'play', size: 16 }) }), jsxRuntime.jsx("label", { children: t('pixelEditorTimeline.fps', 'FPS:') }), jsxRuntime.jsx(ui.NiceNumberInput, { min: 1, max: 60, value: api.fps, onChange: (val) => api.setFps(val !== null && val !== void 0 ? val : 8), "aria-label": t('pixelEditorTimeline.framesPerSecond', 'Frames per second') }), jsxRuntime.jsx("div", { className: PixelEditor_module.menuSep }), jsxRuntime.jsx(ui.NiceCheckbox, { checked: api.onion, onChange: (checked) => api.setOnion(checked), label: t('pixelEditorTimeline.onion', 'Onion') }), jsxRuntime.jsx("div", { style: { flex: 1 } }), jsxRuntime.jsx("span", { children: api.fc !== 1
|
|
16
|
+
? t('pixelEditorTimeline.framesMany', '{fc} frames').replace('{fc}', String(api.fc))
|
|
17
|
+
: t('pixelEditorTimeline.framesOne', '{fc} frame').replace('{fc}', String(api.fc)) })] }), jsxRuntime.jsx("div", { className: PixelEditor_module.timelineFrames, children: Array.from({ length: api.fc }, (_, fi) => (jsxRuntime.jsxs("div", { className: `${PixelEditor_module.frameThumb} ${fi === api.afi ? PixelEditor_module.frameThumbActive : ''}`, onClick: () => api.setAfi(fi), children: [api.thumbs[fi] && (jsxRuntime.jsx("img", { src: api.thumbs[fi], alt: t('pixelEditorTimeline.frame3', 'Frame {fi}').replace('{fi}', String(fi + 1)), style: {
|
|
18
|
+
width: 36,
|
|
19
|
+
height: 36,
|
|
20
|
+
imageRendering: 'pixelated',
|
|
21
|
+
objectFit: 'contain',
|
|
22
|
+
} })), jsxRuntime.jsx("span", { className: PixelEditor_module.frameNum, children: fi + 1 })] }, fi))) })] }));
|
|
23
|
+
}), { displayName: 'PixelEditorTimeline' });
|
|
11
24
|
|
|
12
25
|
module.exports = PixelEditorTimeline;
|
|
@@ -4,14 +4,20 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var ui = require('@nice2dev/ui');
|
|
5
5
|
var uiCore = require('@nice2dev/ui-core');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var i18n = require('../core/i18n.js');
|
|
7
8
|
var PixelEditor_module = require('./PixelEditor.module.css.js');
|
|
8
9
|
var pixelEditorTypes = require('./pixelEditorTypes.js');
|
|
9
10
|
|
|
10
|
-
const PixelEditorToolbar =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const PixelEditorToolbar = /* @__PURE__ */ Object.assign(
|
|
12
|
+
/* @__PURE__ */ React.memo(({ api }) => {
|
|
13
|
+
const { t } = i18n.useNiceTranslation();
|
|
14
|
+
return (jsxRuntime.jsxs("div", { className: PixelEditor_module.toolbar, children: [pixelEditorTypes.TOOLS.map((t) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.toolBtn} ${api.tool === t.id ? PixelEditor_module.toolBtnActive : ''}`, variant: api.tool === t.id ? 'primary' : 'ghost', size: "sm", onClick: () => api.setTool(t.id), title: `${t.label} (${t.key})`, "aria-label": t.label, children: jsxRuntime.jsx(uiCore.NiceIcon, { name: t.icon, size: 16 }) }, t.id))), jsxRuntime.jsx("div", { className: PixelEditor_module.toolSep }), jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.toolBtn} ${api.shapeFilled ? PixelEditor_module.toolBtnActive : ''}`, variant: api.shapeFilled ? 'primary' : 'ghost', size: "sm", onClick: () => api.setShapeFilled((f) => !f), title: `${api.shapeFilled ? 'Filled' : 'Outline'} (F)`, "aria-label": api.shapeFilled
|
|
15
|
+
? t('pixelEditorToolbar.filledShape', 'Filled shape')
|
|
16
|
+
: t('pixelEditorToolbar.outlineShape', 'Outline shape'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: api.shapeFilled ? 'check-square' : 'square', size: 16 }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.toolGroup, children: pixelEditorTypes.SYMMETRY_MODES.map((m) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${api.symmetry === m.id ? PixelEditor_module.miniBtnActive : ''}`, variant: api.symmetry === m.id ? 'primary' : 'ghost', size: "sm", onClick: () => api.setSymmetry(m.id), title: t('pixelEditorToolbar.symmetry', 'Symmetry: {label}').replace('{label}', String(m.label)), "aria-label": t('pixelEditorToolbar.symmetry', 'Symmetry: {label}').replace('{label}', String(m.label)), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: m.icon, size: 14 }) }, m.id))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.colorSwatches, children: [jsxRuntime.jsx("label", { style: { position: 'relative', width: 28, height: 28, cursor: 'pointer' }, title: t('pixelEditorToolbar.primaryColourClickForHsv', 'Primary Colour (click for HSV)'), children: jsxRuntime.jsx(ui.NiceColorPicker, { value: api.col1, onChange: (c) => api.setCol1(c) }) }), jsxRuntime.jsx("label", { style: { position: 'relative', width: 22, height: 22, cursor: 'pointer' }, title: t('pixelEditorToolbar.secondaryColour', 'Secondary Colour'), children: jsxRuntime.jsx(ui.NiceColorPicker, { value: api.col2, onChange: (c) => api.setCol2(c) }) }), jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.toolBtn, variant: "ghost", size: "sm", onClick: () => {
|
|
17
|
+
const tmp = api.col1;
|
|
18
|
+
api.setCol1(api.col2);
|
|
19
|
+
api.setCol2(tmp);
|
|
20
|
+
}, title: t('pixelEditorToolbar.swapX', 'Swap (X)'), "aria-label": t('pixelEditorToolbar.swapColours', 'Swap colours'), style: { fontSize: 12, width: 24, height: 24 }, children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "shuffle", size: 14 }) })] })] }));
|
|
21
|
+
}), { displayName: 'PixelEditorToolbar' });
|
|
16
22
|
|
|
17
23
|
module.exports = PixelEditorToolbar;
|
|
@@ -4,6 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var ui = require('@nice2dev/ui');
|
|
5
5
|
var uiCore = require('@nice2dev/ui-core');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var i18n = require('../core/i18n.js');
|
|
7
8
|
var animalGeneratorPresets = require('./animalGeneratorPresets.js');
|
|
8
9
|
var buildingGeneratorPresets = require('./buildingGeneratorPresets.js');
|
|
9
10
|
var characterGeneratorPresets = require('./characterGeneratorPresets.js');
|
|
@@ -68,6 +69,7 @@ const ANIMAL_CATEGORIES = [
|
|
|
68
69
|
const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
|
|
69
70
|
// presets and onGenerate are exposed for forward-compat; not currently consumed.
|
|
70
71
|
}) => {
|
|
72
|
+
const { t } = i18n.useNiceTranslation();
|
|
71
73
|
ensureInitialized();
|
|
72
74
|
/* ── State ── */
|
|
73
75
|
const [tab, setTab] = React.useState(mode !== null && mode !== void 0 ? mode : 'character');
|
|
@@ -226,19 +228,19 @@ const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
|
|
|
226
228
|
case 'character':
|
|
227
229
|
return [
|
|
228
230
|
{
|
|
229
|
-
label: 'Skin',
|
|
231
|
+
label: t('spriteGeneratorPanel.skin', 'Skin'),
|
|
230
232
|
options: palettesToOptions(characterGeneratorPresets.SKIN_PALETTES),
|
|
231
233
|
value: skinPalette,
|
|
232
234
|
set: setSkinPalette,
|
|
233
235
|
},
|
|
234
236
|
{
|
|
235
|
-
label: 'Hair',
|
|
237
|
+
label: t('spriteGeneratorPanel.hair', 'Hair'),
|
|
236
238
|
options: palettesToOptions(characterGeneratorPresets.HAIR_PALETTES),
|
|
237
239
|
value: hairPalette,
|
|
238
240
|
set: setHairPalette,
|
|
239
241
|
},
|
|
240
242
|
{
|
|
241
|
-
label: 'Clothing',
|
|
243
|
+
label: t('spriteGeneratorPanel.clothing', 'Clothing'),
|
|
242
244
|
options: palettesToOptions(characterGeneratorPresets.CLOTHING_PALETTES),
|
|
243
245
|
value: clothPalette,
|
|
244
246
|
set: setClothPalette,
|
|
@@ -247,13 +249,13 @@ const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
|
|
|
247
249
|
case 'building':
|
|
248
250
|
return [
|
|
249
251
|
{
|
|
250
|
-
label: 'Walls',
|
|
252
|
+
label: t('spriteGeneratorPanel.walls', 'Walls'),
|
|
251
253
|
options: palettesToOptions(buildingGeneratorPresets.WALL_PALETTES),
|
|
252
254
|
value: wallPalette,
|
|
253
255
|
set: setWallPalette,
|
|
254
256
|
},
|
|
255
257
|
{
|
|
256
|
-
label: 'Roof',
|
|
258
|
+
label: t('spriteGeneratorPanel.roof', 'Roof'),
|
|
257
259
|
options: palettesToOptions(buildingGeneratorPresets.ROOF_PALETTES),
|
|
258
260
|
value: roofPalette,
|
|
259
261
|
set: setRoofPalette,
|
|
@@ -262,16 +264,16 @@ const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
|
|
|
262
264
|
case 'animal':
|
|
263
265
|
return [
|
|
264
266
|
{
|
|
265
|
-
label: 'Fur',
|
|
267
|
+
label: t('spriteGeneratorPanel.fur', 'Fur'),
|
|
266
268
|
options: palettesToOptions(animalGeneratorPresets.FUR_PALETTES),
|
|
267
269
|
value: furPalette,
|
|
268
270
|
set: setFurPalette,
|
|
269
271
|
},
|
|
270
272
|
];
|
|
271
273
|
}
|
|
272
|
-
}, [tab, skinPalette, hairPalette, clothPalette, wallPalette, roofPalette, furPalette]);
|
|
274
|
+
}, [tab, skinPalette, hairPalette, clothPalette, wallPalette, roofPalette, furPalette, t]);
|
|
273
275
|
/* ── Render ── */
|
|
274
|
-
return (jsxRuntime.jsx(ui.NiceModal, { open: true, onClose: onClose !== null && onClose !== void 0 ? onClose : (() => { }), title:
|
|
276
|
+
return (jsxRuntime.jsx(ui.NiceModal, { open: true, onClose: onClose !== null && onClose !== void 0 ? onClose : (() => { }), title: t('spriteGeneratorPanel.spriteGenerator', 'Sprite Generator'), size: "xl", children: jsxRuntime.jsxs("div", { className: PixelEditor_module.genPanel, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.genTabs, children: ['character', 'building', 'animal'].map((t) => (jsxRuntime.jsxs(ui.NiceButton, { className: `${PixelEditor_module.genTabBtn} ${tab === t ? PixelEditor_module.genTabBtnActive : ''}`, variant: tab === t ? 'primary' : 'ghost', size: "sm", onClick: () => setTab(t), children: [jsxRuntime.jsx(uiCore.NiceIcon, { name: t === 'character' ? 'user' : t === 'building' ? 'home' : 'heart', size: 14 }), ' ', t.charAt(0).toUpperCase() + t.slice(1)] }, t))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genBody, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.genLeft, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.presets', 'Presets') }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genPresetGrid, children: presets.map((preset, i) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.genPresetBtn} ${i === selectedPresetIdx ? PixelEditor_module.genPresetBtnActive : ''}`, variant: i === selectedPresetIdx ? 'primary' : 'ghost', size: "sm", onClick: () => applyPreset(i), title: preset.name, children: preset.name }, i))) })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, style: { flex: 1, overflowY: 'auto' }, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.parts', 'Parts') }) }), categories.map((cat) => {
|
|
275
277
|
const parts = spriteGeneratorCore.getPartsByCategory(cat);
|
|
276
278
|
if (parts.length === 0) {
|
|
277
279
|
return null;
|
|
@@ -285,26 +287,35 @@ const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
|
|
|
285
287
|
const active = selectedParts.some((p) => { var _a; return p.partId === part.id && ((_a = p.visible) !== null && _a !== void 0 ? _a : true); });
|
|
286
288
|
return (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${PixelEditor_module.genPartBtn} ${active ? PixelEditor_module.miniBtnActive : ''}`, variant: active ? 'primary' : 'ghost', size: "sm", onClick: () => (active ? removePart(part.id) : addPart(part.id)), title: part.name, children: part.name }, part.id));
|
|
287
289
|
}) })] }, cat));
|
|
288
|
-
})] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genCenter, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.genPreviewWrap, children: jsxRuntime.jsx("canvas", { ref: previewRef, className: PixelEditor_module.genPreviewCanvas }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genDirGrid, children: spriteGeneratorCore.ALL_DIRECTIONS.map((d) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${direction === d ? PixelEditor_module.miniBtnActive : ''}`, variant: direction === d ? 'primary' : 'ghost', size: "sm", onClick: () => setDirection(d), children: d }, d))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRow, children: [jsxRuntime.jsx("label", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children:
|
|
289
|
-
{ value: 'topDown', label: 'Top-Down' },
|
|
290
|
-
{ value: 'sideView', label: 'Side View' },
|
|
291
|
-
{
|
|
292
|
-
|
|
290
|
+
})] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genCenter, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.genPreviewWrap, children: jsxRuntime.jsx("canvas", { ref: previewRef, className: PixelEditor_module.genPreviewCanvas }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genDirGrid, children: spriteGeneratorCore.ALL_DIRECTIONS.map((d) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${direction === d ? PixelEditor_module.miniBtnActive : ''}`, variant: direction === d ? 'primary' : 'ghost', size: "sm", onClick: () => setDirection(d), children: d }, d))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRow, children: [jsxRuntime.jsx("label", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: t('spriteGeneratorPanel.projection', 'Projection') }), jsxRuntime.jsx(ui.NiceSelect, { className: PixelEditor_module.propSelect, value: projection, onChange: (val) => setProjection(val), options: [
|
|
291
|
+
{ value: 'topDown', label: t('spriteGeneratorPanel.topDown', 'Top-Down') },
|
|
292
|
+
{ value: 'sideView', label: t('spriteGeneratorPanel.sideView', 'Side View') },
|
|
293
|
+
{
|
|
294
|
+
value: 'iso25d',
|
|
295
|
+
label: t('spriteGeneratorPanel.n25dIsometric', '2.5D Isometric'),
|
|
296
|
+
},
|
|
297
|
+
] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRow, children: [jsxRuntime.jsx("label", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: t('spriteGeneratorPanel.size', 'Size') }), jsxRuntime.jsx(ui.NiceNumberInput, { min: 8, max: 256, value: canvasW, onChange: (val) => setCanvasW(val !== null && val !== void 0 ? val : 32) }), jsxRuntime.jsx("span", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: "\u00D7" }), jsxRuntime.jsx(ui.NiceNumberInput, { min: 8, max: 256, value: canvasH, onChange: (val) => setCanvasH(val !== null && val !== void 0 ? val : 32) })] }), jsxRuntime.jsx(ui.NiceCheckbox, { checked: generate8Dir, onChange: (checked) => setGenerate8Dir(checked), label: t('spriteGeneratorPanel.generate8DirectionSheet', 'Generate 8-direction sheet'), className: PixelEditor_module.checkLabel })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRight, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.colors', 'Colors') }) }), paletteGroups.map((group) => {
|
|
293
298
|
var _a;
|
|
294
299
|
return (jsxRuntime.jsxs("div", { style: { marginBottom: 6 }, children: [jsxRuntime.jsx("div", { style: { fontSize: 9, color: 'var(--nice-text-muted)', marginBottom: 2 }, children: group.label }), jsxRuntime.jsx(ui.NiceSelect, { className: PixelEditor_module.propSelect, value: group.value, onChange: (val) => group.set(val), options: group.options.map((opt) => ({
|
|
295
300
|
value: opt.id,
|
|
296
301
|
label: opt.name,
|
|
297
302
|
})) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genColorSwatches, children: (_a = group.options
|
|
298
303
|
.find((o) => o.id === group.value)) === null || _a === void 0 ? void 0 : _a.colors.map((c, i) => (jsxRuntime.jsx("div", { className: PixelEditor_module.genColorSwatch, style: { backgroundColor: c }, title: c }, i))) })] }, group.label));
|
|
299
|
-
})] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, style: { flex: 1, overflowY: 'auto' }, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children:
|
|
304
|
+
})] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, style: { flex: 1, overflowY: 'auto' }, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.assembly', 'Assembly') }) }), selectedParts.map((ap, i) => {
|
|
300
305
|
var _a, _b, _c, _d, _e;
|
|
301
306
|
const part = partsMapRef.current.get(ap.partId);
|
|
302
307
|
return (
|
|
303
308
|
// A part can be placed twice (left and right leg, flipped), so its id
|
|
304
309
|
// alone is not a unique key.
|
|
305
|
-
jsxRuntime.jsxs("div", { className: PixelEditor_module.genAssemblyItem, children: [jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: () => togglePart(ap.partId), title: ((_a = ap.visible) !== null && _a !== void 0 ? _a : true)
|
|
306
|
-
|
|
310
|
+
jsxRuntime.jsxs("div", { className: PixelEditor_module.genAssemblyItem, children: [jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: () => togglePart(ap.partId), title: ((_a = ap.visible) !== null && _a !== void 0 ? _a : true)
|
|
311
|
+
? t('spriteGeneratorPanel.hide', 'Hide')
|
|
312
|
+
: t('spriteGeneratorPanel.show', 'Show'), "aria-label": ((_b = ap.visible) !== null && _b !== void 0 ? _b : true)
|
|
313
|
+
? t('spriteGeneratorPanel.hide', 'Hide')
|
|
314
|
+
: t('spriteGeneratorPanel.show', 'Show'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: ((_c = ap.visible) !== null && _c !== void 0 ? _c : true) ? 'eye' : 'eye-off', size: 14 }) }), jsxRuntime.jsx("span", { className: PixelEditor_module.genAssemblyName, children: (_d = part === null || part === void 0 ? void 0 : part.name) !== null && _d !== void 0 ? _d : ap.partId }), jsxRuntime.jsxs("span", { style: { fontSize: 9, color: 'var(--nice-text-muted)' }, children: ["z:", (_e = part === null || part === void 0 ? void 0 : part.zOrder) !== null && _e !== void 0 ? _e : 0] }), jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: () => removePart(ap.partId), title: t('spriteGeneratorPanel.remove', 'Remove'), "aria-label": t('spriteGeneratorPanel.remove', 'Remove'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "close", size: 14 }) })] }, `${ap.partId}-${i}`));
|
|
315
|
+
})] })] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genFooter, children: [jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnSecondary, variant: "ghost", onClick: onClose, children: t('spriteGeneratorPanel.cancel', 'Cancel') }), jsxRuntime.jsxs(ui.NiceButton, { className: PixelEditor_module.btnPrimary, variant: "primary", onClick: handleSendToCanvas, children: [jsxRuntime.jsx(uiCore.NiceIcon, { name: "clipboard", size: 14 }), ' ', t('spriteGeneratorPanel.sendToCanvas', 'Send to Canvas')] })] })] }) }));
|
|
307
316
|
};
|
|
308
|
-
|
|
317
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
318
|
+
NiceSpriteGeneratorPanel.displayName = 'NiceSpriteGeneratorPanel';
|
|
319
|
+
}
|
|
309
320
|
|
|
310
321
|
module.exports = NiceSpriteGeneratorPanel;
|
|
@@ -40,7 +40,7 @@ const FEATHER_PALETTES = {
|
|
|
40
40
|
════════════════════════════════════════════════════════════════ */
|
|
41
41
|
const _ = -1;
|
|
42
42
|
/* ── Cat head ── */
|
|
43
|
-
const CAT_HEAD_S = spriteGeneratorCore.createPartData(8, 7, [
|
|
43
|
+
const CAT_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 7, [
|
|
44
44
|
[_, 0, _, _, _, _, 0, _],
|
|
45
45
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
|
46
46
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
|
@@ -49,7 +49,7 @@ const CAT_HEAD_S = spriteGeneratorCore.createPartData(8, 7, [
|
|
|
49
49
|
[0, 0, 0, 3, 3, 0, 0, 0],
|
|
50
50
|
[_, 0, 0, 0, 0, 0, 0, _],
|
|
51
51
|
], ['#e09040', '#c07828', 'var(--nice-success, #40a040)', '#f0a0a0']);
|
|
52
|
-
const CAT_HEAD_E = spriteGeneratorCore.createPartData(6, 7, [
|
|
52
|
+
const CAT_HEAD_E = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 7, [
|
|
53
53
|
[_, _, _, _, 0, _],
|
|
54
54
|
[_, 0, 0, 0, 0, 0],
|
|
55
55
|
[0, 0, 0, 0, 0, 0],
|
|
@@ -59,7 +59,7 @@ const CAT_HEAD_E = spriteGeneratorCore.createPartData(6, 7, [
|
|
|
59
59
|
[_, 0, 0, 0, 0, _],
|
|
60
60
|
], ['#e09040', '#c07828', 'var(--nice-success, #40a040)', '#f0a0a0']);
|
|
61
61
|
/* ── Dog head ── */
|
|
62
|
-
const DOG_HEAD_S = spriteGeneratorCore.createPartData(8, 8, [
|
|
62
|
+
const DOG_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 8, [
|
|
63
63
|
[_, _, 0, 0, 0, 0, _, _],
|
|
64
64
|
[_, 0, 0, 0, 0, 0, 0, _],
|
|
65
65
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
|
@@ -69,7 +69,7 @@ const DOG_HEAD_S = spriteGeneratorCore.createPartData(8, 8, [
|
|
|
69
69
|
[_, _, 0, 0, 0, 0, _, _],
|
|
70
70
|
[_, _, _, 0, 0, _, _, _],
|
|
71
71
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)', 'var(--nice-bg, #301818)', 'var(--nice-bg, #301818)']);
|
|
72
|
-
const DOG_HEAD_E = spriteGeneratorCore.createPartData(7, 8, [
|
|
72
|
+
const DOG_HEAD_E = /* @__PURE__ */ spriteGeneratorCore.createPartData(7, 8, [
|
|
73
73
|
[_, _, 0, 0, 0, _, _],
|
|
74
74
|
[_, 0, 0, 0, 0, 0, _],
|
|
75
75
|
[0, 0, 0, 0, 0, 0, _],
|
|
@@ -80,7 +80,7 @@ const DOG_HEAD_E = spriteGeneratorCore.createPartData(7, 8, [
|
|
|
80
80
|
[_, _, _, 0, 0, 0, _],
|
|
81
81
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)', 'var(--nice-bg, #301818)', 'var(--nice-bg, #301818)']);
|
|
82
82
|
/* ── Wolf head ── */
|
|
83
|
-
const WOLF_HEAD_S = spriteGeneratorCore.createPartData(10, 8, [
|
|
83
|
+
const WOLF_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 8, [
|
|
84
84
|
[_, 0, _, _, _, _, _, _, 0, _],
|
|
85
85
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
86
86
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
@@ -91,7 +91,7 @@ const WOLF_HEAD_S = spriteGeneratorCore.createPartData(10, 8, [
|
|
|
91
91
|
[_, _, _, 0, 0, 0, 0, _, _, _],
|
|
92
92
|
], ['var(--nice-text-secondary, #808080)', '#606060', '#f0d060', 'var(--nice-bg, #301818)']);
|
|
93
93
|
/* ── Bird head ── */
|
|
94
|
-
const BIRD_HEAD_S = spriteGeneratorCore.createPartData(6, 6, [
|
|
94
|
+
const BIRD_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 6, [
|
|
95
95
|
[_, _, 0, 0, _, _],
|
|
96
96
|
[_, 0, 0, 0, 0, _],
|
|
97
97
|
[0, 0, 2, 2, 0, 0],
|
|
@@ -100,7 +100,7 @@ const BIRD_HEAD_S = spriteGeneratorCore.createPartData(6, 6, [
|
|
|
100
100
|
[_, _, _, 3, _, _],
|
|
101
101
|
], ['#a08040', '#806030', 'var(--nice-bg, #301818)', '#f0a020']);
|
|
102
102
|
/* ── Dragon head ── */
|
|
103
|
-
const DRAGON_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
|
|
103
|
+
const DRAGON_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 9, [
|
|
104
104
|
[_, _, _, 0, _, _, 0, _, _, _],
|
|
105
105
|
[_, _, 0, 0, 0, 0, 0, 0, _, _],
|
|
106
106
|
[_, 0, 0, 0, 0, 0, 0, 0, 0, _],
|
|
@@ -112,7 +112,7 @@ const DRAGON_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
|
|
|
112
112
|
[_, _, _, 0, 0, 0, 0, _, _, _],
|
|
113
113
|
], ['var(--nice-success, #40a040)', '#308030', '#f0d060', 'var(--nice-bg, #301818)']);
|
|
114
114
|
/* ── Rabbit head ── */
|
|
115
|
-
const RABBIT_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
|
|
115
|
+
const RABBIT_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 10, [
|
|
116
116
|
[_, _, 0, _, _, 0, _, _],
|
|
117
117
|
[_, _, 0, _, _, 0, _, _],
|
|
118
118
|
[_, _, 0, _, _, 0, _, _],
|
|
@@ -125,7 +125,7 @@ const RABBIT_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
|
|
|
125
125
|
[_, _, 0, 0, 0, 0, _, _],
|
|
126
126
|
], ['#f0e8d0', '#d8d0b8', '#d04040', '#f0a0a0']);
|
|
127
127
|
/* ── Bear head ── */
|
|
128
|
-
const BEAR_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
|
|
128
|
+
const BEAR_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 9, [
|
|
129
129
|
[_, 0, 0, _, _, _, _, 0, 0, _],
|
|
130
130
|
[_, 0, 0, 0, 0, 0, 0, 0, 0, _],
|
|
131
131
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
@@ -137,7 +137,7 @@ const BEAR_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
|
|
|
137
137
|
[_, _, 0, 0, 0, 0, 0, 0, _, _],
|
|
138
138
|
], ['#805020', '#603818', '#201010', '#402818']);
|
|
139
139
|
/* ── Horse head ── */
|
|
140
|
-
const HORSE_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
|
|
140
|
+
const HORSE_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 10, [
|
|
141
141
|
[_, _, _, 0, 0, _, _, _],
|
|
142
142
|
[_, _, 0, 0, 0, 0, _, _],
|
|
143
143
|
[_, 0, 0, 0, 0, 0, 0, _],
|
|
@@ -150,7 +150,7 @@ const HORSE_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
|
|
|
150
150
|
[_, _, _, 0, 0, _, _, _],
|
|
151
151
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)', 'var(--nice-bg, #301818)']);
|
|
152
152
|
/* ── Bodies ── */
|
|
153
|
-
const BODY_SMALL = spriteGeneratorCore.createPartData(8, 6, [
|
|
153
|
+
const BODY_SMALL = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 6, [
|
|
154
154
|
[_, _, 0, 0, 0, 0, _, _],
|
|
155
155
|
[_, 0, 0, 0, 0, 0, 0, _],
|
|
156
156
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
|
@@ -158,7 +158,7 @@ const BODY_SMALL = spriteGeneratorCore.createPartData(8, 6, [
|
|
|
158
158
|
[_, 0, 0, 0, 0, 0, 0, _],
|
|
159
159
|
[_, _, 0, 0, 0, 0, _, _],
|
|
160
160
|
], ['#e09040', '#c07828']);
|
|
161
|
-
const BODY_MEDIUM = spriteGeneratorCore.createPartData(12, 8, [
|
|
161
|
+
const BODY_MEDIUM = /* @__PURE__ */ spriteGeneratorCore.createPartData(12, 8, [
|
|
162
162
|
[_, _, _, 0, 0, 0, 0, 0, 0, _, _, _],
|
|
163
163
|
[_, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _],
|
|
164
164
|
[_, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _],
|
|
@@ -168,7 +168,7 @@ const BODY_MEDIUM = spriteGeneratorCore.createPartData(12, 8, [
|
|
|
168
168
|
[_, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _],
|
|
169
169
|
[_, _, _, 0, 0, 0, 0, 0, 0, _, _, _],
|
|
170
170
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
|
|
171
|
-
const BODY_LARGE = spriteGeneratorCore.createPartData(14, 10, [
|
|
171
|
+
const BODY_LARGE = /* @__PURE__ */ spriteGeneratorCore.createPartData(14, 10, [
|
|
172
172
|
[_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
|
|
173
173
|
[_, _, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _, _],
|
|
174
174
|
[_, _, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _, _],
|
|
@@ -180,7 +180,7 @@ const BODY_LARGE = spriteGeneratorCore.createPartData(14, 10, [
|
|
|
180
180
|
[_, _, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _, _],
|
|
181
181
|
[_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
|
|
182
182
|
], ['#805020', '#603818']);
|
|
183
|
-
const BODY_BIRD = spriteGeneratorCore.createPartData(8, 7, [
|
|
183
|
+
const BODY_BIRD = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 7, [
|
|
184
184
|
[_, _, _, 0, 0, _, _, _],
|
|
185
185
|
[_, _, 0, 0, 0, 0, _, _],
|
|
186
186
|
[_, 0, 0, 0, 0, 0, 0, _],
|
|
@@ -189,7 +189,7 @@ const BODY_BIRD = spriteGeneratorCore.createPartData(8, 7, [
|
|
|
189
189
|
[_, _, 0, 0, 0, 0, _, _],
|
|
190
190
|
[_, _, _, 0, 0, _, _, _],
|
|
191
191
|
], ['#a08040', '#806030']);
|
|
192
|
-
const BODY_DRAGON = spriteGeneratorCore.createPartData(14, 10, [
|
|
192
|
+
const BODY_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(14, 10, [
|
|
193
193
|
[_, _, _, _, _, 0, 0, 0, 0, _, _, _, _, _],
|
|
194
194
|
[_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
|
|
195
195
|
[_, _, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _, _],
|
|
@@ -202,28 +202,28 @@ const BODY_DRAGON = spriteGeneratorCore.createPartData(14, 10, [
|
|
|
202
202
|
[_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
|
|
203
203
|
], ['var(--nice-success, #40a040)', '#f0d060']);
|
|
204
204
|
/* ── Legs ── */
|
|
205
|
-
const LEG_THIN = spriteGeneratorCore.createPartData(2, 5, [
|
|
205
|
+
const LEG_THIN = /* @__PURE__ */ spriteGeneratorCore.createPartData(2, 5, [
|
|
206
206
|
[0, 0],
|
|
207
207
|
[0, 0],
|
|
208
208
|
[0, 0],
|
|
209
209
|
[0, 0],
|
|
210
210
|
[0, 1],
|
|
211
211
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
|
|
212
|
-
const LEG_THICK = spriteGeneratorCore.createPartData(3, 5, [
|
|
212
|
+
const LEG_THICK = /* @__PURE__ */ spriteGeneratorCore.createPartData(3, 5, [
|
|
213
213
|
[0, 0, 0],
|
|
214
214
|
[0, 0, 0],
|
|
215
215
|
[0, 0, 0],
|
|
216
216
|
[0, 0, 0],
|
|
217
217
|
[0, 0, 1],
|
|
218
218
|
], ['#805020', '#603818']);
|
|
219
|
-
const LEG_BIRD = spriteGeneratorCore.createPartData(2, 5, [
|
|
219
|
+
const LEG_BIRD = /* @__PURE__ */ spriteGeneratorCore.createPartData(2, 5, [
|
|
220
220
|
[_, 0],
|
|
221
221
|
[_, 0],
|
|
222
222
|
[_, 0],
|
|
223
223
|
[0, 0],
|
|
224
224
|
[0, 0],
|
|
225
225
|
], ['#f0a020', '#c08010']);
|
|
226
|
-
const LEG_DRAGON = spriteGeneratorCore.createPartData(3, 6, [
|
|
226
|
+
const LEG_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(3, 6, [
|
|
227
227
|
[_, 0, 0],
|
|
228
228
|
[0, 0, 0],
|
|
229
229
|
[0, 0, 0],
|
|
@@ -232,31 +232,31 @@ const LEG_DRAGON = spriteGeneratorCore.createPartData(3, 6, [
|
|
|
232
232
|
[0, 1, 0],
|
|
233
233
|
], ['var(--nice-success, #40a040)', '#206020']);
|
|
234
234
|
/* ── Tails ── */
|
|
235
|
-
const TAIL_SHORT = spriteGeneratorCore.createPartData(4, 3, [
|
|
235
|
+
const TAIL_SHORT = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 3, [
|
|
236
236
|
[0, 0, _, _],
|
|
237
237
|
[_, 0, 0, _],
|
|
238
238
|
[_, _, 0, 0],
|
|
239
239
|
], ['#e09040', '#c07828']);
|
|
240
|
-
const TAIL_LONG = spriteGeneratorCore.createPartData(6, 4, [
|
|
240
|
+
const TAIL_LONG = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 4, [
|
|
241
241
|
[0, 0, _, _, _, _],
|
|
242
242
|
[_, 0, 0, _, _, _],
|
|
243
243
|
[_, _, 0, 0, _, _],
|
|
244
244
|
[_, _, _, 0, 0, 0],
|
|
245
245
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
|
|
246
|
-
const TAIL_FLUFFY = spriteGeneratorCore.createPartData(6, 5, [
|
|
246
|
+
const TAIL_FLUFFY = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 5, [
|
|
247
247
|
[_, 0, 0, _, _, _],
|
|
248
248
|
[0, 0, 0, 0, _, _],
|
|
249
249
|
[_, 0, 0, 0, 0, _],
|
|
250
250
|
[_, _, 0, 0, 0, 0],
|
|
251
251
|
[_, _, _, 0, 0, _],
|
|
252
252
|
], ['var(--nice-text-secondary, #808080)', '#606060']);
|
|
253
|
-
const TAIL_DRAGON = spriteGeneratorCore.createPartData(8, 4, [
|
|
253
|
+
const TAIL_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 4, [
|
|
254
254
|
[0, 0, _, _, _, _, _, _],
|
|
255
255
|
[_, 0, 0, 0, _, _, _, _],
|
|
256
256
|
[_, _, _, 0, 0, 0, _, _],
|
|
257
257
|
[_, _, _, _, _, 0, 1, 0],
|
|
258
258
|
], ['var(--nice-success, #40a040)', '#308030']);
|
|
259
|
-
const TAIL_BIRD = spriteGeneratorCore.createPartData(5, 5, [
|
|
259
|
+
const TAIL_BIRD = /* @__PURE__ */ spriteGeneratorCore.createPartData(5, 5, [
|
|
260
260
|
[_, _, 0, _, _],
|
|
261
261
|
[_, 0, 0, 0, _],
|
|
262
262
|
[0, 0, 0, 0, 0],
|
|
@@ -264,14 +264,14 @@ const TAIL_BIRD = spriteGeneratorCore.createPartData(5, 5, [
|
|
|
264
264
|
[_, _, 0, _, _],
|
|
265
265
|
], ['#a08040', '#806030']);
|
|
266
266
|
/* ── Wings ── */
|
|
267
|
-
const WING_SMALL = spriteGeneratorCore.createPartData(6, 5, [
|
|
267
|
+
const WING_SMALL = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 5, [
|
|
268
268
|
[_, _, _, _, 0, _],
|
|
269
269
|
[_, _, _, 0, 0, 0],
|
|
270
270
|
[_, _, 0, 0, 0, 0],
|
|
271
271
|
[_, 0, 0, 0, 0, 0],
|
|
272
272
|
[0, 0, 0, 0, 0, _],
|
|
273
273
|
], ['#a08040', '#806030']);
|
|
274
|
-
const WING_LARGE = spriteGeneratorCore.createPartData(10, 8, [
|
|
274
|
+
const WING_LARGE = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 8, [
|
|
275
275
|
[_, _, _, _, _, _, _, _, 0, _],
|
|
276
276
|
[_, _, _, _, _, _, _, 0, 0, 0],
|
|
277
277
|
[_, _, _, _, _, _, 0, 0, 0, 0],
|
|
@@ -281,7 +281,7 @@ const WING_LARGE = spriteGeneratorCore.createPartData(10, 8, [
|
|
|
281
281
|
[_, _, 0, 0, 0, 0, 0, 0, 0, _],
|
|
282
282
|
[_, 0, 0, 0, 0, 0, 0, 0, _, _],
|
|
283
283
|
], ['var(--nice-success, #40a040)', '#308030']);
|
|
284
|
-
const WING_BAT = spriteGeneratorCore.createPartData(10, 7, [
|
|
284
|
+
const WING_BAT = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 7, [
|
|
285
285
|
[_, _, 0, _, _, 0, _, _, 0, _],
|
|
286
286
|
[_, 0, 0, _, 0, 0, _, 0, 0, _],
|
|
287
287
|
[_, 0, 0, 0, 0, 0, 0, 0, 0, _],
|
|
@@ -291,13 +291,13 @@ const WING_BAT = spriteGeneratorCore.createPartData(10, 7, [
|
|
|
291
291
|
[_, _, _, 0, 0, 0, 0, _, _, _],
|
|
292
292
|
], ['var(--nice-border, #404040)', '#303030']);
|
|
293
293
|
/* ── Manes ── */
|
|
294
|
-
const MANE_SHORT = spriteGeneratorCore.createPartData(6, 4, [
|
|
294
|
+
const MANE_SHORT = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 4, [
|
|
295
295
|
[_, _, 0, 0, _, _],
|
|
296
296
|
[_, 0, 0, 0, 0, _],
|
|
297
297
|
[0, 0, 0, 0, 0, 0],
|
|
298
298
|
[_, _, 0, 0, _, _],
|
|
299
299
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
|
|
300
|
-
const MANE_LONG = spriteGeneratorCore.createPartData(6, 8, [
|
|
300
|
+
const MANE_LONG = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 8, [
|
|
301
301
|
[_, _, 0, 0, _, _],
|
|
302
302
|
[_, 0, 0, 0, 0, _],
|
|
303
303
|
[0, 0, 0, 0, 0, 0],
|
|
@@ -308,12 +308,12 @@ const MANE_LONG = spriteGeneratorCore.createPartData(6, 8, [
|
|
|
308
308
|
[_, _, 0, 0, _, _],
|
|
309
309
|
], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
|
|
310
310
|
/* ── Horns ── */
|
|
311
|
-
const HORNS_SMALL = spriteGeneratorCore.createPartData(8, 3, [
|
|
311
|
+
const HORNS_SMALL = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 3, [
|
|
312
312
|
[0, _, _, _, _, _, _, 0],
|
|
313
313
|
[0, 0, _, _, _, _, 0, 0],
|
|
314
314
|
[_, 0, _, _, _, _, 0, _],
|
|
315
315
|
], ['#f0e8d0', '#d8d0b8']);
|
|
316
|
-
const HORNS_DRAGON = spriteGeneratorCore.createPartData(10, 4, [
|
|
316
|
+
const HORNS_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 4, [
|
|
317
317
|
[0, _, _, _, _, _, _, _, _, 0],
|
|
318
318
|
[0, 0, _, _, _, _, _, _, 0, 0],
|
|
319
319
|
[_, 0, 0, _, _, _, _, 0, 0, _],
|