mapeditor/tiled

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Copy and paste to object types editor from tileset props/objects #3676

jestarray posted onGitHub

// objecttypes.json
{
        "name": "Liquid",
        "type": "class",
        "members": [
            {
                "name": "test",
                "type": "string",
                "value": "foo"
            }
        ],
    }

// tileset.tsj props
tiles [{
         "id":2,
         "properties":[
                {
                 "name":"test",
                 "type":"string",
                 "value":"foo"
                }, ]
        }]

So objecttypes.json has a member field that is pretty much compatible with tile.properties and or custom objects but you cant copy and paste to the object types editor in the ui. You also can't copy members from objecttypes class to another objecttypes class. I'm currently copying via text editor for now.


I agree this should be supported. The main difficulty in sharing this code is probably that the actions will need to work on different kinds of data, with the current actions changing one or more Object instances using an undo command, whereas for the Custom Types Editor, the change works without undo command and changes a ClassPropertyType.

posted by bjorn almost 2 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests