Thread Tools Display Modes
Unread 12-22-09, 08:01 AM   #1
Marthisdil
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 350
Quest Tracker Info Panel

Originally Posted by Xrystal View Post
Rofl, so which panels were you thinking of ? hmm hmm
Would be nice to have quest objective tracker as a panel Would get that hruge window off the screen
__________________

Marth



Marthisdil is offline  
Unread 12-22-09, 08:23 AM   #2
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,035
Originally Posted by Marthisdil View Post
Would be nice to have quest objective tracker as a panel Would get that hruge window off the screen
Not sure whether that is possible as I read that it was a fixed size but I will take a look at its innards and see how it works
__________________
Xrystal is offline  
Unread 12-22-09, 04:41 PM   #3
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,035
Well, doing my usual infopanel set up and I have successfully got the watch frame linked to the infopanel. However, it doesn't seem to want to go in the panel. And once the infopanel is set up the watch frame is no longer moveable by nUI.

I'm reparenting WatchFrame which is the main frame for the Objectives window but it just refuses to keep the anchors I give it. I can't see where but perhaps nUI is re-anchoring after I have reparented it.

So, for now at least, it isn't possible to move the watchframe into an infopanel.
__________________
Xrystal is offline  
Unread 12-22-09, 05:26 PM   #4
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
You probably need to call nUI_Movers:lockFrame( WatchFrame, false, OBJECTIVES_TRACKER_LABEL ); to unlock the frame so you can move and/or size it. Also have a look in the [ nUI > Integration > nUI_Minimap.lua ] file at the bottom to see the handstands you have to do to move/resize the frame.
__________________

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/
spiel2001 is offline  
Unread 12-22-09, 05:28 PM   #5
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,035
Hmm, thanks Scott.

I'm doing this at present for resizing so I guess I need to use the title instead of nil.
Code:
plugin.sizeChanged = function( scale, height, width )
	local options  = plugin.options;
	local Objectives   = plugin.Objectives;
	plugin.scale = scale;
	nUI_Movers:lockFrame( Objectives, false, nil );
	Objectives:SetWidth( width ); 
	Objectives:SetHeight( height ); 
	nUI_Movers:lockFrame( Objectives, true, nil );
end
And this is the code I have set up for enabling it.
Code:
plugin.setEnabled = function( enabled )
	if plugin.enabled ~= enabled then
		plugin.enabled = enabled;
		if not enabled then
			local Objectives = plugin.Objectives;
			if Objectives.saved_parent then
				nUI_Movers:lockFrame( Objectives, false, nil );
				Objectives:SetParent( Objectives.saved_parent );
				Objectives:SetPoint( "TOPRIGHT", MinimapCluster, "BOTTOMRIGHT", 0, 0 );
				Objectives:SetBackdropBorderColor( Objectives.border_color );
				Objectives:SetBackdropColor( Objectives.backdrop_color );
			end
		else
			local Objectives = WatchFrame;
			print(Objectives);
			plugin.Objectives = Objectives;
			if not Objectives.saved_parent then
				Objectives.saved_parent   = Objectives:GetParent();
				Objectives.border_color   = Objectives:GetBackdropBorderColor();
				Objectives.backdrop_color =Objectives:GetBackdropColor();
			end
			Objectives:SetParent( plugin.container );
			Objectives:SetPoint( "TOPLEFT", plugin.container, "TOPLEFT", 10, -10 );
			Objectives:SetPoint( "BOTTOMRIGHT", plugin.container, "BOTTOMRIGHT", 0, 0 );
			Objectives:SetFrameStrata( plugin.container:GetFrameStrata() );
			Objectives:SetFrameLevel( plugin.container:GetFrameLevel()+1 );
			Objectives:SetBackdropBorderColor( 0, 0, 0, 0 );
			Objectives:SetBackdropColor( 0, 0, 0, 0 );
								
			nUI_Movers:lockFrame( Objectives, true, nil );
		end				
	end			
end
It's the same code I use for my other info panels but I guess the big time resizing we need for the watchframe needs an extra set of change ?

Will try it out again tomorrow though.
__________________

Last edited by Xrystal : 12-22-09 at 05:31 PM.
Xrystal is offline  
Unread 12-23-09, 05:11 AM   #6
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I think the thing that may be an issue here is that you need a "StartMoving" and a "StartSizing" call after you unlock the frame and before you start trying to change the size. Then you need a "StopMovingOrSizing" when you're done.

Also, you should probably use the label to unlock the frame, but you are correct to not use the label when you lock it back. Otherwise it will appear in the movable frame list when you use '/nui movers'
__________________

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/
spiel2001 is offline  
Unread 12-23-09, 05:12 AM   #7
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
One other thing... I suspect that resizing the tracking window to fit the info panel is going to cause issues with "not enough room to track more quests" etc.... not sure how that's going to play out.
__________________

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/
spiel2001 is offline  
 

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Developer Chat » Quest Tracker Info Panel

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