Ship Routes: routes rest faded, hover brings one to full opacity
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
216e6f90b8
commit
40add57ba9
2 changed files with 16 additions and 6 deletions
|
|
@ -230,6 +230,11 @@ check(toTheramore and toTheramore.Label.point[1] == "LEFT", "west edge label rea
|
|||
check(find("exit", "Zephras Isle") == nil, "no edge marker toward Zephras Isle")
|
||||
check(find("exit", "Grom'gol") == nil, "no edge marker for a route that stays on the map")
|
||||
check(visibleLines() > 50, "route lines drawn on EK, got " .. visibleLines())
|
||||
local resting = true
|
||||
for _, l in ipairs(allLines) do
|
||||
if l.shown and l.layer == "ARTWORK" and l.color[4] >= 0.5 then resting = false end
|
||||
end
|
||||
check(resting, "routes rest faded")
|
||||
check(provider.overlay.level == 100, "overlay frame level set")
|
||||
for _, l in ipairs(allLines) do
|
||||
if l.shown then
|
||||
|
|
@ -258,7 +263,12 @@ for _, l in ipairs(allLines) do
|
|||
if l.color[4] < 0.5 then dim = dim + 1 else bright = bright + 1 end
|
||||
end
|
||||
end
|
||||
check(dim > 0 and bright > 0, "other routes dim while one is highlighted")
|
||||
check(dim > 0 and bright > 0, "hovered route stands out from the faded rest")
|
||||
local full = false
|
||||
for _, l in ipairs(allLines) do
|
||||
if l.shown and l.layer == "ARTWORK" and l.color[4] == 1 then full = true end
|
||||
end
|
||||
check(full, "hovered route is fully opaque")
|
||||
menethil:OnMouseLeave()
|
||||
check(provider.highlight == nil, "leaving clears the highlight")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue