tilemap-editor 5.2.1__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.2.1 → tilemap_editor-5.4.0}/CHANGELOG.md +28 -0
- tilemap_editor-5.4.0/LICENSE +21 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/MANIFEST.in +1 -0
- {tilemap_editor-5.2.1/src/tilemap_editor.egg-info → tilemap_editor-5.4.0}/PKG-INFO +4 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/README.md +1 -0
- tilemap_editor-5.4.0/assets/icons/free.svg +5 -0
- tilemap_editor-5.4.0/assets/icons/region.svg +5 -0
- tilemap_editor-5.4.0/assets/icons/sparkle.svg +1 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/pyproject.toml +13 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/editor.py +275 -17
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/layers.py +198 -24
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/node_manager.py +32 -1
- tilemap_editor-5.4.0/src/plugins/character_collision/collision_thumbs.py +142 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/character_collision/editor.py +154 -58
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/character_collision/shape_editor.py +166 -137
- 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.2.1 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/editor.py +3 -2
- tilemap_editor-5.4.0/src/plugins/particle_editor/__init__.py +49 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/__main__.py +5 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/controls.py +469 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/editor.py +1276 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/essentials.particles.json +840 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/models.py +479 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/presets.py +794 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/preview.py +168 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/sim.py +259 -0
- tilemap_editor-5.4.0/src/plugins/particle_editor/standalone.py +173 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/editor.py +397 -127
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/frame_picker.py +81 -6
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/models.py +43 -5
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/preview.py +12 -8
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/runtime_load.py +34 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/standalone.py +10 -5
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/timeline.py +26 -11
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/validation.py +15 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/clipboard.py +35 -23
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/commands.py +137 -50
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/document.py +190 -88
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/editor.py +834 -132
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/overlays.py +18 -11
- tilemap_editor-5.4.0/src/plugins/sprite_editor/tab_strip.py +173 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/tools.py +1180 -58
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/viewport.py +118 -45
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tile_alias/editor.py +3 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/collision_painter.py +220 -107
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/editor.py +112 -12
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/models.py +9 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/standalone_error_console.py +6 -6
- tilemap_editor-5.4.0/src/standalone_image_viewer.py +608 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap.py +465 -81
- tilemap_editor-5.4.0/src/tilemap_editor/assets/icons/free.svg +5 -0
- tilemap_editor-5.4.0/src/tilemap_editor/assets/icons/region.svg +5 -0
- tilemap_editor-5.4.0/src/tilemap_editor/assets/icons/sparkle.svg +1 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/cli.py +22 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/settings.py +1 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0/src/tilemap_editor.egg-info}/PKG-INFO +4 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/SOURCES.txt +63 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/entry_points.txt +1 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/ttypes/tilemap.py +15 -8
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/history.py +11 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/icon_manager.py +18 -0
- tilemap_editor-5.4.0/src/utils/shortcuts.py +11 -0
- tilemap_editor-5.4.0/src/utils/tile_anim.py +389 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/autotiler.py +276 -76
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/filemanager.py +20 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/input.py +16 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/layer_selector.py +15 -28
- tilemap_editor-5.4.0/src/widgets/mapsetup.py +467 -0
- tilemap_editor-5.4.0/src/widgets/particle_presets.py +26 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/particle_system.py +135 -27
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/tile_grid.py +1158 -365
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/tile_selector.py +111 -11
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/button.py +6 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/checkbox.py +4 -6
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/collision_layer_sidebar.py +9 -6
- tilemap_editor-5.4.0/src/widgets/ui/context_menu.py +225 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/menubar.py +15 -1
- tilemap_editor-5.4.0/src/widgets/ui/mini_file_navigator.py +753 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/mode_indicator.py +23 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/node_editor.py +121 -74
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/property_editor.py +179 -131
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/region_selector.py +2 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/scrollbar.py +3 -1
- tilemap_editor-5.4.0/src/widgets/ui/shape_canvas.py +1387 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/theme.py +21 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/tileset_type_dialog.py +52 -44
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/toolbar.py +7 -2
- tilemap_editor-5.4.0/src/widgets/ui/toolbar_layout.py +212 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/tree_widget.py +66 -11
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_alias_composer.py +0 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_alias_format.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_alias_palette.py +0 -3
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_animation_library_grid_offset.py +0 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_autotile_group_delete.py +0 -1
- tilemap_editor-5.4.0/tests/test_autotile_group_scroll_tmp.py +68 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_autotile_ownership.py +0 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_autotile_rules.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_autotile_subcases.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_autotile_templates.py +0 -1
- tilemap_editor-5.4.0/tests/test_button.py +106 -0
- tilemap_editor-5.4.0/tests/test_character_collision_toast.py +95 -0
- tilemap_editor-5.4.0/tests/test_character_collision_view.py +240 -0
- tilemap_editor-5.4.0/tests/test_character_hitbox.py +401 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_collision_layer_mask.py +0 -3
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_collision_layer_sidebar.py +0 -3
- tilemap_editor-5.4.0/tests/test_collision_tree.py +83 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_context_dispatch.py +46 -13
- tilemap_editor-5.4.0/tests/test_dice_brush.py +459 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_edit_menu.py +6 -7
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_editor_pan_mode.py +0 -4
- tilemap_editor-5.4.0/tests/test_filemanager_ui.py +198 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_fill_tool.py +0 -1
- tilemap_editor-5.4.0/tests/test_frame_picker_fit.py +52 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_history_nodes.py +0 -1
- tilemap_editor-5.4.0/tests/test_hitbox_workflow.py +767 -0
- tilemap_editor-5.4.0/tests/test_image_layers.py +214 -0
- tilemap_editor-5.4.0/tests/test_image_placements_ux.py +234 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_key_conflicts.py +11 -3
- tilemap_editor-5.4.0/tests/test_layer_selector_keys.py +294 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_layer_selector_ops.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_layers_autotile.py +79 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_line_tool.py +11 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_map_resize_model.py +0 -2
- tilemap_editor-5.4.0/tests/test_map_templates.py +612 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_minimap.py +0 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_natural_sort.py +0 -3
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_node_hotkeys.py +0 -8
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_node_panels.py +6 -10
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_object_animation.py +0 -3
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_object_properties_context.py +0 -3
- tilemap_editor-5.4.0/tests/test_particle_controls.py +39 -0
- tilemap_editor-5.4.0/tests/test_particle_models.py +209 -0
- tilemap_editor-5.4.0/tests/test_particle_nodes.py +305 -0
- tilemap_editor-5.4.0/tests/test_particle_presets.py +118 -0
- tilemap_editor-5.4.0/tests/test_particle_sim.py +449 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_pick_tool.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_project_paths.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_rect_fill.py +9 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_render_scale.py +0 -2
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_replace_variant.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_sandbox_mode.py +0 -2
- tilemap_editor-5.4.0/tests/test_scrollbar.py +118 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_serialization_regression.py +0 -1
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_settings_migration.py +0 -2
- tilemap_editor-5.4.0/tests/test_shape_canvas.py +193 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_sprite_animation_editor_grid.py +0 -4
- tilemap_editor-5.4.0/tests/test_sprite_animation_export_tanim.py +242 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_sprite_animation_gestures.py +23 -3
- tilemap_editor-5.4.0/tests/test_sprite_animation_spans.py +67 -0
- tilemap_editor-5.4.0/tests/test_sprite_animation_toolbar.py +125 -0
- tilemap_editor-5.4.0/tests/test_sprite_editor_color.py +207 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_sprite_editor_commands.py +101 -3
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_sprite_editor_drop.py +7 -10
- tilemap_editor-5.4.0/tests/test_sprite_editor_free_mode.py +721 -0
- tilemap_editor-5.4.0/tests/test_sprite_editor_grid_align.py +199 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_sprite_editor_models.py +0 -3
- tilemap_editor-5.4.0/tests/test_sprite_editor_stack.py +278 -0
- tilemap_editor-5.4.0/tests/test_sprite_editor_toolbar.py +144 -0
- tilemap_editor-5.4.0/tests/test_standalone_image_viewer.py +180 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_theme.py +0 -3
- tilemap_editor-5.4.0/tests/test_tile_anim.py +267 -0
- tilemap_editor-5.4.0/tests/test_tile_grid_align.py +303 -0
- tilemap_editor-5.4.0/tests/test_tile_grid_object_animation.py +109 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_tile_grid_selection.py +231 -270
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_tile_selector_pick.py +0 -4
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_tilemap_save.py +0 -2
- tilemap_editor-5.4.0/tests/test_tileset_batch_import.py +233 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_tileset_collision_flip.py +68 -4
- tilemap_editor-5.4.0/tests/test_tileset_collision_seam.py +140 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_tileset_hierarchy.py +0 -3
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_tileset_integrity.py +0 -4
- tilemap_editor-5.4.0/tests/test_tileset_neighbor_trace.py +193 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_timeline_invalidate_cache.py +2 -6
- tilemap_editor-5.4.0/tests/test_toast.py +63 -0
- tilemap_editor-5.4.0/tests/test_tool_manager.py +54 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_tool_shortcuts.py +0 -8
- tilemap_editor-5.4.0/tests/test_toolbar_layout.py +171 -0
- tilemap_editor-5.4.0/tests/test_toolbar_tools.py +144 -0
- tilemap_editor-5.4.0/tests/test_unicode.py +47 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_view_menu.py +18 -8
- tilemap_editor-5.2.1/LICENSE +0 -24
- tilemap_editor-5.2.1/src/standalone_image_viewer.py +0 -410
- tilemap_editor-5.2.1/src/widgets/mapsetup.py +0 -181
- tilemap_editor-5.2.1/src/widgets/particle_presets.py +0 -2420
- tilemap_editor-5.2.1/src/widgets/ui/context_menu.py +0 -160
- tilemap_editor-5.2.1/tests/test_dice_brush.py +0 -250
- tilemap_editor-5.2.1/tests/test_filemanager_ui.py +0 -303
- tilemap_editor-5.2.1/tests/test_image_layers.py +0 -92
- tilemap_editor-5.2.1/tests/test_layer_selector_keys.py +0 -145
- tilemap_editor-5.2.1/tests/test_sprite_editor_interaction.py +0 -829
- tilemap_editor-5.2.1/tests/test_sprite_editor_stack.py +0 -168
- tilemap_editor-5.2.1/tests/test_toolbar_tools.py +0 -394
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-Bold.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-BoldItalic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-Italic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/jetbrain-fonts/JetBrainsMono-Regular.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-Bold.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-BoldItalic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-Italic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/fonts/noto/NotoSans-Regular.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/arrow-down.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/check.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/checked.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/close.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/duplicate.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/error.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/file.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/filedead.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/fill.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/fit.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/folder.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/grid.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/image.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/info.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/load.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/loop.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/onion.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/pan.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/pause.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/pencil.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/pick.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/play.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/plus.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/radio.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/reset.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/save.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/skip-back.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/skip-forward.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/stop.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/tilemap.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/tileset.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/unchecked.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/warning.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/zoomin.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/assets/icons/zoomout.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/setup.cfg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/aliases.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/constants.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/event_map.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/main.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/nodes.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/character_collision/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/character_collision/models.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/character_collision/protocols.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/character_collision/standalone.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/models.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/protocols.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/object_tileset_collision/standalone.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/__main__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/clipboard_util.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_animation/protocols.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/camera.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/dialogs.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/region_export.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/selection.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/sprite_editor/standalone.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tile_alias/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tile_alias/standalone.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/protocols.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/plugins/tileset_collision/standalone.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/run.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/standalone_automap.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/standalone_filemanager.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/standalone_marker_palette.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/__main__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-Bold.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-BoldItalic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-Italic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/jetbrain-fonts/JetBrainsMono-Regular.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-Bold.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-BoldItalic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-Italic.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/fonts/noto/NotoSans-Regular.ttf +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/ToolMove.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/arrow-down.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/check.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/checked.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/close.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/dice.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/duplicate.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/error.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/file.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/filedead.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/fill.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/fit.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/fold_down_arrow.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/folder.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/gear.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/grid.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/image.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/info.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/line.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/load.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/loop.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/miniobj.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/onion.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pan.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pause.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pencil.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/pick.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/play.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/plus.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/radio.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/rect.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/redo.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/reset.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/save.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/skip-back.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/skip-forward.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/stop.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/text.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/tilemap.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/tileset.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/unchecked.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/undo.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/unfold_right_arrow.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/warning.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/zoomin.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/assets/icons/zoomout.svg +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor/main.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/dependency_links.txt +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/requires.txt +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/tilemap_editor.egg-info/top_level.txt +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/ttypes/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/context_dispatch.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/editor_preference.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/error_handler.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/font_manager.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/icons_cache.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/log_capture.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/natural_sort.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/project_paths.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/property_suggestions.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/serialization.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/standalone.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/tileset_hierarchy.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/tileset_ops.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/utils/validation.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/__init__.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/automap_models.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/autotile_template.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/map_properties.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/minimap.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/regex_automap_designer.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/alias_palette.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/collision_layer_mask.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/confirm_dialog.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/dialog_base.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/drag_tracker.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/draw_utils.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/fileinput.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/label.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/layer_type_dialog.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/node_selector.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/notification.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/particle_config_dialog.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/resize_map_dialog.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/sidebar_container.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/splitter.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/status_bar.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/toast.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/tool_manager.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/ui/tooltip.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/src/widgets/widget_base.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_drag_tracker.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_gid_collision.py +0 -0
- {tilemap_editor-5.2.1 → tilemap_editor-5.4.0}/tests/test_marker_palette.py +0 -0
|
@@ -1,6 +1,34 @@
|
|
|
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
|
+
|
|
16
|
+
# tilemap_editor 5.3.0 (2026-09-22)
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- Tile flip end to end: flip the brush with Shift+H/V, mirror placed selections in place, and keep flips through render, move preview, save, and load.
|
|
21
|
+
- Recent maps and reload: reopen recent maps on startup, reload with F5, and track unsaved changes.
|
|
22
|
+
- Sprite tools: crop, flip, and probe tiles; collision image paths stay relative so maps stay portable.
|
|
23
|
+
- Image copies: duplicate, remove, and cycle copies, with grid snap and seam-exact placement ghosts.
|
|
24
|
+
- Particle editor: standalone editor with viewer integration.
|
|
25
|
+
- Toolbar and paint upgrades: toolbar layout engine, free pixel mode, and batch tileset import.
|
|
26
|
+
|
|
27
|
+
## Bug Fixes
|
|
28
|
+
|
|
29
|
+
- Fixed grid calculation and zoom step behavior.
|
|
30
|
+
- Fixed transient keys leaking into particle exports and preset sidecars.
|
|
31
|
+
|
|
4
32
|
# tilemap_editor 5.2.1 (2026-09-11)
|
|
5
33
|
|
|
6
34
|
## Bug Fixes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 tilemap editor contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -2,6 +2,7 @@ include README.md
|
|
|
2
2
|
include CHANGELOG.md
|
|
3
3
|
include LICENSE
|
|
4
4
|
recursive-include src *.py
|
|
5
|
+
recursive-include src/plugins/particle_editor *.particles.json
|
|
5
6
|
recursive-include assets/icons *.svg
|
|
6
7
|
recursive-include assets/fonts *.ttf *.otf
|
|
7
8
|
global-exclude *.py[cod] __pycache__/* *.spec *.spec.bak *.sh
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tilemap-editor
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.4.0
|
|
4
4
|
Summary: Pygame tilemap editor with collision, animation, sprite & particle tools
|
|
5
5
|
Author: tilemap editor contributors
|
|
6
|
-
License:
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
7
8
|
Classifier: Programming Language :: Python :: 3
|
|
8
9
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
10
|
Classifier: Topic :: Games/Entertainment
|
|
@@ -17,6 +18,7 @@ Requires-Dist: towncrier; extra == "dev"
|
|
|
17
18
|
Dynamic: license-file
|
|
18
19
|
|
|
19
20
|
# tilemap-editor
|
|
21
|
+
<img width="2832" height="1746" alt="image" src="https://github.com/user-attachments/assets/7da34b28-da45-4993-a09f-bdbd7085352c" />
|
|
20
22
|
|
|
21
23
|
`tilemap-editor` is a pygame-based map editor focused on fast iteration for 2D games.
|
|
22
24
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<!-- Adapted from the Godot engine RemoteTransform2D editor icon
|
|
2
|
+
(MIT license, https://github.com/godotengine/godot/blob/master/LICENSE.txt):
|
|
3
|
+
kept as the "free transform" glyph for Free pixel mode. Plain
|
|
4
|
+
light fill so IconManager can MULT-tint it to the theme. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#e0e0e0" d="M8 1a8 8 0 0 0-6.928 4 1 1 0 0 0 1.733 1 6 6 0 0 1 10.39 0 1 1 0 0 0 1.733-1A8 8 0 0 0 8 1zm0 4a4 4 0 0 0-3.863 2.965 1 1 0 0 0 1.931.517 2 2 0 0 1 3.864 0 1 1 0 0 0 1.931-.517A4 4 0 0 0 8 5zm0 4a1 1 0 0 0-1 1v1H4a4 4 0 0 0 8 0H9v-1a1 1 0 0 0-1-1z"/></svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<!-- Adapted from the Godot engine RegionEdit editor icon (MIT license,
|
|
2
|
+
https://github.com/godotengine/godot/blob/master/LICENSE.txt):
|
|
3
|
+
a sheet grid with one region picked out. Recolored to a plain
|
|
4
|
+
light fill so IconManager can MULT-tint it to the theme. -->
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><g fill="#e0e0e0"><path d="M6 6h6v6H6z"/><path fill-opacity=".325" d="M1 1v4h4V1zm5 0v4h6V1zm7 0v4h2V1zM1 6v6h4V6zm12 0v6h2V6zM1 13v2h4v-2zm5 0v2h6v-2zm7 0v2h2v-2z"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#e0e0e0" d="M8 1c.6 3.2 2.2 4.8 5.4 5.4-3.2.6-4.8 2.2-5.4 5.4-.6-3.2-2.2-4.8-5.4-5.4C5.8 5.8 7.4 4.2 8 1z"/><circle fill="#e0e0e0" cx="12.6" cy="12.6" r="1.6"/></svg>
|
|
@@ -4,16 +4,17 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tilemap-editor"
|
|
7
|
-
version = "5.
|
|
7
|
+
version = "5.4.0"
|
|
8
8
|
description = "Pygame tilemap editor with collision, animation, sprite & particle tools"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
11
|
-
license = { text = "
|
|
11
|
+
license = { text = "MIT" }
|
|
12
12
|
authors = [{ name = "tilemap editor contributors" }]
|
|
13
13
|
dependencies = [
|
|
14
14
|
"pygame-ce>=2.5",
|
|
15
15
|
]
|
|
16
16
|
classifiers = [
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
17
18
|
"Programming Language :: Python :: 3",
|
|
18
19
|
"Programming Language :: Python :: 3 :: Only",
|
|
19
20
|
"Topic :: Games/Entertainment",
|
|
@@ -23,6 +24,7 @@ classifiers = [
|
|
|
23
24
|
[project.scripts]
|
|
24
25
|
tilemap-editor = "tilemap_editor.cli:main"
|
|
25
26
|
tilemap-anim-editor = "plugins.sprite_animation.standalone:main"
|
|
27
|
+
tilemap-particle-editor = "plugins.particle_editor.standalone:main"
|
|
26
28
|
|
|
27
29
|
[project.optional-dependencies]
|
|
28
30
|
dev = ["towncrier"]
|
|
@@ -96,6 +98,15 @@ namespaces = true
|
|
|
96
98
|
"fonts/noto/*.ttf",
|
|
97
99
|
"fonts/jetbrain-fonts/*.ttf"
|
|
98
100
|
]
|
|
101
|
+
"plugins.particle_editor" = [
|
|
102
|
+
"*.particles.json",
|
|
103
|
+
]
|
|
99
104
|
|
|
100
105
|
[tool.setuptools.exclude-package-data]
|
|
101
106
|
"*" = ["*.spec", "*.sh"]
|
|
107
|
+
|
|
108
|
+
[tool.pytest.ini_options]
|
|
109
|
+
markers = [
|
|
110
|
+
"unit: fast functional unit and integration tests",
|
|
111
|
+
"e2e: whole-flow UI interaction tests (fake editors, synthetic events)",
|
|
112
|
+
]
|
|
@@ -19,7 +19,7 @@ if sys.platform == "darwin":
|
|
|
19
19
|
os.environ.setdefault("SDL_VIDEO_MAC_SCREEN_SCALE", "1")
|
|
20
20
|
|
|
21
21
|
from constants import BASE_PATH
|
|
22
|
-
from node_manager import NodeManager
|
|
22
|
+
from node_manager import TRANSIENT_PROPERTY_KEYS, NodeManager
|
|
23
23
|
from tilemap import Tilemap
|
|
24
24
|
from tilemap_editor.settings import BUILTIN_THEMES
|
|
25
25
|
from utils import error_context, error_handler
|
|
@@ -42,7 +42,6 @@ from widgets.ui.menubar import MenuBar
|
|
|
42
42
|
from widgets.ui.node_editor import NodeEditor
|
|
43
43
|
from widgets.ui.node_selector import NodeSelector
|
|
44
44
|
from widgets.ui.notification import NotificationManager
|
|
45
|
-
from widgets.ui.particle_config_dialog import ParticleConfigDialog
|
|
46
45
|
from widgets.ui.property_editor import PropertyEditor
|
|
47
46
|
from widgets.ui.resize_map_dialog import ResizeMapDialog
|
|
48
47
|
from widgets.ui.sidebar_container import SidebarContainer, ToolbarAction
|
|
@@ -113,6 +112,7 @@ def _load_project_config() -> tuple[Path, Path, dict]:
|
|
|
113
112
|
"themes_list": list(BUILTIN_THEMES),
|
|
114
113
|
"nodes_path": "nodes",
|
|
115
114
|
"aliases_path": "aliases",
|
|
115
|
+
"templates_path": "templates",
|
|
116
116
|
"alias_scopes": {},
|
|
117
117
|
"collision_paths": {"tileset": "collision", "character": "character_collision"},
|
|
118
118
|
}
|
|
@@ -172,6 +172,14 @@ def _display_load_path(path: Path) -> Path:
|
|
|
172
172
|
return path
|
|
173
173
|
|
|
174
174
|
|
|
175
|
+
def build_particle_editor_args(node, data_root, export=None) -> list[str]:
|
|
176
|
+
"""Build argv for standalone particle editor."""
|
|
177
|
+
args = ["--data-root", str(data_root)]
|
|
178
|
+
if node is not None and export is not None:
|
|
179
|
+
args += ["--import-node", str(export), "--export-node", str(export)]
|
|
180
|
+
return args
|
|
181
|
+
|
|
182
|
+
|
|
175
183
|
class Editor:
|
|
176
184
|
def __init__(
|
|
177
185
|
self,
|
|
@@ -214,6 +222,7 @@ class Editor:
|
|
|
214
222
|
self.autotile_mode = False
|
|
215
223
|
self.node_editing_mode = False
|
|
216
224
|
self.show_nodes = False
|
|
225
|
+
self.show_particles = True
|
|
217
226
|
self.dice_brush = False
|
|
218
227
|
self.last_picked: tuple[int, int] | None = None
|
|
219
228
|
self.tool_manager = ToolManager()
|
|
@@ -251,7 +260,7 @@ class Editor:
|
|
|
251
260
|
self.context_dispatch = PropertyContextDispatcher()
|
|
252
261
|
self.error_console_process: subprocess.Popen | None = None
|
|
253
262
|
self.property_editor: PropertyEditor | None = None
|
|
254
|
-
self.
|
|
263
|
+
self._particle_exports: dict[str, Path] = {}
|
|
255
264
|
|
|
256
265
|
self.child_processes: list[subprocess.Popen] = []
|
|
257
266
|
self.file_manager_process: subprocess.Popen | None = None
|
|
@@ -325,6 +334,7 @@ class Editor:
|
|
|
325
334
|
self.node_manager = NodeManager(self)
|
|
326
335
|
self.node_selector = NodeSelector(self, 0, 65, 260, 240)
|
|
327
336
|
self.node_editor = NodeEditor(self, 0, 310, 260, 230)
|
|
337
|
+
self.maybe_load_recent()
|
|
328
338
|
|
|
329
339
|
def open_file_manager(
|
|
330
340
|
self,
|
|
@@ -466,7 +476,8 @@ class Editor:
|
|
|
466
476
|
return
|
|
467
477
|
if self.tilemap.active_project_path:
|
|
468
478
|
try:
|
|
469
|
-
self.tilemap.save_map()
|
|
479
|
+
if self.tilemap.save_map():
|
|
480
|
+
self._remember_recent(self.tilemap.active_project_path)
|
|
470
481
|
except Exception as e:
|
|
471
482
|
error_handler.capture(e, context="save_map")
|
|
472
483
|
else:
|
|
@@ -492,7 +503,8 @@ class Editor:
|
|
|
492
503
|
target = self._project_data_root / filename
|
|
493
504
|
self._sandbox_save_as(target)
|
|
494
505
|
return
|
|
495
|
-
self.tilemap.save_map(filename)
|
|
506
|
+
if self.tilemap.save_map(filename):
|
|
507
|
+
self._remember_recent(self.tilemap.active_project_path)
|
|
496
508
|
except Exception as e:
|
|
497
509
|
error_handler.capture(e, context="save_map_as")
|
|
498
510
|
|
|
@@ -501,7 +513,8 @@ class Editor:
|
|
|
501
513
|
if self.is_sandbox:
|
|
502
514
|
self._sandbox_save_as(path)
|
|
503
515
|
return
|
|
504
|
-
self.tilemap.save_map(path)
|
|
516
|
+
if self.tilemap.save_map(path):
|
|
517
|
+
self._remember_recent(self.tilemap.active_project_path)
|
|
505
518
|
except Exception as e:
|
|
506
519
|
error_handler.capture(e, context="save_map_selected")
|
|
507
520
|
|
|
@@ -743,6 +756,130 @@ class Editor:
|
|
|
743
756
|
allowed_exts=[".json", ".tmx"],
|
|
744
757
|
)
|
|
745
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
|
+
|
|
816
|
+
def reload_map(self):
|
|
817
|
+
"""Reload active map from disk."""
|
|
818
|
+
path = self.tilemap.active_project_path
|
|
819
|
+
if path is None:
|
|
820
|
+
self.notifications.notify("No map loaded", duration=2.0)
|
|
821
|
+
return
|
|
822
|
+
if self.loading_state["active"]:
|
|
823
|
+
return
|
|
824
|
+
if self.tilemap.has_unsaved_changes():
|
|
825
|
+
name = path.name
|
|
826
|
+
self.confirm_dialog.show(
|
|
827
|
+
title="Reload Map?",
|
|
828
|
+
message=f"Unsaved changes in {name} will be lost. Reload from disk?",
|
|
829
|
+
on_confirm=lambda: self.start_async_load_map(path),
|
|
830
|
+
on_cancel=lambda: None,
|
|
831
|
+
)
|
|
832
|
+
return
|
|
833
|
+
self.start_async_load_map(path)
|
|
834
|
+
|
|
835
|
+
def _recents_path(self) -> Path:
|
|
836
|
+
if self.data_root:
|
|
837
|
+
return self.data_root / "recents.json"
|
|
838
|
+
return BASE_PATH / "data" / "recents.json"
|
|
839
|
+
|
|
840
|
+
def _read_recents(self) -> list[Path]:
|
|
841
|
+
try:
|
|
842
|
+
rp = self._recents_path()
|
|
843
|
+
if not rp.exists():
|
|
844
|
+
return []
|
|
845
|
+
data = json.loads(rp.read_text(encoding="utf-8"))
|
|
846
|
+
if not isinstance(data, list):
|
|
847
|
+
return []
|
|
848
|
+
return [Path(p) for p in data if Path(p).exists()]
|
|
849
|
+
except Exception:
|
|
850
|
+
return []
|
|
851
|
+
|
|
852
|
+
def _write_recents(self, paths: list[Path]) -> None:
|
|
853
|
+
try:
|
|
854
|
+
rp = self._recents_path()
|
|
855
|
+
if not rp.parent.exists():
|
|
856
|
+
rp.parent.mkdir(parents=True, exist_ok=True)
|
|
857
|
+
rp.write_text(
|
|
858
|
+
json.dumps([str(p) for p in paths[:20]], indent=2),
|
|
859
|
+
encoding="utf-8",
|
|
860
|
+
)
|
|
861
|
+
except Exception as e:
|
|
862
|
+
error_handler.capture(e, context="editor_save_recents")
|
|
863
|
+
|
|
864
|
+
def _remember_recent(self, path: Path | None) -> None:
|
|
865
|
+
if path is None:
|
|
866
|
+
return
|
|
867
|
+
path = Path(path)
|
|
868
|
+
self._write_recents([path] + [p for p in self._read_recents() if p != path])
|
|
869
|
+
|
|
870
|
+
def maybe_load_recent(self) -> None:
|
|
871
|
+
"""Load the most recent map on startup; silent fallback to setup."""
|
|
872
|
+
recents = self._read_recents()
|
|
873
|
+
if not recents:
|
|
874
|
+
return
|
|
875
|
+
head, rest = recents[0], recents[1:]
|
|
876
|
+
try:
|
|
877
|
+
self.tilemap.read_map_payload(head)
|
|
878
|
+
except Exception:
|
|
879
|
+
self._write_recents(rest)
|
|
880
|
+
return
|
|
881
|
+
self.start_async_load_map(head)
|
|
882
|
+
|
|
746
883
|
def on_map_file_selected(self, path: Path):
|
|
747
884
|
self.start_async_load_map(path)
|
|
748
885
|
|
|
@@ -781,6 +918,9 @@ class Editor:
|
|
|
781
918
|
try:
|
|
782
919
|
self.handle_resize(self.width, self.height)
|
|
783
920
|
self.tilemap.apply_map_payload(path, payload_or_error)
|
|
921
|
+
self._remember_recent(path)
|
|
922
|
+
if self.map_setup_widget:
|
|
923
|
+
self.map_setup_widget.visible = False
|
|
784
924
|
if getattr(self, "is_sandbox", False):
|
|
785
925
|
self.notifications.notify(f"SANDBOX map loaded: {path.name}", duration=4.0)
|
|
786
926
|
except Exception as e:
|
|
@@ -845,7 +985,7 @@ class Editor:
|
|
|
845
985
|
|
|
846
986
|
if hasattr(self, "map_setup_widget") and self.map_setup_widget:
|
|
847
987
|
center_x = (width - 400) // 2
|
|
848
|
-
center_y = (height -
|
|
988
|
+
center_y = (height - 460) // 2
|
|
849
989
|
self.map_setup_widget.resize(Rect(center_x, center_y, 400, 400))
|
|
850
990
|
if self.map_properties_dialog:
|
|
851
991
|
self.map_properties_dialog.resize(Rect(center_x, center_y, 400, 260))
|
|
@@ -869,11 +1009,90 @@ class Editor:
|
|
|
869
1009
|
if self.show_nodes:
|
|
870
1010
|
self.node_editing_mode = False
|
|
871
1011
|
|
|
1012
|
+
def toggle_show_particles(self):
|
|
1013
|
+
"""Toggle particle emitter previews on the tile grid canvas."""
|
|
1014
|
+
self.show_particles = not self.show_particles
|
|
1015
|
+
status = "Shown" if self.show_particles else "Hidden"
|
|
1016
|
+
self.notifications.notify(f"Particle Previews {status}")
|
|
1017
|
+
|
|
1018
|
+
def _particle_export_path(self, node) -> Path:
|
|
1019
|
+
directory = self.data_root / "particles" / ".exchange"
|
|
1020
|
+
directory.mkdir(parents=True, exist_ok=True)
|
|
1021
|
+
return directory / f"{node.node_id}.node.json"
|
|
1022
|
+
|
|
1023
|
+
def launch_particle_editor(self, node=None):
|
|
1024
|
+
"""Open standalone particle editor."""
|
|
1025
|
+
try:
|
|
1026
|
+
args = build_particle_editor_args(node, self.data_root)
|
|
1027
|
+
if node is not None:
|
|
1028
|
+
export = self._particle_export_path(node)
|
|
1029
|
+
try:
|
|
1030
|
+
export.write_text(
|
|
1031
|
+
json.dumps(
|
|
1032
|
+
{
|
|
1033
|
+
"name": node.name,
|
|
1034
|
+
"config": {
|
|
1035
|
+
k: v
|
|
1036
|
+
for k, v in dict(node.properties).items()
|
|
1037
|
+
if k not in TRANSIENT_PROPERTY_KEYS
|
|
1038
|
+
},
|
|
1039
|
+
},
|
|
1040
|
+
indent=2,
|
|
1041
|
+
),
|
|
1042
|
+
encoding="utf-8",
|
|
1043
|
+
)
|
|
1044
|
+
except OSError as e:
|
|
1045
|
+
self.notifications.notify(f"Particle export failed: {e}")
|
|
1046
|
+
return
|
|
1047
|
+
self._particle_exports[node.node_id] = export
|
|
1048
|
+
args = build_particle_editor_args(node, self.data_root, export)
|
|
1049
|
+
process = launch_standalone(
|
|
1050
|
+
"plugins.particle_editor.standalone",
|
|
1051
|
+
args,
|
|
1052
|
+
cwd=self.base_path,
|
|
1053
|
+
text=True,
|
|
1054
|
+
)
|
|
1055
|
+
self.child_processes.append(process)
|
|
1056
|
+
print("Launched particle editor")
|
|
1057
|
+
except Exception as e:
|
|
1058
|
+
error_handler.capture(e, context="launch_particle_editor")
|
|
1059
|
+
|
|
1060
|
+
def reload_particle_from_export(self, node) -> bool:
|
|
1061
|
+
"""Apply saved export to node. Returns True if applied."""
|
|
1062
|
+
export = self._particle_exports.get(node.node_id)
|
|
1063
|
+
if export is None or not export.is_file():
|
|
1064
|
+
self.notifications.notify(
|
|
1065
|
+
"No particle export yet - open in Particle Editor and Save first"
|
|
1066
|
+
)
|
|
1067
|
+
return False
|
|
1068
|
+
try:
|
|
1069
|
+
from plugins.particle_editor.models import normalize_config
|
|
1070
|
+
|
|
1071
|
+
payload = json.loads(export.read_text(encoding="utf-8"))
|
|
1072
|
+
config, warnings = normalize_config(payload.get("config"))
|
|
1073
|
+
node.properties.clear()
|
|
1074
|
+
node.properties.update(config)
|
|
1075
|
+
for warning in warnings:
|
|
1076
|
+
print(f"particle reload warning: {warning}")
|
|
1077
|
+
if self.tile_grid_widget:
|
|
1078
|
+
self.tile_grid_widget.reset_particle_preview(node.node_id, config)
|
|
1079
|
+
self.suggestion_registry.refresh(self)
|
|
1080
|
+
if hasattr(self.tilemap, "capture_history"):
|
|
1081
|
+
self.tilemap.capture_history("Reload Particle Export")
|
|
1082
|
+
self.notifications.notify(f"Reloaded particles for {node.name}")
|
|
1083
|
+
return True
|
|
1084
|
+
except (OSError, ValueError) as e:
|
|
1085
|
+
error_handler.capture(e, context="reload_particle_from_export")
|
|
1086
|
+
self.notifications.notify(f"Particle reload failed: {e}")
|
|
1087
|
+
return False
|
|
1088
|
+
|
|
872
1089
|
def open_map_setup(self):
|
|
873
1090
|
if self.map_setup_widget is None:
|
|
874
1091
|
logger.warning({"msg": "map_setup_widget is not initialized"})
|
|
875
1092
|
return
|
|
1093
|
+
self.map_setup_widget.refresh_templates()
|
|
876
1094
|
self.map_setup_widget.visible = True
|
|
1095
|
+
self.map_setup_widget.focus_first_field()
|
|
877
1096
|
|
|
878
1097
|
def open_map_properties(self):
|
|
879
1098
|
if self.map_properties_dialog is None:
|
|
@@ -1044,10 +1263,26 @@ class Editor:
|
|
|
1044
1263
|
try:
|
|
1045
1264
|
from plugins.sprite_animation.models import AnimationLibrary
|
|
1046
1265
|
from utils.project_paths import resolve_project_path
|
|
1266
|
+
from utils.tile_anim import TileAnimFile, detect_anim_schema_file
|
|
1267
|
+
|
|
1268
|
+
schema = detect_anim_schema_file(path)
|
|
1269
|
+
if schema == "tile":
|
|
1270
|
+
tanim = TileAnimFile.load(path)
|
|
1271
|
+
spritesheet_path = tanim.tileset or None
|
|
1272
|
+
tile_size = None
|
|
1273
|
+
elif schema == "sprite":
|
|
1274
|
+
lib = AnimationLibrary.load(path)
|
|
1275
|
+
spritesheet_path = lib.spritesheet_path
|
|
1276
|
+
tile_size = lib.tile_size
|
|
1277
|
+
else:
|
|
1278
|
+
self.notifications.notify(f"Unrecognized animation file: {path.name}", duration=2.0)
|
|
1279
|
+
return
|
|
1047
1280
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1281
|
+
if tile_size is None and hasattr(self.tilemap, "tile_size") and self.tilemap.tile_size:
|
|
1282
|
+
tw, th = self.tilemap.tile_size
|
|
1283
|
+
tile_size = (tw, th)
|
|
1284
|
+
if tile_size is None:
|
|
1285
|
+
tile_size = (32, 32)
|
|
1051
1286
|
|
|
1052
1287
|
if spritesheet_path:
|
|
1053
1288
|
resolved = resolve_project_path(
|
|
@@ -1320,6 +1555,29 @@ class Editor:
|
|
|
1320
1555
|
except Exception as e:
|
|
1321
1556
|
error_handler.capture(e, context="launch_character_collision_editor")
|
|
1322
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
|
+
|
|
1323
1581
|
def launch_error_console(self):
|
|
1324
1582
|
if self.error_console_process and self.error_console_process.poll() is None:
|
|
1325
1583
|
print("Error console is already running")
|
|
@@ -1350,8 +1608,11 @@ class Editor:
|
|
|
1350
1608
|
def autotile_active(self):
|
|
1351
1609
|
active_layer = self.tilemap.layer_manager.get_active_layer()
|
|
1352
1610
|
if active_layer and hasattr(self, "autotiler"):
|
|
1611
|
+
from layers import build_variant_props_lookup
|
|
1612
|
+
|
|
1353
1613
|
rules = getattr(self.autotiler, "rules", [])
|
|
1354
|
-
|
|
1614
|
+
tileset_map = getattr(self.tileset_widget, "tileset_map", {})
|
|
1615
|
+
active_layer.autotile_layer(rules, build_variant_props_lookup(tileset_map))
|
|
1355
1616
|
print(f"Autotiling layer: {active_layer.name}")
|
|
1356
1617
|
|
|
1357
1618
|
def flood_fill_active(self):
|
|
@@ -1452,10 +1713,6 @@ class Editor:
|
|
|
1452
1713
|
if self.property_editor.handle_event(event):
|
|
1453
1714
|
continue
|
|
1454
1715
|
|
|
1455
|
-
if self.particle_config_dialog and self.particle_config_dialog.active:
|
|
1456
|
-
if self.particle_config_dialog.handle_event(event):
|
|
1457
|
-
continue
|
|
1458
|
-
|
|
1459
1716
|
if self.autotiler.visible:
|
|
1460
1717
|
if self.autotiler.handle_event(event):
|
|
1461
1718
|
continue
|
|
@@ -1506,6 +1763,9 @@ class Editor:
|
|
|
1506
1763
|
if event.key == pygame.K_o and (ctrl_held or meta_held):
|
|
1507
1764
|
self.perform_load()
|
|
1508
1765
|
continue
|
|
1766
|
+
if event.key == pygame.K_F5:
|
|
1767
|
+
self.reload_map()
|
|
1768
|
+
continue
|
|
1509
1769
|
if event.key == pygame.K_SPACE and (ctrl_held or meta_held):
|
|
1510
1770
|
if self.tool_manager.is_active(ToolKind.PAN):
|
|
1511
1771
|
restored = self.tool_manager.restore_previous()
|
|
@@ -1700,8 +1960,6 @@ class Editor:
|
|
|
1700
1960
|
|
|
1701
1961
|
if self.property_editor and self.property_editor.active:
|
|
1702
1962
|
self.property_editor.draw(self.screen)
|
|
1703
|
-
if self.particle_config_dialog and self.particle_config_dialog.active:
|
|
1704
|
-
self.particle_config_dialog.draw(self.screen)
|
|
1705
1963
|
self.menubar.draw(self.screen)
|
|
1706
1964
|
self.tooltip.draw(self.screen)
|
|
1707
1965
|
|