feat: add learner tooltip controls
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user