Transliteration support in editor

This commit is contained in:
Jared Roberts
2002-09-16 22:16:14 +00:00
parent 7361190198
commit 9de0c5029a
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -105,6 +105,7 @@ const CString MENU_ITEM_TEXT[NUM_MENU_ITEMS] = {
"E: Edit description", "E: Edit description",
"A: Edit main title", "A: Edit main title",
"U: Edit subtitle", "U: Edit subtitle",
"`: Edit transliteration",
"I: Toggle assist tick", "I: Toggle assist tick",
"B: Add/Edit background change at current beat", "B: Add/Edit background change at current beat",
"Ins: Insert blank beat and shift down", "Ins: Insert blank beat and shift down",
@@ -131,6 +132,7 @@ int MENU_ITEM_KEY[NUM_MENU_ITEMS] = {
DIK_E, DIK_E,
DIK_A, DIK_A,
DIK_U, DIK_U,
DIK_GRAVE,
DIK_I, DIK_I,
DIK_B, DIK_B,
DIK_INSERT, DIK_INSERT,
@@ -444,6 +446,7 @@ void ScreenEdit::Update( float fDeltaTime )
"Description = %s\n" "Description = %s\n"
"Main title = %s\n" "Main title = %s\n"
"Sub title = %s\n" "Sub title = %s\n"
"Transliteration = %s\n"
"Num notes tap: %d, hold: %d\n" "Num notes tap: %d, hold: %d\n"
"Assist tick is %s\n" "Assist tick is %s\n"
"MusicOffsetSeconds: %.2f\n" "MusicOffsetSeconds: %.2f\n"
@@ -456,6 +459,7 @@ void ScreenEdit::Update( float fDeltaTime )
GAMESTATE->m_pCurNotes[PLAYER_1] ? GAMESTATE->m_pCurNotes[PLAYER_1]->m_sDescription : "no description", GAMESTATE->m_pCurNotes[PLAYER_1] ? GAMESTATE->m_pCurNotes[PLAYER_1]->m_sDescription : "no description",
m_pSong->m_sMainTitle, m_pSong->m_sMainTitle,
m_pSong->m_sSubTitle, m_pSong->m_sSubTitle,
m_pSong->m_sTransliteration,
iNumTapNotes, iNumHoldNotes, iNumTapNotes, iNumHoldNotes,
GAMESTATE->m_SongOptions.m_AssistType==SongOptions::ASSIST_TICK ? "ON" : "OFF", GAMESTATE->m_SongOptions.m_AssistType==SongOptions::ASSIST_TICK ? "ON" : "OFF",
m_pSong->m_fBeat0OffsetInSeconds, m_pSong->m_fBeat0OffsetInSeconds,
@@ -575,6 +579,12 @@ void ChangeSubTitle( CString sNew )
pSong->m_sSubTitle = sNew; pSong->m_sSubTitle = sNew;
} }
void ChangeTransliteration( CString sNew )
{
Song* pSong = GAMESTATE->m_pCurSong;
pSong->m_sTransliteration = sNew;
}
// End helper functions for InputEdit // End helper functions for InputEdit
void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ) void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
@@ -961,6 +971,10 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ
SCREENMAN->TextEntry( SM_None, "Edit song sub title.\nPress Enter to confirm,\nEscape to cancel.", m_pSong->m_sSubTitle, ChangeSubTitle, NULL ); SCREENMAN->TextEntry( SM_None, "Edit song sub title.\nPress Enter to confirm,\nEscape to cancel.", m_pSong->m_sSubTitle, ChangeSubTitle, NULL );
break; break;
case DIK_GRAVE:
SCREENMAN->TextEntry( SM_None, "Edit song transliteration.\nPress Enter to confirm,\nEscape to cancel.", m_pSong->m_sTransliteration, ChangeTransliteration, NULL);
break;
case DIK_B: case DIK_B:
{ {
CString sOldBackground; CString sOldBackground;
+1 -1
View File
@@ -22,7 +22,7 @@
#include "SnapDisplay.h" #include "SnapDisplay.h"
const int NUM_MENU_ITEMS = 24; const int NUM_MENU_ITEMS = 25;
class ScreenEdit : public Screen class ScreenEdit : public Screen