From d8b5f39282fbe5b0e575d8efbdf629ef90e150ca Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 2 Feb 2006 22:50:14 +0000 Subject: [PATCH] NoteTypeToLocalizedString --- stepmania/Themes/default/Languages/en.ini | 11 +++++++++++ stepmania/src/NoteTypes.cpp | 2 ++ stepmania/src/NoteTypes.h | 1 + 3 files changed, 14 insertions(+) diff --git a/stepmania/Themes/default/Languages/en.ini b/stepmania/Themes/default/Languages/en.ini index f22293e43f..0976c2d3da 100644 --- a/stepmania/Themes/default/Languages/en.ini +++ b/stepmania/Themes/default/Languages/en.ini @@ -201,6 +201,17 @@ Connection to server dropped.=Connection to server dropped. Initializing Client Network...=Initializing Client Network... Initializing server...=Initializing server... +[NoteType] +4th=4th +8th=8th +12th=12th +16th=16th +24th=24thXXX +32nd=32nd +48th=48th +64th=64th +192nd=192nd + [OptionExplanations] Accel=Accel AllowExtraStage=AllowExtraStage diff --git a/stepmania/src/NoteTypes.cpp b/stepmania/src/NoteTypes.cpp index b77b137814..43a3e9e46e 100644 --- a/stepmania/src/NoteTypes.cpp +++ b/stepmania/src/NoteTypes.cpp @@ -4,6 +4,7 @@ #include "LuaManager.h" #include "LuaFunctions.h" #include "XmlFile.h" +#include "LocalizedString.h" TapNote TAP_EMPTY ( TapNote::empty, TapNote::SubType_invalid, TapNote::original, "", 0, false, 0 ); TapNote TAP_ORIGINAL_TAP ( TapNote::tap, TapNote::SubType_invalid, TapNote::original, "", 0, false, 0 ); @@ -29,6 +30,7 @@ static const char *NoteTypeNames[] = { XToString( NoteType, NUM_NoteType ); LuaXToString( NoteType ) LuaXType( NoteType, NUM_NoteType, "NOTE_TYPE_", true ) +XToLocalizedString( NoteType ); float NoteTypeToBeat( NoteType nt ) { diff --git a/stepmania/src/NoteTypes.h b/stepmania/src/NoteTypes.h index 920e5558c8..a1f52f63d0 100644 --- a/stepmania/src/NoteTypes.h +++ b/stepmania/src/NoteTypes.h @@ -197,6 +197,7 @@ enum NoteType NOTE_TYPE_INVALID }; const RString& NoteTypeToString( NoteType nt ); +const RString& NoteTypeToLocalizedString( NoteType nt ); float NoteTypeToBeat( NoteType nt ); NoteType GetNoteType( int row ); NoteType BeatToNoteType( float fBeat );