DK Profiler & Roster missing bar on info pages fix!

A detailed character information viewer
Includes character stats, item bonuses, talents, spell book, mail, inventory, quests, and recipes.

DK Profiler & Roster missing bar on info pages fix!

Postby Calystos » Wed Feb 10, 2010 7:06 pm

Seems that the CharacterProfiler and Roster need a lil tweak to fix a minor bug in ref to that the Death Knights Runes/Runic Power bars on the Character Info pages aren't being stored or shown properly. Heres a fix, :-)

In templates/default/info/styles.css add (about line 124 onwards):
Code: Select all
.powers .bar .runes { background: url(images/bars/bar-runes.gif); }
.powers .bar .runes:hover { border-color: #00A8FF; }
.powers .bar .runicpower { background: url(images/bars/bar-runicpower.gif); }
.powers .bar .runicpower:hover { border-color: #00A8FF; }


In CharacterProfiler.lua at line 258 change:
Code: Select all
local UnitPower={"Rage","Focus","Energy","Happiness"};UnitPower[0]="Mana";


To read:
Code: Select all
local UnitPower={"Rage","Focus","Energy","Happiness","Runes","RunicPower"};UnitPower[0]="Mana";


And at line 1570 change:
Code: Select all
      structStats["Mana"]=UnitManaMax(unit);


To read:
Code: Select all
      structStats["Mana"]=UnitPowerMax(unit);

(As the UnitManaMax was switched to UnitPowerMax as of patch 3.0.2, same with the UnitMana function becoming UnitPower instead)

And finally copy the templates/default/info/images/bars/bar-mana.gif twice and name one bar-runes.gif and the other bar-runicpower.gif and your done.
Course you can upload any of the others if wished, but the blue mana one will suffice for now I guess, :-)
Enjoy.

(And no I'm not dead, I've been most unwell - still am - over the past few months. Which is why no ones seen me around, hehe. Though expect more UniAdmin/UniUploader updates soon as I'm better again!)
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

Re: DK Profiler & Roster missing bar on info pages fix!

Postby zanix » Wed Feb 10, 2010 7:58 pm

Fixed, thanks
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: DK Profiler & Roster missing bar on info pages fix!

Postby Calystos » Wed Feb 10, 2010 8:15 pm

No probs, haven't spotted any other glitches so far. If I do will try an fix an post info of course, :-)
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth


Return to CharacterInfo

Who is online

Users browsing this forum: No registered users and 0 guests

cron