Thread Tools Display Modes
04-19-09, 04:48 PM   #1
Orb
An Aku'mai Servant
Join Date: Feb 2007
Posts: 31
Cast Bars

Add to the cast bar total spell cast time. Right now it just shows seconds elapsed into the spell, it'd be nice to see each cast how long the spell being cast is.
 
04-19-09, 04:49 PM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
That is already doable if you're willing to edit the layout file for it... cast bars support current time, total time and percent time.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
04-19-09, 04:57 PM   #3
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
If you edit [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts > {hud mode} > nUI_HUDSkin_{hud mode}_Castbar.lua ] and look for where it says "cur_time =" then add the following block above that, I believe you'll get the total time to the right of the cast bar (I didn't test it)


Code:
                max_time =
                {
                    enabled     = true,
                    fonsize     = 11,
                    justifyH    = "LEFT",
                    justifyV    = "MIDDLE",
                    anchor_pt   = "LEFT",
                    relative_pt = "RIGHT",
                    xOfs        = 5,
                    yOfs        = 1,
                    
                    color = { r = 1, g = 1, b = 1, a = 1 },
                },
You can play with that a bit to pretty it up.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
04-19-09, 09:12 PM   #4
Vis
A Pyroguard Emberseer
 
Vis's Avatar
Join Date: Mar 2009
Posts: 1,827
Just added your code for max spell time, works perfectly Thank you
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Suggestion Box » Cast Bars

Thread Tools
Display Modes

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