BigWigs icon indicating copy to clipboard operation
BigWigs copied to clipboard

Suggestion - Add ability to specify a frame to anchor bars to

Open mrbuds opened this issue 3 years ago • 2 comments

I have been shown this nsfw wa https://wago.io/dihBroT4d for re-anchor BigWigs bars to the frame they want

I though you may be interested to implement a proper way to achieve this

mrbuds avatar Mar 19 '23 02:03 mrbuds

Do you mean the ability to define a parent other than UIParent? For what reason? I don't think the WA you linked to has any screenshots.

funkydude avatar Mar 22 '23 04:03 funkydude

WA code:

-- Author: Reglitch-Turalyon
local region = aura_env.region

local function setBwFramePosition(frame)
    frame:ClearAllPoints();
    frame:SetPoint("LEFT", region);
end

if BigWigsLoader then
    RFANCHOR_WA_BWAddon = {}
    
    BigWigsLoader.RegisterMessage(RFANCHOR_WA_BWAddon, "BigWigs_BarEmphasized", function(event, frame, bar) 
            local anchor = bar:Get("bigwigs:anchor")
            setBwFramePosition(anchor)
    end)    
end

then in Display tab it anchor to a frame that can be selected image

Reason is to have bigwigs bars position relative to their raid frames, or player frame, across all their characters and not have to change bigwigs settings when they move these frames

mrbuds avatar Mar 22 '23 07:03 mrbuds