Test UI: show raid frames outside a raid
While /pt testui is on, every frame group shows whatever the real group is, and Hide While Solo no longer hides the test frames, so raid layouts can be tested solo or in a party. From fey/Puppeteer fix/testui-raid-frames. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019W3rwwTK1hwTEWHqsan2mV
This commit is contained in:
@@ -64,7 +64,9 @@ function PTUnitFrameGroup:New(name, environment, units, petGroup, profile, sortB
|
||||
end
|
||||
|
||||
function PTUnitFrameGroup:EvaluateShown()
|
||||
if self:CanShowInEnvironment(Puppeteer.CurrentlyInRaid and "raid" or "party") and self:ShowCondition() then
|
||||
-- Test mode shows every group (raid groups too) whatever the real group is
|
||||
local environment = Puppeteer.CurrentlyInRaid and "raid" or "party"
|
||||
if (Puppeteer.TestUI or self:CanShowInEnvironment(environment)) and self:ShowCondition() then
|
||||
self:Show()
|
||||
self:UpdateUIPositions()
|
||||
else
|
||||
@@ -77,7 +79,8 @@ function PTUnitFrameGroup:ShowCondition()
|
||||
return false
|
||||
end
|
||||
|
||||
if PTOptions.HideWhileSolo and (GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0) then
|
||||
if not Puppeteer.TestUI and PTOptions.HideWhileSolo
|
||||
and (GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0) then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user