tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Support predefined properties for all data types

Open bjorn opened this issue 7 years ago • 8 comments

Apart from pre-defining properties based on object type, it would be nice to support pre-defining the properties for each data type. So defining which custom properties are valid for maps, tilesets, layers, etc.

Also requested on the forum.

bjorn avatar Dec 10 '16 21:12 bjorn

Adding default properties to objects based on their tile from tileset would be really great. Our team don't use object types extensively, instad we use tile objects, and either assigning a type to them or remembering which properties they should have is not the best. :) It's way easier to just have default property list on object based on it's tile.

Yanrishatum avatar Dec 21 '16 19:12 Yanrishatum

@Yanrishatum I totally agree, but that's different from the functionality in this issue. It is covered by issues #1248 and #436.

bjorn avatar Dec 22 '16 09:12 bjorn

Requested on the forum another time. In addition, there's the suggestion to add a tabular view where these predefined properties are editable in columns.

bjorn avatar Jan 09 '17 20:01 bjorn

Another forum post about a use-case that should be covered by this feature.

bjorn avatar Mar 09 '17 07:03 bjorn

This is now (in upcoming Tiled 1.9) partly possible by specifying the Class of the data type. The remaining task might be to add the ability to assign a default class to each data type on the project level.

bjorn avatar Jun 15 '22 08:06 bjorn

This is now (in upcoming Tiled 1.9) partly possible by specifying the Class of the data type. The remaining task might be to add the ability to assign a default class to each data type on the project level.

Definitely this would improve the experience for our level designers a lot! Then we have less trouble with default values.

UliAbo avatar Aug 09 '22 15:08 UliAbo

The remaining task might be to add the ability to assign a default class to each data type on the project level.

It would be very handy if this extended to more than just automatically assigned classes, but allowed custom defaults for built-in properties too, such as Object Render Order on Object Layers, Opacity and Tint Color on Layers (by layer type!), Image on Image Layers, that sort of thing.

Things like Map orientation and tile size and Tileset tile size could also be predefined that way, and if set, automatically filled in in the New Map/Tileset dialogs instead of using the previously used values.

eishiya avatar Aug 09 '22 15:08 eishiya

I guess also this task would be a nice addon, so it would all make sense together to have also "comments" for the properties? https://github.com/mapeditor/tiled/issues/2133

UliAbo avatar Aug 09 '22 15:08 UliAbo