Page 1 of 1

pfUI pvp flag

Posted: Sun Aug 28, 2022 8:29 pm
by Mosch0512
is there a way to make the flagged for pvp symbol in pfUI moore visible?

Because right now it is displayed in the center of the health bar and sometimes its hard to spot.
Image

Re: pfUI pvp flag

Posted: Mon Aug 29, 2022 11:36 am
by Zirtox
Go to PFUI folder, then go into api folder and open unitframes.lua.
Press ctrl+F and type pvpIcon.
Now you can enter your own preference SetWidth and SetHeight is ofcourse how big you want it to be and with SetPoint you can change the location of it.

Re: pfUI pvp flag

Posted: Mon Aug 29, 2022 12:50 pm
by Mosch0512
Dude thats exactly what i wanted to be able to do thx man <3

this is what i changed

Code: Select all

  f.pvpIcon:SetWidth(16)
  f.pvpIcon:SetHeight(16)
  f.pvpIcon:SetPoint("CENTER", 0, 0)
  f.pvpIcon.texture:SetTexture(pfUI.media["img:pvp"])
  f.pvpIcon.texture:SetAllPoints(f.pvpIcon)
  f.pvpIcon.texture:SetVertexColor(1,1,1,.5)
  f.pvpIcon:Hide()
to

Code: Select all

  f.pvpIcon:SetWidth(25)
  f.pvpIcon:SetHeight(25)
  
  --f.pvpIcon:SetPoint("CENTER", 0, 0)
  if f.config.portrait == "right" then
    f.pvpIcon:SetPoint("CENTER", f, "BOTTOMRIGHT", 0, 0)
  else
    f.pvpIcon:SetPoint("CENTER", f, "BOTTOMLEFT", 0, 0)
  end

  f.pvpIcon.texture:SetTexture(pfUI.media["img:pvp"])
  f.pvpIcon.texture:SetAllPoints(f.pvpIcon)
  f.pvpIcon.texture:SetVertexColor(1,1,1,1)
  f.pvpIcon:Hide()
This is how it looks :D
Image