From 08ba18053ebcd1680ba46a25d9d68f3077feb825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Sun, 10 Sep 2017 12:33:34 +0200 Subject: [PATCH] Fixed alpha wasn't applied to progress --- VocaluxeLib/Menu/CProgressBar.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/VocaluxeLib/Menu/CProgressBar.cs b/VocaluxeLib/Menu/CProgressBar.cs index c893a95a..f7cbf6fd 100644 --- a/VocaluxeLib/Menu/CProgressBar.cs +++ b/VocaluxeLib/Menu/CProgressBar.cs @@ -228,27 +228,28 @@ namespace VocaluxeLib.Menu } //Draw progress + color = new SColorF(_ColorProgressCurrent.R, _ColorProgressCurrent.G, _ColorProgressCurrent.B, _ColorProgressCurrent.A * Alpha); if (_TextureProgressBegin != null) { - CBase.Drawing.DrawTexture(_TextureProgressBegin, _RectProgressBegin, _ColorProgressCurrent); + CBase.Drawing.DrawTexture(_TextureProgressBegin, _RectProgressBegin, color); if (Reflection) - CBase.Drawing.DrawTextureReflection(_TextureProgressBegin, _RectProgressBegin, _ColorProgressCurrent, _RectProgressBegin, ReflectionSpace, ReflectionHeight); + CBase.Drawing.DrawTextureReflection(_TextureProgressBegin, _RectProgressBegin, color, _RectProgressBegin, ReflectionSpace, ReflectionHeight); } if (_TextureProgressMid != null) { - CBase.Drawing.DrawTexture(_TextureProgressMid, _RectProgressMid, _ColorProgressCurrent); + CBase.Drawing.DrawTexture(_TextureProgressMid, _RectProgressMid, color); if (Reflection) - CBase.Drawing.DrawTextureReflection(_TextureProgressMid, _RectProgressMid, _ColorProgressCurrent, _RectProgressMid, ReflectionSpace, ReflectionHeight); + CBase.Drawing.DrawTextureReflection(_TextureProgressMid, _RectProgressMid, color, _RectProgressMid, ReflectionSpace, ReflectionHeight); } else CBase.Drawing.DrawRect(_ColorProgressCurrent, _RectProgressMid); if (_TextureProgressEnd != null) { - CBase.Drawing.DrawTexture(_TextureProgressEnd, _RectProgressEnd, _ColorProgressCurrent); + CBase.Drawing.DrawTexture(_TextureProgressEnd, _RectProgressEnd, color); if (Reflection) - CBase.Drawing.DrawTextureReflection(_TextureProgressEnd, _RectProgressEnd, _ColorProgressCurrent, _RectProgressEnd, ReflectionSpace, ReflectionHeight); + CBase.Drawing.DrawTextureReflection(_TextureProgressEnd, _RectProgressEnd, color, _RectProgressEnd, ReflectionSpace, ReflectionHeight); } //Draw foreground