Skip to content

Commit 8f42814

Browse files
mcagnionclaude
andcommitted
feat(trade): document influence-filter combinations via tooltip
Add a shared tooltip on both Influence fields listing the nine distinct pair semantics (no filter, no influences, exactly 1, at least 1, exactly 2, plus the specific variants). Ordered by the number of required influences so users can scan to the constraint they want. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3f03277 commit 8f42814

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/Classes/TradeQueryGenerator.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,14 +1342,29 @@ Remove: %s will be removed from the search results.]], term, term, term)
13421342
end
13431343
end
13441344

1345+
local influenceTooltipText = table.concat({
1346+
"^7Influence filter (both fields combine):",
1347+
"Ignore / Ignore: no filter",
1348+
"None / None: no influences",
1349+
"Any / None: exactly 1 influence",
1350+
"<specific> / None: exactly 1, that specific",
1351+
"Any / Ignore: at least 1 influence",
1352+
"<specific> / Ignore: at least 1, that specific",
1353+
"Any / Any: exactly 2 influences",
1354+
"<specific> / Any: exactly 2, including that specific",
1355+
"<specific A> / <specific B>: exactly 2, both specifics",
1356+
}, "\n")
1357+
13451358
controls.influence1 = new("DropDownControl", { "TOPLEFT", lastItemAnchor, "BOTTOMLEFT" }, { 0, 5, 100, 18 },
13461359
influenceDropdownNames, refreshInfluenceDependentControls)
13471360
controls.influence1:SetSel(self.lastInfluence1 or INFLUENCE_IGNORE_INDEX)
1361+
controls.influence1.tooltipText = influenceTooltipText
13481362
controls.influence1Label = new("LabelControl", {"RIGHT",controls.influence1,"LEFT"}, {-5, 0, 0, 16}, "^7Influence 1:")
13491363

13501364
controls.influence2 = new("DropDownControl", { "TOPLEFT", controls.influence1, "BOTTOMLEFT" }, { 0, 5, 100, 18 },
13511365
influenceDropdownNames, refreshInfluenceDependentControls)
13521366
controls.influence2:SetSel(self.lastInfluence2 or INFLUENCE_IGNORE_INDEX)
1367+
controls.influence2.tooltipText = influenceTooltipText
13531368
refreshInfluenceDependentControls()
13541369
controls.influence2Label = new("LabelControl", { "RIGHT", controls.influence2, "LEFT" }, { -5, 0, 0, 16 },
13551370
"^7Influence 2:")

0 commit comments

Comments
 (0)