Thread Tools Display Modes
10-19-10, 01:31 AM   #1
Nightspirit
A Cyclonian
 
Nightspirit's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2009
Posts: 44
Bazooka integration not working

Console doesn't "attach" itself to Bazooka.

Temp fix for people:
/script nUI_TopBarsLocator:SetPoint("BOTTOM", Bazooka.TopAnchor, "BOTTOM", 0, 0);

Or for bottom users (I shouldn't say it like that...)
/script nUI_BottomBarsLocator:SetPoint("TOP", UIParent, "BOTTOM", 0, 0);

Checked nUI_Bazooka.lua quickly, don't see what the problem is tbh
 
10-19-10, 04:23 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
OKay... I 've added this to the bug list
__________________

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/
 
10-19-10, 06:47 AM   #3
mitch0
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 21
re: Bazooka integration

Hi,

I'd replace nUI_Bazooka.lua with this:

Code:
if Bazooka and Bazooka.TopAnchor then
    nUI_TopBarsLocator:ClearAllPoints();
    nUI_TopBarsLocator:SetPoint("BOTTOM", Bazooka.TopAnchor, "BOTTOM");
    nUI_BottomBarsLocator:ClearAllPoints();
    nUI_BottomBarsLocator:SetPoint("TOP", Bazooka.BottomAnchor, "TOP");
end
and add Bazooka to the

## OptionalDeps:

line in nUI.toc.

No need for all that complex event handling and stuff.

cheers,
mitch
 
10-19-10, 12:40 PM   #4
Nightspirit
A Cyclonian
 
Nightspirit's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2009
Posts: 44
I'm glad you're not nUI coder.

Code:
if Bazooka and Bazooka.TopAnchor then
    nUI_BottomBarsLocator:ClearAllPoints();
    nUI_BottomBarsLocator:SetPoint("TOP", Bazooka.BottomAnchor, "TOP");
end
Right...
 
10-19-10, 12:44 PM   #5
mitch0
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 21
Originally Posted by Nightspirit View Post
I'm glad you're not nUI coder.

Code:
if Bazooka and Bazooka.TopAnchor then
    nUI_BottomBarsLocator:ClearAllPoints();
    nUI_BottomBarsLocator:SetPoint("TOP", Bazooka.BottomAnchor, "TOP");
end
Right...
Right indeed, 'cos if Bazooka.TopAnchor is there, then I guarantee you that Bazooka.BottomAnchor will be there, too (unless some malicious addon author is mucking around with me

You can add the extra check if that makes you feel better though

cheers,
mitch
 
10-24-10, 07:45 AM   #6
schmitty
A Cliff Giant
 
schmitty's Avatar
Join Date: May 2010
Posts: 75
Thumbs up Simpler fix

Hi Scott,

If you haven't discovered the problem yet, here it is
in nUI_Bazooka.lua

local function onBazookaEvent()

should be

local function onBazookaEvent(self, event, ...)


 
10-24-10, 11:27 AM   #7
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah... I realized that for some reason while nUI_Bazooka.lua was in the distribution and in the XML loader files, it was missing from the solution file... so, I missed it when I went through and fixed all of the event callbacks. This is fixed in the upcoming 5.07.06 (Development) release.

Thanks for the heads up... user input is *always* appreciated.
__________________

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 » Support » nUI: Bug Reports » Bazooka integration not working


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