mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.27k stars 1.76k forks source link

Adding support for list property types #4002

Open bjorn opened 4 months ago

bjorn commented 4 months ago

Implementation so far:

image

image

ToDo:

Resolves #1493

bjorn commented 4 months ago

Urgh, turned out the "Ability to add items to a list" is only mostly working. When just pressing the "+ Add" button instead of using the menu, it is not possible to add items of the same custom enum or class type. This is because the values are at that point converted to their "display value", which means a class is just a map and an enum is just a number, and only the CustomPropertiesHelper knows the associated type.