Fixed alpha wasn't applied to progress

This commit is contained in:
Florian Küpper committed 2017-09-10 12:33:34 +02:00
1 parent 9acfcfb7da
commit 08ba18053e
1 file changed
+7 -6
+7 -6
View File
@@ -228,27 +228,28 @@ namespace VocaluxeLib.Menu
} }
//Draw progress //Draw progress
color = new SColorF(_ColorProgressCurrent.R, _ColorProgressCurrent.G, _ColorProgressCurrent.B, _ColorProgressCurrent.A * Alpha);
if (_TextureProgressBegin != null) if (_TextureProgressBegin != null)
{ {
CBase.Drawing.DrawTexture(_TextureProgressBegin, _RectProgressBegin, _ColorProgressCurrent); CBase.Drawing.DrawTexture(_TextureProgressBegin, _RectProgressBegin, color);
if (Reflection) if (Reflection)
CBase.Drawing.DrawTextureReflection(_TextureProgressBegin, _RectProgressBegin, _ColorProgressCurrent, _RectProgressBegin, ReflectionSpace, ReflectionHeight); CBase.Drawing.DrawTextureReflection(_TextureProgressBegin, _RectProgressBegin, color, _RectProgressBegin, ReflectionSpace, ReflectionHeight);
} }
if (_TextureProgressMid != null) if (_TextureProgressMid != null)
{ {
CBase.Drawing.DrawTexture(_TextureProgressMid, _RectProgressMid, _ColorProgressCurrent); CBase.Drawing.DrawTexture(_TextureProgressMid, _RectProgressMid, color);
if (Reflection) if (Reflection)
CBase.Drawing.DrawTextureReflection(_TextureProgressMid, _RectProgressMid, _ColorProgressCurrent, _RectProgressMid, ReflectionSpace, ReflectionHeight); CBase.Drawing.DrawTextureReflection(_TextureProgressMid, _RectProgressMid, color, _RectProgressMid, ReflectionSpace, ReflectionHeight);
} }
else else
CBase.Drawing.DrawRect(_ColorProgressCurrent, _RectProgressMid); CBase.Drawing.DrawRect(_ColorProgressCurrent, _RectProgressMid);
if (_TextureProgressEnd != null) if (_TextureProgressEnd != null)
{ {
CBase.Drawing.DrawTexture(_TextureProgressEnd, _RectProgressEnd, _ColorProgressCurrent); CBase.Drawing.DrawTexture(_TextureProgressEnd, _RectProgressEnd, color);
if (Reflection) if (Reflection)
CBase.Drawing.DrawTextureReflection(_TextureProgressEnd, _RectProgressEnd, _ColorProgressCurrent, _RectProgressEnd, ReflectionSpace, ReflectionHeight); CBase.Drawing.DrawTextureReflection(_TextureProgressEnd, _RectProgressEnd, color, _RectProgressEnd, ReflectionSpace, ReflectionHeight);
} }
//Draw foreground //Draw foreground