mapeditor/tiled

Do you want to work on this issue?

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

Autofocus Tile Object Tiles in Palette #3287

fmoo posted onGitHub

Currently, when right-clicking a tile on a tile layer, the palette view will automatically jump to the appropriate tab and tile that matches the selected tile. This is good.

However, there is currently no way to do this for tile objects on an object layer. Right-clicking simply focuses the tile object, updating the Properties tab and the Objects tab, and opening a context menu, while the Tilesets tab remains unchanged.

This is a feature request to add a way to quickly jump to the corresponding tile in the Tileset tab when interacting with a tile object on a tile layer in some way. This might be:

  • Focusing on a tile object (e.g., left click with S or O tool or right click with any tool)
  • Right click on tile object (any tool) to open Context Menu > Jump to Tile in Palette
  • Double-click on the tile object (with Select Objects or Edit Polygon tool)

I don't have a super strong preference one way or another. The first would probably be most consistent/expected wrt tileset layer behaviors.


Since there's no way to Undo tile picking, I think it's important to avoid accidental tile picking. We don't know if the user's recently picked some tiles that are important to their next actions. So, I am most in favour of the Tile Object context menu option, for the following reasons:

  • The context menu can be accessed without changing tools.
  • The user's intent is clear, we're definitely not going to replace a useful tile selection.
  • Replace Tile is also done with the context menu, and is a likely reason to need a Tile Object's tile selected
    • I often left-click select an object before I right-click it, to make sure I've got the right one. If I just chose a tile to Replace it with, I'll lose that tile upon selection, which would be annoying.
    • It makes sense to me that you would right-click an object to "Select Tile in Tileset", and then right-click another object (possibly after left-clicking to select it first) to replace its tile with the newly selected tile, rather than a mix of different types of actions.

I do like the potential convenience of just clicking on an object to get the tile, but I think that without a way to know whether the user actually wants that, the risk of messing up their tile selection and causing inconvenience is too high.

I don't think double-click is a good idea since multiple clicks on an Object already does something - it toggles the handles between resize and rotate. It would be weird to accidentally select a different tile when you're just trying to rotate an object.

Edit: Maybe modifier+right click could work?

posted by eishiya almost 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests