I am looking for a script that will flip my Focus Frame portrait from the right side to the left. Does anyone know if this is possible to do? I am trying to avoid having to download an entire addon to do this
For retail, I imagine something like:
/run FocusFrame.TargetFrameContainer.Portrait:SetTexCoord(1, 0, 0, 1)
You can remove the /run
and paste the rest into the website addon.bool.no
to create a small addon to download that you don’t have to run every login.
Thank you so much! For some reason I’m not seeing it flip. It might be because I have a script that’s already doing a lot:
local hiddenFrame = CreateFrame(“Frame”)
hiddenFrame:Hide()
FocusFrame.TargetFrameContainer.Portrait:SetTexCoord(1, 0, 0, 1)
–hide Healthbar
FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBar:SetAlpha(0)
–Hide Manabar
FocusFrame.TargetFrameContent.TargetFrameContentMain.ManaBar:SetAlpha(0)
–Artwork
FocusFrame.TargetFrameContainer.compactRing = FocusFrame.TargetFrameContainer:CreateTexture(nil, “ARTWORK”)
FocusFrame.TargetFrameContainer.compactRing:SetAtlas(“Map_Faction_Ring”)
FocusFrame.TargetFrameContainer.compactRing:SetSize(71,70)
FocusFrame.TargetFrameContainer.compactRing:SetPoint(“CENTER”, FocusFrame.TargetFrameContainer.Portrait, “CENTER”, 0, -2)
–Remove Colors
FocusFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()
FocusFrame.TargetFrameContainer.FrameTexture:Hide()
–Remove Flash
FocusFrame.TargetFrameContainer.Flash:SetAlpha(0)
–Remove Level Text
FocusFrame.TargetFrameContent.TargetFrameContentMain.LevelText:SetAlpha(0)
–Remove Name Text
FocusFrame.TargetFrameContent.TargetFrameContentMain.Name:SetAlpha(0)
My goal is to remove everything from the Focus Frame except for the portrait and then flip it/mirror it, but there’s probably something I’m messing up
Works for me. Type /fstack
and place the mouse over the portratit to make sure it’s the FocusFrame you’re looking at. Type /fstack
again to turn the dialog off. And did you /reload
after adding the code?
local hiddenFrame = CreateFrame("Frame")
hiddenFrame:Hide()
FocusFrame.TargetFrameContainer.Portrait:SetTexCoord(1, 0, 0, 1)
-- hide Healthbar
FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBar:SetAlpha(0)
--Hide Manabar
FocusFrame.TargetFrameContent.TargetFrameContentMain.ManaBar:SetAlpha(0)
--Artwork
FocusFrame.TargetFrameContainer.compactRing = FocusFrame.TargetFrameContainer:CreateTexture(nil, "ARTWORK")
FocusFrame.TargetFrameContainer.compactRing:SetAtlas("Map_Faction_Ring")
FocusFrame.TargetFrameContainer.compactRing:SetSize(71,70)
FocusFrame.TargetFrameContainer.compactRing:SetPoint("CENTER", FocusFrame.TargetFrameContainer.Portrait, "CENTER", 0, -2)
--Remove Colors
FocusFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()
FocusFrame.TargetFrameContainer.FrameTexture:Hide()
--Remove Flash
FocusFrame.TargetFrameContainer.Flash:SetAlpha(0)
--Remove Level Text
FocusFrame.TargetFrameContent.TargetFrameContentMain.LevelText:SetAlpha(0)
--Remove Name Text
FocusFrame.TargetFrameContent.TargetFrameContentMain.Name:SetAlpha(0)
Ohhh, I understand now. This is flipping the image in the portrait. Is there a way to completely move the portrait circle from the right side to the left?
Something like what I see here:
https://www.reddit.com/r/WowUI/comments/ylxg6e/help_focus_portrait_flipped_to_the_same_side_as/
Possible yes but lot’s of moving parts to consider.
You would have to essentially either flip the artwork or or use art from the Player/Party frames and then re-anchor all the major parts (portrait, statusbars, buffs, status icons, texts… to new positions. You would then probably have to alter they way some parts work (like how buffs/debuffs are positioned etc. etc.).
It’s essentialy why unit frame replacement addons are a thing.
yeah, that seems more complicated than I thought. Thank you for the help, I appreciate it