mapeditor / mapeditor/tiled

Add tooltips to tile selection view

Open
#729 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

Hello,

It should be interesting to add a tooltip in the tooltip selection view, se we can see the "tile Id", even local one should be fine.

Something like adding this to data method in tilesetmodel.cpp:
...
} else if (role == Qt::ToolTipRole ) {
if (Tile *tile = tileAt(index))
return QString("Id: %1").arg(tile->id());
}
....

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in tilesetmodel.cpp and inspect the data method and its handling of Qt::ToolTipRole. Use the existing tileAt(index) and tile id information described in the issue. Done means hovering a tile in the tile selection view displays its local tile ID.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, game-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.