From 8abc8656460187816f04cf8cbbf7e9e027818202 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 23 Jun 2003 02:24:13 +0000 Subject: [PATCH] Add edit song credit function to ScreenEdit --- stepmania/src/ScreenEdit.cpp | 11 +++++++++++ stepmania/src/ScreenEdit.h | 1 + stepmania/src/ScreenTextEntry.cpp | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index ee048a4c47..b5eb1eb04c 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -181,6 +181,7 @@ Menu g_EditSongInfo MenuRow( "Main title", true ), MenuRow( "Sub title", true ), MenuRow( "Artist", true ), + MenuRow( "Credit", true ), MenuRow( "Main title transliteration", true ), MenuRow( "Sub title transliteration", true ), MenuRow( "Artist transliteration", true ) @@ -1176,6 +1177,12 @@ void ChangeArtist( CString sNew ) pSong->m_sArtist = sNew; } +void ChangeCredit( CString sNew ) +{ + Song* pSong = GAMESTATE->m_pCurSong; + pSong->m_sCredit = sNew; +} + void ChangeMainTitleTranslit( CString sNew ) { Song* pSong = GAMESTATE->m_pCurSong; @@ -1260,6 +1267,7 @@ void ScreenEdit::HandleMainMenuChoice( MainMenuChoice c, int* iAnswers ) g_EditSongInfo.rows[main_title].choices.resize(1); g_EditSongInfo.rows[main_title].choices[0] = pSong->m_sMainTitle; g_EditSongInfo.rows[sub_title].choices.resize(1); g_EditSongInfo.rows[sub_title].choices[0] = pSong->m_sSubTitle; g_EditSongInfo.rows[artist].choices.resize(1); g_EditSongInfo.rows[artist].choices[0] = pSong->m_sArtist; + g_EditSongInfo.rows[credit].choices.resize(1); g_EditSongInfo.rows[credit].choices[0] = pSong->m_sCredit; g_EditSongInfo.rows[main_title_transliteration].choices.resize(1); g_EditSongInfo.rows[main_title_transliteration].choices[0] = pSong->m_sMainTitleTranslit; g_EditSongInfo.rows[sub_title_transliteration].choices.resize(1); g_EditSongInfo.rows[sub_title_transliteration].choices[0] = pSong->m_sSubTitleTranslit; g_EditSongInfo.rows[artist_transliteration].choices.resize(1); g_EditSongInfo.rows[artist_transliteration].choices[0] = pSong->m_sArtistTranslit; @@ -1563,6 +1571,9 @@ void ScreenEdit::HandleEditSongInfoChoice( EditSongInfoChoice c, int* iAnswers ) case artist: SCREENMAN->TextEntry( SM_None, "Edit artist.\nPress Enter to confirm,\nEscape to cancel.", pSong->m_sArtist, ChangeArtist, NULL ); break; + case credit: + SCREENMAN->TextEntry( SM_None, "Edit credit.\nPress Enter to confirm,\nEscape to cancel.", pSong->m_sCredit, ChangeCredit, NULL ); + break; case main_title_transliteration: SCREENMAN->TextEntry( SM_None, "Edit main title transliteration.\nPress Enter to confirm,\nEscape to cancel.", pSong->m_sMainTitleTranslit, ChangeMainTitleTranslit, NULL ); break; diff --git a/stepmania/src/ScreenEdit.h b/stepmania/src/ScreenEdit.h index c37f34fbb6..e570800200 100644 --- a/stepmania/src/ScreenEdit.h +++ b/stepmania/src/ScreenEdit.h @@ -159,6 +159,7 @@ public: main_title, sub_title, artist, + credit, main_title_transliteration, sub_title_transliteration, artist_transliteration, diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index 853ab56799..0cefdb09bb 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -63,7 +63,7 @@ ScreenTextEntry::ScreenTextEntry( ScreenMessage SM_SendWhenDone, CString sQuesti m_rectAnswerBox.SetZoomY( ANSWER_HEIGHT ); this->AddChild( &m_rectAnswerBox ); - m_textAnswer.LoadFromFont( THEME->GetPathToF("header1") ); + m_textAnswer.LoadFromFont( THEME->GetPathToF("Common title") ); m_textAnswer.SetXY( ANSWER_X, ANSWER_Y ); UpdateText(); this->AddChild( &m_textAnswer );