tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Ability to lock individual objects

Open iam-jim opened this issue 9 years ago • 5 comments

Locking individual objects can also come handy. Though setting visible to false works, but then, if the object is invisible no way to select or move it, without searching and selecting it from object layers.

iam-jim avatar Nov 20 '14 20:11 iam-jim

Hmm, I think this would get too fiddly. Once #734 is implemented one could just move objects you want to have locked to a locked layer, right?

bjorn avatar Nov 20 '14 20:11 bjorn

Yah, that would be just fine. Then There should be some shortcut (keys) to move objects to different layers and easily.

iam-jim avatar Nov 20 '14 21:11 iam-jim

Is there still interest in this feature for Tiled? Now that scripting is becoming more integrated, the ability for scripts to create objects, then lock them so the user doesn't mess with them, could be quite useful. It sets up a situation where those objects are sorta "owned" by the script.

Of course the user could unlock them, but that's explicitly saying "I know better than the script". Right now, if a script wants to set up e.g. 4 objects adjacent to each other, and then keep them together as it moves them around, it's still possible for the user to totally mess that up by accidentally selecting an object.

Phlosioneer avatar Dec 30 '19 04:12 Phlosioneer

@Phlosioneer I guess the script could put such objects in a locked layer, but in general I don't see any harm in supporting locking also at the object level. This should probably change the structure of the Objects view in a similar way as was done for the Layers view when locking was introduced (needing additional columns because we can no longer rely on the checkbox state of the single column). That would be a welcome change for consistency as well anyway.

bjorn avatar Dec 30 '19 11:12 bjorn

+1 for locking single Objects in ObjectLayers! :) Wow the original suggestion for that is more than 7 years old :D

UliAbo avatar Apr 10 '22 13:04 UliAbo