Thread: moving boxes
View Single Post
05-13-09, 05:05 PM   #23
nerdonfire
A Deviate Faerie Dragon
Join Date: Apr 2009
Posts: 16
Taking a further look into the code, I see this:

Code:
if GameTooltip.fCache and nUI_Options.tooltips == "fixed" or not owner or owner == UIParent then

		tooltip:Hide();
		
		local overlay = GameTooltip.fCache.overlay;
		
		nUI_SavedTooltip_SetOwner( tooltip, owner or UIParent, "ANCHOR_NONE" );
		
		tooltip:ClearAllPoints();

		tooltip:SetPoint( "BOTTOMRIGHT", UIParent, "BOTTOMLEFT", overlay:GetRight(), overlay:GetBottom() );

	elseif nUI_Options.tooltips == "mouse" then
		
		tooltip:ClearAllPoints();
		
		if tooltip == GameTooltip then
			nUI_SavedTooltip_SetOwner( tooltip, UIParent, "ANCHOR_CURSOR" );
		else
			tooltip:SetParent( UIParent, "ANCHOR_CURSOR" );
		end
And that referenced lines of code seem to be mixed up. How can the SetPoint be both the BOTTOMLEFT and BOTTOMRIGHT.

Or am I using logic where logic shouldnt be used?