Issue? When renaming Enums as part of a Class, it doesn't update in Tiles.
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
Maybe this is not a bug, but rather a limitation?
To Reproduce
- We have an enum for Tiles within a Class (e.g. "SFX_Footstep_Grass.mp3" as value in Enum "SoundEffects").
- Apply a class with enum / values from Enum to some Tiles. Overwrite default value of Enum in TSX, e.g. "SFX_Footstep_Grass_SpecialOne.mp3".
- We rename the Enum from "SoundEffects" to "BetterSoundEffects".
- Issue: The Enum name doesn't get updated in TSX.
Specifications:
- OS: Win 10
- Tiled Version: 1.10.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the rename scenario in a Tiled project using a class enum and an overridden value in a TSX file. Start by tracing how class and enum names are serialized to TSX and how renames are propagated. Done means renaming the enum updates its references in affected TSX files without changing the overridden value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100