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