From 16df10bc396d1c9314af6450eea84cdbd26ac990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 25 Dec 2022 22:43:34 +0100 Subject: [PATCH] Have the intro text hide the HUD completely Including the right portion, which hadn't been hidden until now. --- src/gui/game/GameView.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index abf973f1e..0808050e5 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -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