• 0

    posted a message on Need help with changing faction/reaction colors
    I decided to take the easy route and just use oUF_Phanx haha, its alot easier to just modify health and reaction color values using oUF and no Blizz globals get tainted.
    Posted in: Need Help?
  • 0

    posted a message on Need help with changing faction/reaction colors
    Awesome info, that definitely enlightens me a lot on the subject. However the error that I am running into is less with status bar colors and more with the faction/reaction colors ie. green for neutral, blue for friendly and red for hostile that display on the default unit frames.

    This code:
    PowerBarColor["MANA"] = { r = 26/255, g = 139/255, b = 255/255 };
    PowerBarColor["RAGE"] = { r = 255/255, g = 26/255, b = 48/255 };
    PowerBarColor["FOCUS"] = { r = 255/255, g = 150/255, b = 26/255 };
    PowerBarColor["ENERGY"] = { r = 255/255, g = 225/255, b = 26/255 };
    PowerBarColor["HAPPINESS"] = { r = 0.00, g = 1.00, b = 1.00 };
    PowerBarColor["RUNES"] = { r = 0.50, g = 0.50, b = 0.50 };
    PowerBarColor["RUNIC_POWER"] = { r = 0.00, g = 0.82, b = 1.00 };
    -- vehicle colors
    PowerBarColor["AMMOSLOT"] = { r = 0.80, g = 0.60, b = 0.00 };
    PowerBarColor["FUEL"] = { r = 0.0, g = 0.55, b = 0.5 };


    Seems to change the default statusbar colors with no taint or other errors, although im sure directly modifying default values and tables is probably a bad thing, but when I attempt to modify the faction/reaction colors via the code in the original post I run into problems.

    Is there an easy way to identify what function calls UnitSelectionColor? Or is that something I would have to grab the UI dev kit for and just pour over Unit frame code?

    Again, thanks for all the help.
    Posted in: Need Help?
  • 0

    posted a message on Need help with changing faction/reaction colors
    Thanks for the advice.

    From what I can gather UnitSelectionColor is what actually determines the colors and by modifying this value in combat to set it to the same value as GameTooltip_UnitColor it is tainting the secure unit frame path, I'm not sure how to determine if there is a separate function that actually sets the color to the frame. I ventured to guess that I needed to use hooksecurefunc but I have no idea how to use it. If you get a chance to maybe push me in the right direction it would be much appreciated.

    I don't want a handout but I'm just lost and it would be a bummer to have to abandon this addon since there is no other addons that do this that I can find.
    Posted in: Need Help?
  • 0

    posted a message on Need help with changing faction/reaction colors
    I remembered I had enabled taint logging and it looks like you were correct as it is showing UnitSelectionColor is being tainted. Here's a recent sample since the log is quite long.

    11/4 20:20:25.137  Global variable UnitSelectionColor tainted by !LynColors - Interface\AddOns\!LynColors\core.lua:71
    11/4 20:20:25.137  Execution tainted by !LynColors while reading UnitSelectionColor - Interface\FrameXML\TargetFrame.lua:292 TargetFrame_CheckFaction()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:112 TargetFrame_Update()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:20:25.137      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:20:25.137  An action was blocked in combat because of taint from !LynColors - Boss2TargetFrame:Hide()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:20:25.137      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:20:25.137  An action was blocked in combat because of taint from !LynColors - Boss3TargetFrame:Hide()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:20:25.137      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:20:25.137  An action was blocked in combat because of taint from !LynColors - Boss4TargetFrame:Hide()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:20:25.137      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:20:25.137  An action was blocked in combat because of taint from !LynColors - Boss5TargetFrame:Hide()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:20:25.137      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:20:25.137      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:21:12.645  An action was blocked in combat because of taint from !LynColors - Boss2TargetFrame:Show()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:101 TargetFrame_Update()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:21:12.645      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:21:12.645  An action was blocked in combat because of taint from !LynColors - Boss3TargetFrame:Hide()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:21:12.645      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:21:12.645  An action was blocked in combat because of taint from !LynColors - Boss4TargetFrame:Hide()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:21:12.645      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:21:12.645  An action was blocked in combat because of taint from !LynColors - Boss5TargetFrame:Hide()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:21:12.645      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:21:12.645      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:22:21.774  An action was blocked in combat because of taint from !LynColors - Boss2TargetFrame:Hide()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:22:21.774      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:22:21.774  An action was blocked in combat because of taint from !LynColors - Boss3TargetFrame:Hide()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:22:21.774      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:22:21.774  An action was blocked in combat because of taint from !LynColors - Boss4TargetFrame:Hide()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:22:21.774      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:22:21.774  An action was blocked in combat because of taint from !LynColors - Boss5TargetFrame:Hide()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:22:21.774      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:22:21.774      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:31:38.527  An action was blocked in combat because of taint from !LynColors - Boss2TargetFrame:Hide()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:31:38.527      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:31:38.527  An action was blocked in combat because of taint from !LynColors - Boss3TargetFrame:Hide()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:31:38.527      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:31:38.527  An action was blocked in combat because of taint from !LynColors - Boss4TargetFrame:Hide()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:31:38.527      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:31:38.527  An action was blocked in combat because of taint from !LynColors - Boss5TargetFrame:Hide()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:99 TargetFrame_Update()
    11/4 20:31:38.527      Interface\FrameXML\TargetFrame.lua:165 OnEvent()
    11/4 20:31:38.527      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:Show()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:157 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:SetPoint()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:158 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - CompactRaidFrame5:Show()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:276 CompactUnitFrame_UpdateVisible()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:234 CompactUnitFrame_UpdateAll()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:96
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:Show()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:157 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:SetPoint()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:158 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - CompactRaidFrame5:Show()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:276 CompactUnitFrame_UpdateVisible()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:234 CompactUnitFrame_UpdateAll()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:96
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:Show()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:157 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:SetPoint()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:158 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - CompactRaidFrame5:Show()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:276 CompactUnitFrame_UpdateVisible()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:234 CompactUnitFrame_UpdateAll()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:96
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:Show()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:157 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - PartyMemberFrame4PetFrame:SetPoint()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:158 PartyMemberFrame_UpdatePet()
    11/4 20:32:01.021      Interface\FrameXML\PartyMemberFrame.lua:380 PartyMemberFrame_OnEvent()
    11/4 20:32:01.021      *:OnEvent:1 PartyMemberFrame4:OnEvent()
    11/4 20:32:01.021      Interface\FrameXML\UnitFrame.lua:489
    11/4 20:32:01.021  An action was blocked in combat because of taint from !LynColors - CompactRaidFrame5:Show()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:276 CompactUnitFrame_UpdateVisible()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:234 CompactUnitFrame_UpdateAll()
    11/4 20:32:01.021      Interface\FrameXML\CompactUnitFrame.lua:96 


    My question is, is there a secure way to modify these values?

    Also to elaborate, I am using the default Player, Target, ToT, Boss and Focus Frames and I use oUF_Freebgrid for everything else.
    Posted in: Need Help?
  • 0

    posted a message on Need help with changing faction/reaction colors
    Will do, for some reason I cleared out the bug sack from bug grabber and never saved the errors, I will try to reproduce it and post it here.
    Posted in: Need Help?
  • 0

    posted a message on Need help with changing faction/reaction colors
    So I'm really only up to the most basic tasks of LUA editing and WoW programming knowledge. But I would really appreciate if anyone can help me out with this issue.

    I've been using an ancient (3 year old) addon to change the default Mana,Rage, Health and Faction and Reaction colors in WoW called !LynColors it was part of an old WoTLK UI compilation from a guy named Lyn.

    Anyways the code is very short but since 5.0 it is throwing tons of taint errors, mostly to do with the raid UI and other unitframes and it only seems to happen in parties/dungeons.

    Here is the code I was hoping if some whiz kid could spot the taint, which is probably everywhere and unfixable but I'd figure I'd try.

    --
    -- gief back my colorz!1
    --
    FACTION_BAR_COLORS = {
    	[1] = {r=182/255, g=34/255, b=32/255},
    	[2] = {r=182/255, g=34/255, b=32/255},
    	[3] = {r=182/255, g=92/255, b=32/255},
    	[4] = {r=220/225, g=180/255, b=52/255},
    	[5] = {r=143/255, g=194/255, b=32/255},
    	[6] = {r=143/255, g=194/255, b=32/255},
    	[7] = {r=143/255, g=194/255, b=32/255},
    	[8] = {r=143/255, g=194/255, b=32/255},
    };
    
    PowerBarColor["MANA"] = { r = 26/255, g = 139/255, b = 255/255 };
    PowerBarColor["RAGE"] = { r = 255/255, g = 26/255, b = 48/255 };
    PowerBarColor["FOCUS"] = { r = 255/255, g = 150/255, b = 26/255 };
    PowerBarColor["ENERGY"] = { r = 255/255, g = 225/255, b = 26/255 };
    PowerBarColor["HAPPINESS"] = { r = 0.00, g = 1.00, b = 1.00 };
    PowerBarColor["RUNES"] = { r = 0.50, g = 0.50, b = 0.50 };
    PowerBarColor["RUNIC_POWER"] = { r = 0.00, g = 0.82, b = 1.00 };
    -- vehicle colors
    PowerBarColor["AMMOSLOT"] = { r = 0.80, g = 0.60, b = 0.00 };
    PowerBarColor["FUEL"] = { r = 0.0, g = 0.55, b = 0.5 };
    
    GameTooltip_UnitColor = function(unit)
    	local r, g, b;
    	if ( UnitPlayerControlled(unit) ) then
    		if ( UnitCanAttack(unit, "player") ) then
    			-- Hostile players are red
    			if ( not UnitCanAttack("player", unit) ) then
    				r = 1.0;
    				g = 1.0;
    				b = 1.0;
    			else
    				r = FACTION_BAR_COLORS[2].r;
    				g = FACTION_BAR_COLORS[2].g;
    				b = FACTION_BAR_COLORS[2].b;
    			end
    		elseif ( UnitCanAttack("player", unit) ) then
    			-- Players we can attack but which are not hostile are yellow
    			r = FACTION_BAR_COLORS[4].r;
    			g = FACTION_BAR_COLORS[4].g;
    			b = FACTION_BAR_COLORS[4].b;
    		elseif ( UnitIsPVP(unit) ) then
    			-- Players we can assist but are PvP flagged are green
    			r = FACTION_BAR_COLORS[6].r;
    			g = FACTION_BAR_COLORS[6].g;
    			b = FACTION_BAR_COLORS[6].b;
    		else
    			-- All other players are blue (the usual state on the "blue" server)
    			r = 143/255;
    			g = 194/255;
    			b = 32/255;
    		end
    	else
    		local reaction = UnitReaction(unit, "player");
    		if ( reaction ) then
    			r = FACTION_BAR_COLORS[reaction].r;
    			g = FACTION_BAR_COLORS[reaction].g;
    			b = FACTION_BAR_COLORS[reaction].b;
    		else
    			r = 1.0;
    			g = 1.0;
    			b = 1.0;
    		end
    	end
    	return r, g, b;
    end
    
    UnitSelectionColor = GameTooltip_UnitColor;


    Thanks so much in advance :D
    Posted in: Need Help?
  • 0

    posted a message on UI Screenshots - Show us what you use!
    New UI for Dwarf shaman, was using nMainbar but it's been buggy with vehicles etc.

    Using most of Zork/Rothar's stuff.

    http://i54.tinypic.com/6zra6e.jpg

    Comments/Criticism welcome :D
    Posted in: General Chat
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Thanks :D I figured it might be his own minimap, but just wanted to make sure.
    Posted in: General Chat
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Quote from Lolzen


    Current WiP.


    If you don't mind, could you tell me what minimap and nameplates you are using?
    Posted in: General Chat
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Something I whipped up recently. It borrows heavily from Lyn, but who doesn't?

    http://hdimage.org/images/iw0anzlz6yazzw7sfk1l_ocrnhot012509003234.jpg

    P.S. I realize the action bars are off center, I already fixed that.

    I'm thinking of hiding the stat blocks unless moused over.
    Same with the potions cluster.
    Posted in: General Chat
  • 0

    posted a message on Bags not opening in combat?
    Yeah, I found that out a day ago. Even before I ran a taintlog I realised that oApplication was the last new addon I added.

    Tis' a shame too because i really liked oApplication, and it's unlike Haste he's one of the greats, no one makes any good non-bloated poison application mods.

    PoisonMenu is ok, but I'm not a fan of minimap buttons.

    maybe I'll PM Haste and ask if he can look into it.

    P.S. Thanks for moving the thread, I didn't even notice the HELP! thread, or perhaps I didnt bother to look.
    Posted in: AddOn HELP!
  • 0

    posted a message on Bags not opening in combat?
    So I'm pretty sure that up until about a week or so ago I was able to open my bags in combat, and now I seem unable to do so.

    I was using Bagnon and I tried switching to OneBag to see if it was the addon doing it, but it still happens.

    I'm going to do some tests to see if there is some other addon interfering with this tommorow but I wanted to see fi anyone else was getting this issue.

    So has anyone else experienced a similar issue? And were you able to resolve it?

    Thanks in advance.
    Posted in: AddOn HELP!
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Quote from p3lim »

    He asked for the font, not what mod :p


    Oh duh! Way to read on my part.

    Its called Standard 07_55 i got it from Delsims UI compilation.

    Which you can get here http://www.wowinterface.com/downloads/info8771-DelsimsstandardminimalUI.html

    I'm currently using .8 UI scale @ 1920x1200 with the font at 7 point FYI
    Posted in: General Chat
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Quote from darkone108 »

    hi may i know what font you're using for your unit frames?:)


    It's oUF, my customized version of the oUF_Pelim layout.
    Posted in: General Chat
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Wondering if anyone can help me with this. While attempting to merge Haste's new raid icon code from oUF_Lily with my own layout (which is mostly forked from Haste and P3lim) I ran into some errors.
    I am basically trying to get it to display Level and classification if there is one, raid icon in place of the level if there is one, and just level then name if all else fails. It works ingame but it keeps spitting about errors about concatenating a nil value with name, and referencing line 97 in oUF. I'm not sure what I'm not declaring as it seems to work. Heres the code.


    local updateName = function(self, event, unit)
    	if(self.unit == unit or (not unit and self.unit)) then
    		local unit = unit or self.unit
    		local name = UnitName(unit)
    		local typ = UnitClassification(unit)
    		local lvl = UnitLevel(unit)
    		local index = GetRaidTargetIndex(self.unit)
    		
    		if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) or not UnitIsConnected(unit)) then
    			self.Name:SetTextColor(.6, .6, .6)
    		else
    			self.Name:SetTextColor(1, 1, 1)
    		end
    	
    		if(index) then
     			self.Name:SetText(ICON_LIST[index].."22|t".."|cff0090ff"..lvl.."|cffffffff "..name)
    		elseif typ=="worldboss" then
    			self.Name:SetText("|cff0090ff".."Boss".."|cffffffff"..name)
    		elseif typ=="rareelite" then		
    			self.Name:SetText("|cff0090ff"..lvl.."+ Rare ".."|cffffffff"..name)
    		elseif typ=="elite" then
    			self.Name:SetText("|cff0090ff"..lvl.."+ ".."|cffffffff"..name)
    		elseif typ=="rare" then
    			self.Name:SetText("|cff0090ff"..lvl.."Rare ".."|cffffffff"..name)
    		else
    			self.Name:SetText("|cff0090ff"..lvl.."|cffffffff "..name)
    		end	
    	end
    end


    I am using the latest version of oUF from haste's Git repository.
    Posted in: Unit Frames
  • To post a comment, please or register a new account.