feat: add learner tooltip controls

This commit is contained in:
Xurkon
2026-06-06 13:59:31 -05:00
parent 2cb129ae4b
commit 1f3de0e02e
8 changed files with 147 additions and 4 deletions
@@ -44,6 +44,24 @@ describe("QuestieLearner data source mode", function()
assert.is_true(has(tip, "mode ~= \"static\" and mode ~= \"none\""))
end)
it("exposes learner tooltip controls and tooltip resize support", function()
local general = read("Modules/Options/GeneralTab/QuestieOptionsGeneral.lua")
local defaults = read("Modules/Options/QuestieOptionsDefaults.lua")
local tip = read("Modules/Tooltips/Tooltip.lua")
local handler = read("Modules/Tooltips/TooltipHandler.lua")
local learner = read("Modules/QuestieLearner.lua")
assert.is_true(has(defaults, "learnerTooltips = true"))
assert.is_true(has(defaults, "learnerTooltipShowSpawn = true"))
assert.is_true(has(defaults, "learnerTooltipShowConfidence = true"))
assert.is_true(has(defaults, "learnerTooltipAutoResize = true"))
assert.is_true(has(general, "Learner Tooltips"))
assert.is_true(has(general, "Enable learner tooltips"))
assert.is_true(has(tip, "function QuestieTooltips:ResizeTooltip(tooltip)"))
assert.is_true(has(handler, "QuestieTooltips:ResizeTooltip(GameTooltip)"))
assert.is_true(has(handler, "QuestieTooltips:ResizeTooltip(self)"))
assert.is_true(has(learner, "learnerTooltipShowSpawn"))
end)
it("allows learner mode to draw pins from a single learned spawn when needed", function()
local priv = read("Modules/Quest/QuestieQuestPrivates.lua")
assert.is_true(has(priv, "local staticHasSpawns = spawns and next(spawns) ~= nil"))