PvP Icon
I'm fairly new to lua and ouf but have worked out how to customize and get what i want out of an oUF_coree layout i been playing with.
At the moment im using Code:
-- PVP Icon My question is how do i alter this so it shows a small red square at the bottom left hand corner of my player frame? |
Code:
if unit == "player" then |
Code:
self.PvP = self.Health:CreateTexture(nil, "OVERLAY") |
Hi Guys many many thanks for the reply's.
I tried the suggestions but what I'm after is something like the indicators in grid, a clean simple red square. I even tried: Code:
if (unit == "player" or unit == "target") then What am i doing wrong? The aim is to have a small green square top right of the frame showing when in resting state and to the left of that a red square to indicate pvp. What i have at moment is a square like pvp icon, not very clean. I look forward to any help given and thanks in advance |
What you do:
Code:
-- This goes in the main scope of your layout: |
Wow many thanks Haste just what i was after, may i ask how it works so i can learn from it as i would like to do the same for the rested icon.
Quote:
|
Quote:
PvP: Show(FFA/Horde/Alliance)/Hide Resting: Show/Hide This means that we just have to set a texture with a static color on the Resting icon to make it work properly. The extra code on the PvP element is just to handle updating of it. Due to this all you have to do is: Code:
local resting = self.Health:CreateTexture(nil, "OVERLAY") |
While we are talking about the pvp icon... I tried to use a different texture than blizzard does for the horde and alliance PvP icon texture, some time ago. I couldn't make it to use the new texture, via
Code:
self.PvP:SetTexture(mytexture) |
Quote:
|
Thank you. :)
|
Quote:
Hi Back again The above works great I'm just trying to tweak it a little to show a different color for my pvp square on a horde DK. Code:
-- This goes in the main scope of your layout: Sorry for all the stupid question, thanks in advance for helping a nub |
All times are GMT -6. The time now is 03:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI