mapeditor / mapeditor/tiled

Scripting: Allow MapObjects in Tool previews

Open
#3,383 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

missing feature
Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

Currently, only Tile Layers in scripted tool previews are rendered. This means that any scripted tools that add Objects are unable to show a preview, and the user must work blindly. It would be useful if Object layers added to the tool's preview were also rendered.

In addition, it looks like map.merge() will ignore any Object Layers and only merge Tile Layers. I think Object Layers should be merged too.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how scripted tool previews render Tile Layers and how map.merge() handles layers. Compare both paths for their treatment of Object Layers. Done means Object Layers added to a tool's preview are rendered and Object Layers are included when maps are merged.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.