Skip to content

feat: The previous attempt to add a tooltip to the category lis...#892

Merged
Cidan merged 3 commits intomainfrom
feat/agent-20260218-005908-000000000
Feb 18, 2026
Merged

feat: The previous attempt to add a tooltip to the category lis...#892
Cidan merged 3 commits intomainfrom
feat/agent-20260218-005908-000000000

Conversation

@Cidan
Copy link
Owner

@Cidan Cidan commented Feb 18, 2026

Automated pull request generated by the Nanomite code tool.

Prompt:
The previous attempt to add a tooltip to the category list in BetterBags (PR #891) didn't work. The user reports no tooltip is appearing. Task: 1. Re-examine config/categorypane.lua and how the category list is implemented. 2. Check if the OnEnter and OnLeave handlers are actually being triggered on the correct frame. 3. Verify if GameTooltip is being used correctly in this context (e.g., is it being obscured, or is the frame not mouse-enabled?). 4. Fix the implementation so the tooltip "Shift-click to move this category to the pinned category section" appears when hovering over a category in the options menu. Ensure you sync to the latest main (or the branch from PR #891) and provide a working fix. Create a new commit and update the PR or create a new one.

Cidan and others added 3 commits February 17, 2026 16:49
When hovering over a category entry in the category options list,
show a GameTooltip with the text:
  "Shift-click to move this category to the pinned category section"

This re-adds the tooltip that was previously removed, ensuring users
know about the shift-click pinning shortcut. The tooltip is shown via
GameTooltip:SetOwner/SetText/Show in OnEnter, and hidden via
GameTooltip:Hide in OnLeave. Header items are excluded (they already
have no OnEnter/OnLeave handlers).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…list tooltip

The tooltip was not displaying correctly because GameTooltip:SetText() has the
signature SetText(text, r, g, b, alpha, textWrap), but the call was passing only
5 arguments with `true` as the 5th argument. This caused `true` to be interpreted
as the alpha value instead of the textWrap flag, meaning textWrap was absent
(defaulted to false). With long tooltip text and no wrapping, the tooltip text
overflowed off-screen and was effectively invisible.

Fix: add the missing alpha=1 argument so textWrap=true is correctly passed as
the 6th argument:
  GameTooltip:SetText(text, 1, 1, 1, 1, true)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Automated commit generated by the Nanomite code tool.

Prompt:
The previous attempt to add a tooltip to the category list in BetterBags (PR #891) didn't work. The user reports no tooltip is appearing. Task: 1. Re-examine `config/categorypane.lua` and how the category list is implemented. 2. Check if the `OnEnter` and `OnLeave` handlers are actually being triggered on the correct frame. 3. Verify if `GameTooltip` is being used correctly in this context (e.g., is it being obscured, or is the frame not mouse-enabled?). 4. Fix the implementation so the toolt...
@Cidan Cidan merged commit 2c64911 into main Feb 18, 2026
1 of 2 checks passed
@Cidan Cidan deleted the feat/agent-20260218-005908-000000000 branch February 18, 2026 01:00
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

Comments