Thread Tools Display Modes
01-09-15, 06:33 AM   #1
Schuu
A Murloc Raider
Join Date: Jan 2015
Posts: 4
Change Defualt Unitframes via addon?

I want to make a couple of minor adjustments to the standard unitframe

i want the name part of my target/ToT/Focus to be the class color i found a small addon that
changes the health bar to the class color but it's not exactly what i want, and maybe make the Name of the target/tot/focus a easier color to see against there class color, maybe white/greyish?

am i able to change this in anyway to help what i want to achieve?

local UnitIsPlayer, UnitIsConnected, UnitClass, RAID_CLASS_COLORS =

UnitIsPlayer, UnitIsConnected, UnitClass, RAID_CLASS_COLORS

local _, class, c

local function colour(statusbar, unit)

if UnitIsPlayer(unit) and UnitIsConnected(unit) and unit == statusbar.unit and UnitClass(unit) then

_, class = UnitClass(unit)

c = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]

statusbar:SetStatusBarColor(c.r, c.g, c.b)

end

end

hooksecurefunc("UnitFrameHealthBar_Update", colour)

hooksecurefunc("HealthBar_OnValueChanged", function(self)

colour(self, self.unit)

end)

local sb = _G.GameTooltipStatusBar

local addon = CreateFrame("Frame", "StatusColour")

addon:RegisterEvent("UPDATE_MOUSEOVER_UNIT")

addon:SetScript("OnEvent", function()

colour(sb, "mouseover")

end)
Also i want to see % of health in the health bar and also a health number something like 234.5k which deceases as the lose hp and incease as healed

cheers if anyone can help

Last edited by Schuu : 01-09-15 at 06:44 AM.
  Reply With Quote
01-09-15, 06:45 AM   #2
Schuu
A Murloc Raider
Join Date: Jan 2015
Posts: 4
nvm, found something for the nameplate color,

just looking for a % / hp now thx
  Reply With Quote
01-09-15, 06:49 AM   #3
Schuu
A Murloc Raider
Join Date: Jan 2015
Posts: 4
nvm found it in the interface options, can i just delete just thread
  Reply With Quote
01-09-15, 08:03 AM   #4
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 309
ArenaJunkies has some threads to alter the default ui whether it be arena frames, unit frames, frame positioning, trinket tracking, etc. There's also whoa_UnitFrames located here on WoWInterface that alter the default frames.
__________________
AddOns: Tim @ WoWInterface
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Change Defualt Unitframes via addon?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off