From 7b6bfe99758787c9347df25feb64998bfcc7228c Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sat, 25 Jul 2026 11:27:14 -0500 Subject: [PATCH] Include raidpet frames in /pftest test mode The unit-frame test toggle (showall) only previews frames that exist and are positioned. Raidpet frames are created when raidpet.visible == "1", but LayoutPets' collapse mode only positions pets whose raidpet unit actually exists, so solo/in test mode they stayed hidden. Add a showall branch to LayoutPets that mirror-lays every pet cell and shows it (bypassing collapse and the roster gate), still guarded by the existing showpets check so nothing happens when raidpet is disabled. Call LayoutPets from the /pftest handler so the grid updates immediately on toggle-on and restores to the normal layout on toggle-off. --- api/unitframes.lua | 1 + modules/raid.lua | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 9c9112c6..0e588f5a 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -21,6 +21,7 @@ end -- slash command to toggle unitframe test mode pfUI.api.RegisterSlashCommand("PFTEST", { "/pftest", "/pfuftest" }, function() pfUI.uf.showall = not pfUI.uf.showall + if pfUI.uf.raid and pfUI.uf.raid.LayoutPets then pfUI.uf.raid:LayoutPets() end end, true) -- HoT buff indicators that need name verification because their icons are diff --git a/modules/raid.lua b/modules/raid.lua index e71d8cb0..1be1c174 100644 --- a/modules/raid.lua +++ b/modules/raid.lua @@ -131,6 +131,13 @@ pfUI:RegisterModule("raid", function () pet:UpdateVisibility() end + if pfUI.uf.showall then + for id = 1, maxraid do + if self.pets[id] then place(self.pets[id], id, id) end + end + return + end + if C.unitframes.raidpet.collapse == "1" then -- Pack the pets that exist into the leading cells, no gaps. local k = 0