Merge remote-tracking branch 'voc/release-0.1' into release-0.1

This commit is contained in:
Florian Kuepper committed 2012-03-03 08:52:05 +01:00
commit 593fe04f20
49 files changed
+58117 -1603

No files matched your search

+14 -1
View File
@@ -102,7 +102,7 @@ namespace Vocaluxe.Menu
if (t < _CursorFadingTime)
{
if (_CursorTargetAlpha >= _CursorStartAlpha)
_Cursor.color.A = (_CursorTargetAlpha - _CursorStartAlpha) * t / _CursorFadingTime;
_Cursor.color.A = _CursorStartAlpha + (_CursorTargetAlpha - _CursorStartAlpha) * t / _CursorFadingTime;
else
_Cursor.color.A = (_CursorStartAlpha - _CursorTargetAlpha) * (1f - t / _CursorFadingTime);
}
@@ -152,6 +152,13 @@ namespace Vocaluxe.Menu
Fade(0f, 0.5f);
}
public void FadeIn()
{
_Movetimer.Reset();
_Movetimer.Start();
Fade(1f, 0.2f);
}
private void Fade(float targetAlpha, float time)
{
_CursorFadingTimer.Stop();
@@ -421,6 +428,12 @@ namespace Vocaluxe.Menu
while (Mouse.PollEvent(ref MouseEvent))
{
if (MouseEvent.Wheel != 0)
{
CSettings.MouseActive();
_Cursor.FadeIn();
}
UpdateMousePosition(MouseEvent.X, MouseEvent.Y);
if (!_Fading && (_Cursor.IsActive || MouseEvent.LB || MouseEvent.RB))