Download
(1Kb)
Download
Updated: 10-11-09 05:24 PM
Addon for:
PerfectRaid.
Pictures
File Info
Updated:10-11-09 05:24 PM
Created:10-11-09 05:24 PM
Downloads:4,655
Favorites:18
MD5:

PerfectRaid RaidIcons

Version: 1.0
by: PanoramixBF [More]

A small addition to PerfectRaid to show RaidIcons in the frames. When you join a raid or when people leave the raid the icons might look a bit in the wrong place. This will update immediately when a new icon is set, but i couldn't trouble myself to solve this.

Goodluck with my small addition.

Post A Reply Comment Options
Unread 03-10-10, 09:29 AM  
Tag of Fire
A Defias Bandit

Forum posts: 2
File comments: 5
Uploads: 0
Re: Re: moving icons to right

Thank you for this!
The original code only works when the names are displayed to the left of the health bar, the following changes work for when you have the names displayed to the right of the health bar:

Replace
Code:
frame.indicator = CreateFrame( "Frame", nil, frame.leftbox );
with
Code:
frame.indicator = CreateFrame( "Frame", nil, frame.rightbox );
And replace
Code:
frame.indicator:SetPoint( "RIGHT", -3-frame.name:GetWidth(), 0 );
with
Code:
frame.indicator:SetPoint( "LEFT", 3+frame.name:GetWidth(), 0 );
Report comment to moderator  
Reply With Quote
Unread 10-29-09, 04:27 AM  
PanoramixBF
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 14
Uploads: 3
Re: moving icons to right

Originally posted by Cyko1
Is there a way in the lua I can change it so the icon shows to the right of the name? I've been used to seeing the debuff stuff on the right and would just like the icons showing in between the buff names and the name of the character.
Hi, yes you can change the position of the icon. There are two lines you could change in PerfectRaid_RaidIcons.lua:

This is where the icon will be positioned relative to, currently frame.leftbox (nameplates):
Code:
frame.indicator = CreateFrame( "Frame", nil, frame.leftbox );
You could change this to (relative to the rightbox, buffs/debuffs):
Code:
frame.indicator = CreateFrame( "Frame", nil, frame.rightbox );
or (relative to the healthbar):
Code:
frame.indicator = CreateFrame( "Frame", nil, frame.healthbar );
The next line indicites what the position will be relative to the frame you set above. Change the following line:
Code:
frame.indicator:SetPoint( "RIGHT", -3-frame.name:GetWidth(), 0 );
To for example:
Code:
frame.indicator:SetPoint( "LEFT", 0, 0 );
or
Code:
frame.indicator:SetPoint( "CENTER", 0, 0 );
or
Code:
frame.indicator:SetPoint( "RIGHT", 0, 0 );
Just tweak it a little to your own needs. Ive changed it in my own version to the center of the healthbar, which i liked better than infront of the name.
Report comment to moderator  
Reply With Quote
Unread 10-26-09, 10:23 AM  
Cyko1
A Murloc Raider

Forum posts: 6
File comments: 7
Uploads: 0
moving icons to right

Is there a way in the lua I can change it so the icon shows to the right of the name? I've been used to seeing the debuff stuff on the right and would just like the icons showing in between the buff names and the name of the character.
Report comment to moderator  
Reply With Quote
Unread 10-23-09, 11:17 AM  
Isfahel
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Thanks for this. Prevented me from being forced to get Grid.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: