Thread Tools Display Modes
04-04-09, 06:30 PM   #21
NynjaMonkii
A Deviate Faerie Dragon
Join Date: Mar 2009
Posts: 15
No problem. I really like nUI and its not a deal break but definitely something I'd like to see.
 
05-08-09, 06:31 PM   #22
NynjaMonkii
A Deviate Faerie Dragon
Join Date: Mar 2009
Posts: 15
Okay, I see you never fixed this, and I'll be honest, I had stopped using nUI for a while. I came back to it, and after having read up a bit on addon development I decided to look at it again, and I figured it out. In nUI_StatusBar.lua function createStatusBar you set frame.bar to the texture file on the BORDER layer. Looks good there. In setBar you have three variables, bar, min_offset and max_offset. If bar is present, you set frame.bar to the given bar, otherwise, you set it to the texture file with the points 1,1,1,1. At the end of createStatusBar, you call setBar() with no variables, so bar is empty, thereby setting the texture to 1,1,1,1. Because runic power and rage are empty, no update is called to make the bar active, and the entire texture is shown! To remedy this, on line 631 of nUI_StatusBar.lua simple change:

Code:
frame.setBar()
to

Code:
frame.SetBar(frame.bar)
 
05-08-09, 06:45 PM   #23
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 2,988
0.o

I didn't understand a word you said rofl.. but it looks good!
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
 
05-08-09, 09:33 PM   #24
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
~blush~

Wow... talk about letting things slip through the cracks

/sigh

*thank you* for tracking that down... feel free to slap the absent minded old programmer.
__________________

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/
 
05-09-09, 08:22 AM   #25
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
This fix has been made and will be in the next update.
__________________

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/
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Customizing Layouts » Custom Bar Texture

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