View Single Post
  #9  
Unread 01-07-2011, 02:09 PM
Marll's Avatar
Marll Marll is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jan 2010
Posts: 51
Hrm, maybe this is what was missing, but I'm not sure how it ended up removed from my code. This seems to set the opacity of the window conditionally based on mouse over or the always hide attribute being set:

Code:
mainWindow.MouseEnter = function( sender, args )

if (alwayshide == false) then
	mainWindow:SetOpacity( 0.75 );
end

rightWindow:SetOpacity( 0.75 );
leftWindow:SetOpacity( 0.75 );
releaseWindow:SetOpacity( 0.75 );

end

mainWindow.MouseLeave = function( sender, args )

X, Y = mainWindow:GetPosition();

if (alwayshide == false) then
	mainWindow:SetOpacity( 0 );
end

rightWindow:SetOpacity( 0.25 );
leftWindow:SetOpacity( 0.25 );
releaseWindow:SetOpacity( 0.25 );

if ( X ~= settings.positionX or Y ~= settings.positionY ) then
		
	settings.positionX = X;
	settings.positionY = Y;
	SaveSettings();
		
end

end
Reply With Quote