View Single Post
02-25-10, 01:53 AM   #16
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
Thank You.

I assume you are trying to get Seerah's addon to work with nUI's control of the watch frame ? After she creates her copy of the watch frame something like the following needs to be used to reparent the watchframe after making nUI relinquish control of it. The first two lines may be all you need to add with the rest somewhere in their code already in some form or another so it may take some finding.

Code:
             nUI_Movers:lockFrame( WatchFrame, false, nil ); 
	nUI_Options.movedWatchFrame = true;


	local f = WatchFrame;

	f:ClearAllPoints();
	f:SetClampedToScreen( false );
	f:SetParent(parent);
	f:SetWidth( parent:GetWidth() - 27.5 );
	f:SetPoint( "TOPLEFT", 27.5, 0 );
	f:SetPoint( "BOTTOMRIGHT", 0, 0 );
		
	-- We don't want it to be altered once we have done our thing to it
	f.ClearAllPoints = function() end;
	f.SetPoint = function() end;
	f.SetAllPoints = function() end;
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818