From ffdc70973d9af5e8c9f0eeb60a42aa455d968917 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 19 Mar 2003 21:42:45 +0000 Subject: [PATCH] implement colors. --- stepmania/src/LyricDisplay.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stepmania/src/LyricDisplay.cpp b/stepmania/src/LyricDisplay.cpp index 7e4fe80eb7..d493d5efe6 100644 --- a/stepmania/src/LyricDisplay.cpp +++ b/stepmania/src/LyricDisplay.cpp @@ -62,9 +62,16 @@ void LyricDisplay::Update( float fDeltaTime ) } m_textLyrics.SetText( GAMESTATE->m_pCurSong->m_LyricSegments[m_iCurLyricNumber].m_sLyric ); - // m_textLyrics.SetDiffuse(COLOR); + /* + * This really needs a way to define a custom theme command here, so themes + * can do things like: + * + * "Diffuse=1,1,1,0;linear,.2;Diffuse=1,1,1,1;linear,.2;LyricDiffuse" + */ + m_textLyrics.StopTweening(); + m_textLyrics.SetDiffuse(GAMESTATE->m_pCurSong->m_LyricSegments[m_iCurLyricNumber].m_Color); m_textLyrics.Command(IN_COMMAND); m_textLyrics.BeginTweening( fShowLength ); /* sleep */ m_textLyrics.Command(OUT_COMMAND);