tilemap-editor 5.3.0__tar.gz → 5.4.0__tar.gz
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.
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/CHANGELOG.md +12 -0
- {tilemap_editor-5.3.0/src/tilemap_editor.egg-info → tilemap_editor-5.4.0}/PKG-INFO +1 -1
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/pyproject.toml +1 -1
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/editor.py +83 -1
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/layers.py +17 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/node_manager.py +14 -0
- tilemap_editor-5.4.0/src/plugins/character_hitbox/__init__.py +13 -0
- tilemap_editor-5.4.0/src/plugins/character_hitbox/anim_loader.py +194 -0
- tilemap_editor-5.4.0/src/plugins/character_hitbox/editor.py +1541 -0
- tilemap_editor-5.4.0/src/plugins/character_hitbox/models.py +289 -0
- tilemap_editor-5.4.0/src/plugins/character_hitbox/standalone.py +125 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/editor.py +71 -17
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/frame_picker.py +46 -1
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/models.py +43 -5
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/preview.py +12 -8
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/runtime_load.py +34 -2
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/timeline.py +26 -11
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/validation.py +15 -1
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/editor.py +376 -2
- tilemap_editor-5.4.0/src/plugins/sprite_editor/tab_strip.py +173 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/viewport.py +6 -2
- tilemap_editor-5.4.0/src/standalone_image_viewer.py +608 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap.py +401 -80
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/cli.py +19 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/settings.py +1 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0/src/tilemap_editor.egg-info}/PKG-INFO +1 -1
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/SOURCES.txt +15 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/history.py +11 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/icon_manager.py +18 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/input.py +12 -1
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/layer_selector.py +1 -18
- tilemap_editor-5.4.0/src/widgets/mapsetup.py +467 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/tile_grid.py +86 -17
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/tile_selector.py +5 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/button.py +6 -2
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/checkbox.py +4 -6
- tilemap_editor-5.4.0/src/widgets/ui/context_menu.py +225 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/menubar.py +6 -1
- tilemap_editor-5.4.0/src/widgets/ui/mini_file_navigator.py +753 -0
- tilemap_editor-5.4.0/src/widgets/ui/shape_canvas.py +1387 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/theme.py +21 -0
- tilemap_editor-5.4.0/tests/test_character_hitbox.py +401 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_edit_menu.py +2 -0
- tilemap_editor-5.4.0/tests/test_hitbox_workflow.py +767 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_layer_selector_keys.py +2 -2
- tilemap_editor-5.4.0/tests/test_map_templates.py +612 -0
- tilemap_editor-5.4.0/tests/test_shape_canvas.py +193 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_animation_gestures.py +23 -0
- tilemap_editor-5.4.0/tests/test_sprite_animation_spans.py +67 -0
- tilemap_editor-5.4.0/tests/test_standalone_image_viewer.py +180 -0
- tilemap_editor-5.4.0/tests/test_tile_grid_object_animation.py +109 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_timeline_invalidate_cache.py +2 -2
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_unicode.py +2 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_view_menu.py +2 -0
- tilemap_editor-5.3.0/src/standalone_image_viewer.py +0 -410
- tilemap_editor-5.3.0/src/widgets/mapsetup.py +0 -198
- tilemap_editor-5.3.0/src/widgets/ui/context_menu.py +0 -160
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/LICENSE +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/MANIFEST.in +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/README.md +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-Bold.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-BoldItalic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-Italic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-Regular.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-Bold.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-BoldItalic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-Italic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-Regular.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/arrow-down.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/check.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/checked.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/close.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/duplicate.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/error.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/file.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/filedead.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/fill.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/fit.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/folder.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/free.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/grid.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/image.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/info.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/load.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/loop.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/onion.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/pan.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/pause.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/pencil.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/pick.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/play.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/plus.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/radio.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/region.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/reset.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/save.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/skip-back.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/skip-forward.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/sparkle.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/stop.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/tilemap.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/tileset.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/unchecked.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/warning.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/zoomin.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/assets/icons/zoomout.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/setup.cfg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/aliases.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/constants.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/event_map.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/main.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/nodes.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/character_collision/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/character_collision/collision_thumbs.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/character_collision/editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/character_collision/models.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/character_collision/protocols.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/character_collision/shape_editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/character_collision/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/models.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/protocols.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/__main__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/controls.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/essentials.particles.json +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/models.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/presets.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/preview.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/sim.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/particle_editor/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/__main__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/clipboard_util.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/protocols.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/camera.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/clipboard.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/commands.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/dialogs.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/document.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/overlays.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/region_export.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/selection.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/tools.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tile_alias/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tile_alias/editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tile_alias/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/collision_painter.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/models.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/protocols.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/run.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/standalone_automap.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/standalone_error_console.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/standalone_filemanager.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/standalone_marker_palette.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/__main__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-Bold.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-BoldItalic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-Italic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-Regular.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-Bold.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-BoldItalic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-Italic.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-Regular.ttf +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/ToolMove.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/arrow-down.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/check.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/checked.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/close.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/dice.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/duplicate.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/error.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/file.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/filedead.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/fill.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/fit.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/fold_down_arrow.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/folder.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/free.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/gear.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/grid.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/image.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/info.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/line.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/load.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/loop.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/miniobj.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/onion.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pan.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pause.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pencil.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pick.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/play.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/plus.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/radio.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/rect.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/redo.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/region.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/reset.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/save.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/skip-back.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/skip-forward.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/sparkle.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/stop.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/text.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/tilemap.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/tileset.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/unchecked.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/undo.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/unfold_right_arrow.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/warning.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/zoomin.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/zoomout.svg +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor/main.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/dependency_links.txt +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/entry_points.txt +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/requires.txt +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/top_level.txt +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/ttypes/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/ttypes/tilemap.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/context_dispatch.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/editor_preference.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/error_handler.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/font_manager.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/icons_cache.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/log_capture.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/natural_sort.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/project_paths.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/property_suggestions.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/serialization.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/shortcuts.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/standalone.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/tile_anim.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/tileset_hierarchy.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/tileset_ops.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/utils/validation.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/__init__.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/automap_models.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/autotile_template.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/autotiler.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/filemanager.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/map_properties.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/minimap.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/particle_presets.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/particle_system.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/regex_automap_designer.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/alias_palette.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/collision_layer_mask.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/collision_layer_sidebar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/confirm_dialog.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/dialog_base.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/drag_tracker.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/draw_utils.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/fileinput.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/label.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/layer_type_dialog.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/mode_indicator.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/node_editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/node_selector.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/notification.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/particle_config_dialog.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/property_editor.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/region_selector.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/resize_map_dialog.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/scrollbar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/sidebar_container.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/splitter.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/status_bar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/tileset_type_dialog.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/toast.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/tool_manager.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/toolbar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/toolbar_layout.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/tooltip.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/ui/tree_widget.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/src/widgets/widget_base.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_alias_composer.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_alias_format.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_alias_palette.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_animation_library_grid_offset.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_autotile_group_delete.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_autotile_group_scroll_tmp.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_autotile_ownership.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_autotile_rules.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_autotile_subcases.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_autotile_templates.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_button.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_character_collision_toast.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_character_collision_view.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_collision_layer_mask.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_collision_layer_sidebar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_collision_tree.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_context_dispatch.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_dice_brush.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_drag_tracker.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_editor_pan_mode.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_filemanager_ui.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_fill_tool.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_frame_picker_fit.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_gid_collision.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_history_nodes.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_image_layers.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_image_placements_ux.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_key_conflicts.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_layer_selector_ops.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_layers_autotile.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_line_tool.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_map_resize_model.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_marker_palette.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_minimap.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_natural_sort.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_node_hotkeys.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_node_panels.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_object_animation.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_object_properties_context.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_particle_controls.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_particle_models.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_particle_nodes.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_particle_presets.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_particle_sim.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_pick_tool.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_project_paths.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_rect_fill.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_render_scale.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_replace_variant.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sandbox_mode.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_scrollbar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_serialization_regression.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_settings_migration.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_animation_editor_grid.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_animation_export_tanim.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_animation_toolbar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_color.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_commands.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_drop.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_free_mode.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_grid_align.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_models.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_stack.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_sprite_editor_toolbar.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_theme.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tile_anim.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tile_grid_align.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tile_grid_selection.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tile_selector_pick.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tilemap_save.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tileset_batch_import.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tileset_collision_flip.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tileset_collision_seam.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tileset_hierarchy.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tileset_integrity.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tileset_neighbor_trace.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_toast.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tool_manager.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_tool_shortcuts.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_toolbar_layout.py +0 -0
- {tilemap_editor-5.3.0 → tilemap_editor-5.4.0}/tests/test_toolbar_tools.py +0 -0
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
<!-- towncrier release notes start -->
|
|
4
|
+
# tilemap_editor 5.4.0 (2026-12-02)
|
|
5
|
+
|
|
6
|
+
## Features
|
|
7
|
+
|
|
8
|
+
- Sprite Animation Editor: Shift-drag a spritesheet rectangle to author one multi-cell frame. Span crops persist in `.anim.json`, preview at their native size, and letterbox in the timeline.
|
|
9
|
+
- Map editor: object animation preview honors `frame_regions` and `frame_span`, matching runtime rendering.
|
|
10
|
+
- Sprite Animation Editor: `.tanim` export refuses frames with a span larger than 1×1 instead of silently dropping it; author those as `.anim.json`.
|
|
11
|
+
- Level templates: New Level offers Blank, Current setup, and saved setups; Save Current as Template snapshots tilesets, autotile/automap rules, and the full layer stack without placed content. Undo/redo clears when the document changes.
|
|
12
|
+
- Image viewer: optional variant-ID overlay and toggle for tilesets and spritesheets.
|
|
13
|
+
- Sprite editor: per-document tabs with independent state, an inline quick-open file navigator, and UI overflow fixes.
|
|
14
|
+
- Character hitbox: standalone detection hitbox editor over animation clips, with a shape canvas and transactional load/save validation.
|
|
15
|
+
|
|
4
16
|
# tilemap_editor 5.3.0 (2026-09-22)
|
|
5
17
|
|
|
6
18
|
## Features
|
|
@@ -112,6 +112,7 @@ def _load_project_config() -> tuple[Path, Path, dict]:
|
|
|
112
112
|
"themes_list": list(BUILTIN_THEMES),
|
|
113
113
|
"nodes_path": "nodes",
|
|
114
114
|
"aliases_path": "aliases",
|
|
115
|
+
"templates_path": "templates",
|
|
115
116
|
"alias_scopes": {},
|
|
116
117
|
"collision_paths": {"tileset": "collision", "character": "character_collision"},
|
|
117
118
|
}
|
|
@@ -755,6 +756,63 @@ class Editor:
|
|
|
755
756
|
allowed_exts=[".json", ".tmx"],
|
|
756
757
|
)
|
|
757
758
|
|
|
759
|
+
@property
|
|
760
|
+
def templates_dir(self) -> Path:
|
|
761
|
+
rel = self.config.get("templates_path", "templates")
|
|
762
|
+
return self.data_root / rel
|
|
763
|
+
|
|
764
|
+
def list_templates(self) -> list[Path]:
|
|
765
|
+
"""Saved setup templates, newest edit first, oldest natively stable.
|
|
766
|
+
|
|
767
|
+
Corrupt files are skipped here (validated again with a real error
|
|
768
|
+
message when a template is actually used), so one broken file
|
|
769
|
+
cannot make the picker look empty.
|
|
770
|
+
"""
|
|
771
|
+
templates_dir = self.templates_dir
|
|
772
|
+
if not templates_dir.is_dir():
|
|
773
|
+
return []
|
|
774
|
+
paths = [
|
|
775
|
+
p
|
|
776
|
+
for p in templates_dir.glob("*.json")
|
|
777
|
+
if not p.name.startswith(".")
|
|
778
|
+
]
|
|
779
|
+
try:
|
|
780
|
+
paths.sort(key=lambda p: p.stat().st_mtime, reverse=True)
|
|
781
|
+
except OSError:
|
|
782
|
+
paths.sort(key=lambda p: p.name.lower())
|
|
783
|
+
return paths
|
|
784
|
+
|
|
785
|
+
def open_save_template_dialog(self):
|
|
786
|
+
templates_dir = self.templates_dir
|
|
787
|
+
try:
|
|
788
|
+
templates_dir.mkdir(parents=True, exist_ok=True)
|
|
789
|
+
except OSError as e:
|
|
790
|
+
error_handler.capture(e, context="ensure_templates_dir")
|
|
791
|
+
self.notifications.error(
|
|
792
|
+
"Template save failed", f"Cannot create {templates_dir.name}/: {e}"
|
|
793
|
+
)
|
|
794
|
+
return
|
|
795
|
+
default_name = "new_level.json"
|
|
796
|
+
if self.tilemap.active_project_path:
|
|
797
|
+
default_name = f"{self.tilemap.active_project_path.stem}.json"
|
|
798
|
+
self.open_file_manager(
|
|
799
|
+
initial_dir=templates_dir,
|
|
800
|
+
allowed_exts=[".json"],
|
|
801
|
+
mode="save",
|
|
802
|
+
default_name=default_name,
|
|
803
|
+
on_save=self.on_template_save_selected,
|
|
804
|
+
)
|
|
805
|
+
|
|
806
|
+
def on_template_save_selected(self, path: Path):
|
|
807
|
+
try:
|
|
808
|
+
if self.tilemap.save_template(path):
|
|
809
|
+
ms = self.map_setup_widget
|
|
810
|
+
if ms:
|
|
811
|
+
ms.refresh_templates()
|
|
812
|
+
except Exception as e:
|
|
813
|
+
error_handler.capture(e, context="save_template")
|
|
814
|
+
self.notifications.error("Template save failed", str(e))
|
|
815
|
+
|
|
758
816
|
def reload_map(self):
|
|
759
817
|
"""Reload active map from disk."""
|
|
760
818
|
path = self.tilemap.active_project_path
|
|
@@ -927,7 +985,7 @@ class Editor:
|
|
|
927
985
|
|
|
928
986
|
if hasattr(self, "map_setup_widget") and self.map_setup_widget:
|
|
929
987
|
center_x = (width - 400) // 2
|
|
930
|
-
center_y = (height -
|
|
988
|
+
center_y = (height - 460) // 2
|
|
931
989
|
self.map_setup_widget.resize(Rect(center_x, center_y, 400, 400))
|
|
932
990
|
if self.map_properties_dialog:
|
|
933
991
|
self.map_properties_dialog.resize(Rect(center_x, center_y, 400, 260))
|
|
@@ -1032,6 +1090,7 @@ class Editor:
|
|
|
1032
1090
|
if self.map_setup_widget is None:
|
|
1033
1091
|
logger.warning({"msg": "map_setup_widget is not initialized"})
|
|
1034
1092
|
return
|
|
1093
|
+
self.map_setup_widget.refresh_templates()
|
|
1035
1094
|
self.map_setup_widget.visible = True
|
|
1036
1095
|
self.map_setup_widget.focus_first_field()
|
|
1037
1096
|
|
|
@@ -1496,6 +1555,29 @@ class Editor:
|
|
|
1496
1555
|
except Exception as e:
|
|
1497
1556
|
error_handler.capture(e, context="launch_character_collision_editor")
|
|
1498
1557
|
|
|
1558
|
+
def launch_character_hitbox_editor(self, anim_path: Path | None = None):
|
|
1559
|
+
try:
|
|
1560
|
+
args = [
|
|
1561
|
+
"--name",
|
|
1562
|
+
"Character",
|
|
1563
|
+
"--data-root",
|
|
1564
|
+
str(self.data_root),
|
|
1565
|
+
]
|
|
1566
|
+
if anim_path is not None and Path(anim_path).exists():
|
|
1567
|
+
args.append(str(anim_path))
|
|
1568
|
+
|
|
1569
|
+
process = launch_standalone(
|
|
1570
|
+
"plugins.character_hitbox.standalone",
|
|
1571
|
+
args,
|
|
1572
|
+
cwd=self.base_path,
|
|
1573
|
+
text=True,
|
|
1574
|
+
)
|
|
1575
|
+
self.child_processes.append(process)
|
|
1576
|
+
|
|
1577
|
+
print("Launched character hitbox editor")
|
|
1578
|
+
except Exception as e:
|
|
1579
|
+
error_handler.capture(e, context="launch_character_hitbox_editor")
|
|
1580
|
+
|
|
1499
1581
|
def launch_error_console(self):
|
|
1500
1582
|
if self.error_console_process and self.error_console_process.poll() is None:
|
|
1501
1583
|
print("Error console is already running")
|
|
@@ -490,6 +490,23 @@ class Layer:
|
|
|
490
490
|
self.tiles.clear()
|
|
491
491
|
self.objects.clear()
|
|
492
492
|
|
|
493
|
+
def clear_content(self) -> None:
|
|
494
|
+
"""Wipe all placed content while keeping the layer configuration.
|
|
495
|
+
|
|
496
|
+
Unlike :meth:`clear`, this ignores ``locked``: starting a level
|
|
497
|
+
from a setup template must leave it empty even when the source
|
|
498
|
+
map locked the layer, otherwise the "cleared" map silently ships
|
|
499
|
+
stale geometry. Counters reset too, so freshly painted objects
|
|
500
|
+
and image placements get clean IDs instead of importing a high
|
|
501
|
+
counter from the template author's session.
|
|
502
|
+
"""
|
|
503
|
+
self.tiles.clear()
|
|
504
|
+
self.objects.clear()
|
|
505
|
+
self.next_object_id = 1
|
|
506
|
+
if self.layer_type == "image":
|
|
507
|
+
self.image_placements = []
|
|
508
|
+
self.next_placement_id = 1
|
|
509
|
+
|
|
493
510
|
def to_dict(self) -> dict:
|
|
494
511
|
data = {
|
|
495
512
|
"name": self.name,
|
|
@@ -58,6 +58,20 @@ class NodeManager:
|
|
|
58
58
|
self._nodes_dir = None
|
|
59
59
|
self._active_sidecar = None
|
|
60
60
|
|
|
61
|
+
def clear(self) -> None:
|
|
62
|
+
"""Drop all in-memory node state and forget the loaded sidecar.
|
|
63
|
+
|
|
64
|
+
Call whenever the document identity changes (new level, template
|
|
65
|
+
apply): without it the previous map's node layout silently
|
|
66
|
+
re-appears in the fresh level and is written out under the new
|
|
67
|
+
map's sidecar on first save.
|
|
68
|
+
"""
|
|
69
|
+
self.nodes.clear()
|
|
70
|
+
self.groups.clear()
|
|
71
|
+
self.active_node_id = None
|
|
72
|
+
self.active_group_name = None
|
|
73
|
+
self._active_sidecar = None
|
|
74
|
+
|
|
61
75
|
def _sidecar_path_for(self, map_path: Path) -> Path:
|
|
62
76
|
return self.nodes_dir / f"{map_path.stem}.nodes.json"
|
|
63
77
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Character Hitbox (Detection) Editor Plugin.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .editor import CharacterHitboxEditor
|
|
6
|
+
from .models import CharacterHitboxesDraft, ClipHitboxesDraft, HitWindowDraft
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"CharacterHitboxEditor",
|
|
10
|
+
"CharacterHitboxesDraft",
|
|
11
|
+
"ClipHitboxesDraft",
|
|
12
|
+
"HitWindowDraft",
|
|
13
|
+
]
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Animation and Spritesheet loading engine for the Character Hitbox Editor.
|
|
3
|
+
|
|
4
|
+
Handles robust path resolution, grid slicing, variant caching, and frame
|
|
5
|
+
retrieval for animated characters.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import json
|
|
11
|
+
import math
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from typing import Any
|
|
14
|
+
|
|
15
|
+
import pygame
|
|
16
|
+
from pygame import Rect, Surface
|
|
17
|
+
|
|
18
|
+
from plugins.sprite_animation.runtime_load import (
|
|
19
|
+
AnimationLibrary,
|
|
20
|
+
parse_animation_library_file,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class LoadedAnimation:
|
|
25
|
+
"""Holds parsed animation library, loaded spritesheet, and cached frame cels."""
|
|
26
|
+
|
|
27
|
+
def __init__(
|
|
28
|
+
self,
|
|
29
|
+
library: AnimationLibrary,
|
|
30
|
+
spritesheet: Surface,
|
|
31
|
+
json_path: Path,
|
|
32
|
+
spritesheet_path: Path,
|
|
33
|
+
):
|
|
34
|
+
self.library = library
|
|
35
|
+
self.spritesheet = spritesheet
|
|
36
|
+
self.json_path = json_path
|
|
37
|
+
self.spritesheet_path = spritesheet_path
|
|
38
|
+
|
|
39
|
+
self.tile_w = int(library.tile_size[0])
|
|
40
|
+
self.tile_h = int(library.tile_size[1])
|
|
41
|
+
self.grid_offset_x = (
|
|
42
|
+
int(getattr(library, "grid_offset", [0, 0])[0])
|
|
43
|
+
if hasattr(library, "grid_offset")
|
|
44
|
+
else 0
|
|
45
|
+
)
|
|
46
|
+
self.grid_offset_y = (
|
|
47
|
+
int(getattr(library, "grid_offset", [0, 0])[1])
|
|
48
|
+
if hasattr(library, "grid_offset")
|
|
49
|
+
else 0
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
if (
|
|
53
|
+
self.tile_w <= 0
|
|
54
|
+
or self.tile_h <= 0
|
|
55
|
+
or min(self.grid_offset_x, self.grid_offset_y) < 0
|
|
56
|
+
):
|
|
57
|
+
raise ValueError("Tile sizes must be positive and grid offsets nonnegative")
|
|
58
|
+
self._cel_cache: dict[int, Surface] = {}
|
|
59
|
+
|
|
60
|
+
def get_variant_surface(self, variant_id: int) -> Surface | None:
|
|
61
|
+
"""Get or extract a single frame variant cel from the spritesheet."""
|
|
62
|
+
if variant_id < 0:
|
|
63
|
+
return None
|
|
64
|
+
if variant_id in self._cel_cache:
|
|
65
|
+
return self._cel_cache[variant_id]
|
|
66
|
+
|
|
67
|
+
tw, th = self.tile_w, self.tile_h
|
|
68
|
+
if tw <= 0 or th <= 0 or self.spritesheet is None:
|
|
69
|
+
return None
|
|
70
|
+
|
|
71
|
+
avail_w = self.spritesheet.get_width() - self.grid_offset_x
|
|
72
|
+
avail_h = self.spritesheet.get_height() - self.grid_offset_y
|
|
73
|
+
if avail_w < tw or avail_h < th:
|
|
74
|
+
return None
|
|
75
|
+
|
|
76
|
+
cols = max(1, avail_w // tw)
|
|
77
|
+
col = variant_id % cols
|
|
78
|
+
row = variant_id // cols
|
|
79
|
+
|
|
80
|
+
src = Rect(
|
|
81
|
+
self.grid_offset_x + col * tw,
|
|
82
|
+
self.grid_offset_y + row * th,
|
|
83
|
+
tw,
|
|
84
|
+
th,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
if not self.spritesheet.get_rect().contains(src):
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
cel = self.spritesheet.subsurface(src).copy()
|
|
91
|
+
self._cel_cache[variant_id] = cel
|
|
92
|
+
return cel
|
|
93
|
+
|
|
94
|
+
def get_clip_names(self) -> list[str]:
|
|
95
|
+
return list(self.library.animations.keys())
|
|
96
|
+
|
|
97
|
+
def get_clip_frames(self, clip_name: str) -> list[Any]:
|
|
98
|
+
clip = self.library.animations.get(clip_name)
|
|
99
|
+
return clip.frames if clip is not None else []
|
|
100
|
+
|
|
101
|
+
def get_frame_surface(self, clip_name: str, frame_index: int) -> Surface | None:
|
|
102
|
+
frames = self.get_clip_frames(clip_name)
|
|
103
|
+
if not frames or frame_index < 0 or frame_index >= len(frames):
|
|
104
|
+
return None
|
|
105
|
+
variant = frames[frame_index].variant_id
|
|
106
|
+
return self.get_variant_surface(variant)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def load_animation_bundle(
|
|
110
|
+
anim_path: Path, data_root: Path | None = None
|
|
111
|
+
) -> LoadedAnimation:
|
|
112
|
+
"""Load an animation library and resolve its spritesheet surface."""
|
|
113
|
+
p = Path(anim_path).resolve()
|
|
114
|
+
if not p.is_file():
|
|
115
|
+
raise FileNotFoundError(f"Animation file not found: {p}")
|
|
116
|
+
|
|
117
|
+
library = parse_animation_library_file(p)
|
|
118
|
+
# The runtime parser currently ignores this field; authoring JSON retains it.
|
|
119
|
+
raw_data = json.loads(p.read_text(encoding="utf-8"))
|
|
120
|
+
offset = raw_data.get("grid_offset", [0, 0])
|
|
121
|
+
if (
|
|
122
|
+
not isinstance(offset, list)
|
|
123
|
+
or len(offset) != 2
|
|
124
|
+
or any(not isinstance(n, int) or isinstance(n, bool) or n < 0 for n in offset)
|
|
125
|
+
):
|
|
126
|
+
raise ValueError("grid_offset must be two nonnegative integers")
|
|
127
|
+
library.grid_offset = tuple(offset)
|
|
128
|
+
for clip in library.animations.values():
|
|
129
|
+
for frame in clip.frames:
|
|
130
|
+
if (
|
|
131
|
+
frame.variant_id < 0
|
|
132
|
+
or not math.isfinite(frame.duration_ms)
|
|
133
|
+
or frame.duration_ms <= 0
|
|
134
|
+
):
|
|
135
|
+
raise ValueError(
|
|
136
|
+
f"Clip {clip.name}: frame IDs must be nonnegative and durations positive"
|
|
137
|
+
)
|
|
138
|
+
sheet_ref = library.spritesheet_path
|
|
139
|
+
if not sheet_ref:
|
|
140
|
+
raise ValueError(f"Animation file {p.name} specifies no spritesheet_path")
|
|
141
|
+
|
|
142
|
+
ref_path = Path(sheet_ref)
|
|
143
|
+
candidates: list[Path] = []
|
|
144
|
+
if ref_path.is_absolute():
|
|
145
|
+
candidates.append(ref_path)
|
|
146
|
+
else:
|
|
147
|
+
candidates.append((p.parent / ref_path).resolve())
|
|
148
|
+
candidates.append((p.parent.parent / ref_path).resolve())
|
|
149
|
+
if data_root is not None:
|
|
150
|
+
candidates.append((data_root / ref_path).resolve())
|
|
151
|
+
for parent in p.parents:
|
|
152
|
+
candidates.append((parent / ref_path).resolve())
|
|
153
|
+
|
|
154
|
+
resolved_sheet_path: Path | None = None
|
|
155
|
+
for cand in candidates:
|
|
156
|
+
if cand.is_file():
|
|
157
|
+
resolved_sheet_path = cand
|
|
158
|
+
break
|
|
159
|
+
|
|
160
|
+
if resolved_sheet_path is None:
|
|
161
|
+
raise FileNotFoundError(
|
|
162
|
+
f"Spritesheet not found for animation {p.name}: {sheet_ref!r} (checked {len(candidates)} paths)"
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
if not pygame.get_init():
|
|
166
|
+
pygame.init()
|
|
167
|
+
|
|
168
|
+
raw = pygame.image.load(str(resolved_sheet_path))
|
|
169
|
+
if pygame.display.get_surface() is not None:
|
|
170
|
+
try:
|
|
171
|
+
surface = (
|
|
172
|
+
raw.convert_alpha()
|
|
173
|
+
if raw.get_flags() & pygame.SRCALPHA
|
|
174
|
+
else raw.convert()
|
|
175
|
+
)
|
|
176
|
+
except pygame.error:
|
|
177
|
+
surface = raw
|
|
178
|
+
else:
|
|
179
|
+
surface = raw
|
|
180
|
+
|
|
181
|
+
loaded = LoadedAnimation(
|
|
182
|
+
library=library,
|
|
183
|
+
spritesheet=surface,
|
|
184
|
+
json_path=p,
|
|
185
|
+
spritesheet_path=resolved_sheet_path,
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
for name in loaded.get_clip_names():
|
|
189
|
+
for frame in loaded.get_clip_frames(name):
|
|
190
|
+
if loaded.get_variant_surface(frame.variant_id) is None:
|
|
191
|
+
raise ValueError(
|
|
192
|
+
f"Clip {name}: frame variant {frame.variant_id} is outside the spritesheet"
|
|
193
|
+
)
|
|
194
|
+
return loaded
|