pfUI pvp flag

Post Reply
User avatar
Mosch0512
Posts: 6

pfUI pvp flag

Post by Mosch0512 » Sun Aug 28, 2022 8:29 pm

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

User avatar
Zirtox
Posts: 6

Re: pfUI pvp flag

Post by Zirtox » Mon Aug 29, 2022 11:36 am

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.
Trckster - Tinkerspell - Truckster - Trackster - Trickster - Trcknaked

User avatar
Mosch0512
Posts: 6

Re: pfUI pvp flag

Post by Mosch0512 » Mon Aug 29, 2022 12:50 pm

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

Post Reply