Have the intro text hide the HUD completely

Including the right portion, which hadn't been hidden until now.
This commit is contained in:
Tamás Bálint Misius 2022-12-25 22:43:34 +01:00
parent a3fe59a2c8
commit 16df10bc39
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -2221,11 +2221,12 @@ void GameView::OnDraw()
else if(showHud)
{
//Draw info about simulation under cursor
int wavelengthGfx = 0, alpha = 255;
int wavelengthGfx = 0;
int alpha = 255-introText*5;
if (toolTipPosition.Y < 120)
alpha = 255-toolTipPresence*3;
if (alpha < 50)
alpha = 50;
alpha -= toolTipPresence*3;
if (alpha < 0)
alpha = 0;
StringBuilder sampleInfo;
sampleInfo << Format::Precision(2);
@ -2445,7 +2446,7 @@ void GameView::OnDraw()
if(introText && showHud)
{
g->fillrect(0, 0, WINDOWW, WINDOWH, 0, 0, 0, introText>51?102:introText*2);
g->drawtext(16, 20, introTextMessage, 255, 255, 255, introText>51?255:introText*5);
g->drawtext(16, 16, introTextMessage, 255, 255, 255, introText>51?255:introText*5);
}
// Clear menu areas, to ensure particle graphics don't overlap