Skip to content

Tree and item skill tooltips#9892

Open
vaisest wants to merge 41 commits into
PathOfBuildingCommunity:devfrom
vaisest:tooltips
Open

Tree and item skill tooltips#9892
vaisest wants to merge 41 commits into
PathOfBuildingCommunity:devfrom
vaisest:tooltips

Conversation

@vaisest

@vaisest vaisest commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

Ports tree tooltips from PathOfBuildingCommunity/PathOfBuilding-PoE2#1969, although the tooltip code is mostly as it was in pob1.

Also ports item tooltips from PathOfBuildingCommunity/PathOfBuilding-PoE2#2208. I'm not sure this was done correctly. In pob2 I found a skill gem for each item skill, but in pob1 I couldn't, which means the skill tooltips don't have tags etc. These are shown when shift is held.

"Socketed gems are supported by #" mods are also included in the tooltips.

Flavour text was also added. Credit for the code goes to Blitz54 in PoB2

Quality ranges and level ranges were NOT added as it seems like the tree and items always grant the same level, and there's afaik no way to add quality to them.

Steps taken to verify a working solution:

  • Many tooltips hovered over
  • No automated tests

I think the core functionality is working properly, but there are little things like tooltip positioning and gaps which are frankly sometimes complete nonsense and a massive pain in the ass. These might still be wrong. For example the height received from GetSize just doesn't match up and produces different-sized gaps for different tooltips.

I'm also not sure if there could be some style changes similar to what @Blitz54 did in PathOfBuildingCommunity/PathOfBuilding-PoE2#1992.

Note that this is based on the typing PR.

Link to a build that showcases this PR:

Item database

Before screenshot:

After screenshot:

image image image image image image image

vaisest added 30 commits June 14, 2026 19:24
- adding a type hint for new() and newClass()
- adding simple ---@Class x: y type hints for base class variables
@vaisest vaisest changed the title Add global API type hints Tree and item skill tooltips Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant