1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Draw the REC text with the compass

This commit is contained in:
Mathieu Schroeter 2017-08-15 17:38:07 +02:00
parent 040fda7f2f
commit 500b16a58f

View File

@ -2076,26 +2076,26 @@ CEvent::DrawButtons ()
} }
m_menu.Draw (); m_menu.Draw ();
// Dessine la rose des vents.
if (!m_bPause && !m_bDemoPlay)
{
DrawTextCenter (gettext ("N"), (10 + 134) / 2, 17);
DrawTextCenter (gettext ("S"), (10 + 134) / 2, 126);
DrawTextCenter (gettext ("W"), 14, 70);
DrawTextCenter (gettext ("E"), 129, 70);
}
// Dessine la pause. // Dessine la pause.
if (m_bPause) if (m_bPause)
DrawTextCenter (gettext ("Game paused"), (10 + 134) / 2, 20); DrawTextCenter (gettext ("Game paused"), (10 + 134) / 2, 20);
else else
{ {
if (m_bDemoRec) // recording demo ? if (m_bDemoRec) // recording demo ?
DrawTextCenter (gettext ("REC"), (10 + 134) / 2, 20, FONTRED); DrawTextCenter (gettext ("REC"), (10 + 38) / 2, 20, FONTRED);
if (m_bDemoPlay) // playing demo ? if (m_bDemoPlay) // playing demo ?
DrawTextCenter (gettext ("Demo"), (10 + 134) / 2, 20, FONTRED); DrawTextCenter (gettext ("Demo"), (10 + 134) / 2, 20, FONTRED);
} }
// Dessine la rose des vents.
if (!m_bPause && !m_bDemoRec && !m_bDemoPlay)
{
DrawTextCenter (gettext ("N"), (10 + 134) / 2, 17);
DrawTextCenter (gettext ("S"), (10 + 134) / 2, 126);
DrawTextCenter (gettext ("W"), 14, 70);
DrawTextCenter (gettext ("E"), 129, 70);
}
// Dessine la vitesse. // Dessine la vitesse.
pos.x = 64; pos.x = 64;
pos.y = LYIMAGE - 15; pos.y = LYIMAGE - 15;