tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Add "Show object names -> For current layer" option

Open k80w opened this issue 7 years ago • 8 comments

Currently, under View -> Show Object Names, there are Never, For Selected Objects, and For All Objects options. It would be very useful to have a For Current Layer option that displays the names of all objects on the layer that is being edited.

k80w avatar May 20 '18 09:05 k80w

Maybe this is the solution to your problem:

http://doc.qt.io/archives/qt-4.8/designer-widget-mode.html

NickSiena avatar May 29 '18 17:05 NickSiena

@TheMacNerd Why do you think so? It seems to have no relation at all to the suggestion that was made.

@dnaf I think your suggestion makes a lot of sense. For the upcoming Tiled 1.2, this option should be called "For Selected Layers" since you can select multiple layers at the same time.

bjorn avatar May 29 '18 19:05 bjorn

One open question for this feature is, should it imply that labels are also shown for selected objects? Currently it displays either nothing, only selection or everything. In Tiled 1.2, I have added a separate toggle for showing the name of the hovered object.

I'd rather avoid adding another separate toggle, so I hope we can decide on a reasonable choice for selected objects (which may not be on the selected layer), in case For Selected Layers is chosen.

bjorn avatar May 31 '18 11:05 bjorn

I would love to see this feature as well :)

I'd rather avoid adding another separate toggle

IMO it shouldn't be a separate toggle, but rather another one option in the list, like so:

Show object names ->

  • Never
  • For selected objects
  • For selected layers
  • For all objects

achpile avatar Mar 12 '25 08:03 achpile

@achpile It would be great if you could help answer this question in that case:

I hope we can decide on a reasonable choice for selected objects (which may not be on the selected layer), in case For Selected Layers is chosen.

:-)

bjorn avatar Mar 12 '25 11:03 bjorn

Oh, sorry. I probably misunderstood that message :)

achpile avatar Mar 12 '25 11:03 achpile

Oh, sorry. I probably misunderstood that message :)

You can just share your expectation. Since including it in the list of options like you suggested means there is no explicit "For Select Objects and Objects in Select Layers" option, which raises the question whether that's what "For Selected Layers" really means, or whether it should just do what it says and ignore selected objects.

I guess the more intuitive thing to do is to stick with the wording, where the "For Selected Layers" will not care about which objects are selected.

bjorn avatar Mar 12 '25 13:03 bjorn

I guess the more intuitive thing to do is to stick with the wording, where the "For Selected Layers" will not care about which objects are selected.

Yep. That's what I meant :)

There's an option to show the names For All Objects which does not care about what is selected and what is not. So For selected layers should have the same behavior, just filter by selected layers IMO.

PS: I'm not very fluent in English, sorry if i misunderstood something again :D

achpile avatar Mar 12 '25 14:03 achpile