aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-03 23:42:02 +0000
committerb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-05-03 23:42:02 +0000
commit4c6e44e0c1fced2b2d2edf8640fe0652b94f2811 (patch)
treee17dca9344712d82e7b7a3c74128925eb8351e77 /Game/Code
parenta1624a62face0dc4edb0908ba09b6bcd2f43d065 (diff)
downloadusdx-4c6e44e0c1fced2b2d2edf8640fe0652b94f2811.tar.gz
usdx-4c6e44e0c1fced2b2d2edf8640fe0652b94f2811.tar.xz
usdx-4c6e44e0c1fced2b2d2edf8640fe0652b94f2811.zip
reflections of buttoncollection nur fade out more realisticly (need your opinion on that)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@167 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Menu/UMenuButton.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/Game/Code/Menu/UMenuButton.pas b/Game/Code/Menu/UMenuButton.pas
index fde808e2..87ebbb89 100644
--- a/Game/Code/Menu/UMenuButton.pas
+++ b/Game/Code/Menu/UMenuButton.pas
@@ -434,7 +434,7 @@ begin
//Draw
glBegin(GL_QUADS);//Top Left
- glColor4f(ColR * Int, ColG * Int, ColB * Int, Alpha-0.3);
+ glColor4f(ColR * Int, ColG * Int, ColB * Int, (Alpha-0.3)*FadeProgress*FadeProgress*FadeProgress);
glTexCoord2f(TexX1*TexW, TexY2*TexH);
glVertex3f(x, y+h*scaleH+ Spacing, z);
@@ -450,7 +450,7 @@ begin
glVertex3f(x+w*scaleW, y+h*scaleH + h*scaleH/2 + Spacing, z);
//Top Right
- glColor4f(ColR * Int, ColG * Int, ColB * Int, Alpha-0.3);
+ glColor4f(ColR * Int, ColG * Int, ColB * Int, (Alpha-0.3)*FadeProgress*FadeProgress*FadeProgress);
glTexCoord2f(TexX2*TexW, TexY2*TexH);
glVertex3f(x+w*scaleW, y+h*scaleH + Spacing, z);
glEnd;