HMCL-dev / HMCL-dev/HMCL

[Feature] 为实例列表中的游戏文件夹路径添加 Tooltip

Open
#6,572 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

概述 | Summary
  • GameDirectoryListItemSkinTwoLineListItem副标题(即 游戏文件夹路径 )添加 Tooltip
  • 效果类似 AccountListItemSkin 中外置登陆账号条目的副标题。
Image
原因 | Reason
  • 游戏路径往往会被截断,显示为省略号,使用 Tooltip 可以快速查看。
Image
详情 | Description
  • 由于 TwoLineListItemsetMouseTransparent(true),为副标题使用 Tooltip.install(...) 会因为 穿透无效
  • AccountListItemSkin 能够实现类似效果,但其条目自行构造,而不是使用 TwoLineListItem,故不能照抄;
  • 不建议为 GameDirectoryListItemSkinroot 挂载 Tooltip ,这会在几乎整个条目触发 Tooltip
  • 初步测试,貌似使用 setMouseTransparent(false)事件转发skinnable::fire) 不能够触发 RipplerContainer 的水波纹动画。

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 with GameDirectoryListItemSkin and its TwoLineListItem subtitle, then compare how AccountListItemSkin provides a tooltip for its subtitle. Check the interaction between mouse transparency, event forwarding, and RipplerContainer. Done means the full game-folder path appears when hovering only the subtitle, while the list item's ripple animation still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.